Liberty Unleashed
Scripting => Script Help => Topic started by: [EG]~[S]aha~ on December 30, 2012, 03:09:09 pm
-
function GetIslandName( i )
{
switch ( i )
{
case 1:
return "Portland";
case 2:
return "Staunton Island";
case 3:
return "Shoreside Vale";
}
return "Unknown";
}
function onPlayerIslandChange( player, old, new )
{
PagerMessage( pPlayer, szYour have entered " + GetIslandName( new ), 140, 1, 2 );
return 1;
}
-
function onPlayerIslandChange( player, old, new )
{
PagerMessage( pPlayer, szYour have entered " + GetIslandName( new ), 140, 1, 2 );
return 1;
}
function onPlayerIslandChange( player, old, new )
{
PagerMessage( player, "You have entered " + GetIslandName( new ), 140, 1, 2 );
return 1;
}
-
it does not work! :(
-
OK, this is tested:
function GetIslandName( i )
{
local island = "";
switch( i )
{
case 0: island = "Liberty City";
break;
case 1: island = "Portland Island";
break;
case 2: island = "Staunton Island";
break;
case 3: island = "Shoreside Vale";
break;
}
return island
}
function onPlayerIslandChange( player, old, new )
{
PagerMessage( player, "You have entered " + GetIslandName( new ), 140, 1, 2 );
return 1;
}
Good luck!
-
Thanks but it is buggy! since I changed the player screen and it works well laganuto skipt good + 5
-
Explain the buggy part, I didn't understand you