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!