if(strcmp(cmd, "/teleport", true) ==0) { new tmp[256]; new ttp; ttp = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_RED, "Usage: /teleport [ID]"); } if(GetPlayerMoney(playerid) < 25000) { SendClientMessage(playerid, COLOR_RED, "You are out of cash."); } if(GetPlayerMoney(playerid) > 24999) { if(IsPlayerConnected(ttp)) { new Float:x; new Float:y; new Float:z; GetPlayerPos(ttp, x, y, z); SetPlayerPos(playerid, x, y, z); GivePlayerMoney(playerid, 0 - 25000); SendClientMessage(playerid, COLOR_GREEN, "You are now teleported."); SendClientMessage(ttp, COLOR_YELLOW, "Someone has been teleported to you :รพ"); } }