else if(strcmp(cmd,"/teleport",true)) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFF00FF, "Use the following commands to teleport:"); SendClientMessage(playerid, 0xFFFF00FF, "/teleport 1 - Mount Chiliad"); SendClientMessage(playerid, 0xFFFF00FF, "/teleport 2 - LV Airport"); SendClientMessage(playerid, 0xFFFF00FF, "/teleport 3 - Airstrip"); SendClientMessage(playerid, 0xFFFF00FF, "/teleport 4 - Grove Street"); SendClientMessage(playerid, 0xFFFF00FF, "/teleport 5 - San Fierro Construction Place"); return 1; } location = strval(tmp); if(location == 1) { SetPlayerPos(playerid, -2234.5300, -1735.9343, 480.8113); } if(location == 2) { SetPlayerPos(playerid, 1682.6749, 1447.5966, 10.7720); } if(location == 3) { SetPlayerPos(playerid, 427.8748, 2535.8137, 16.4394); } if(location == 4) { SetPlayerPos(playerid, 2487.6912, -1667.7858, 13.3438); } if(location == 5) { SetPlayerPos(playerid, -2086.1318, 213.3579, 35.2496); } return 1; }