if(strcmp(cmdtext, "/goto", true) ==0) { new teleid; teleid = strtok(cmdtext, index); if(!strlen(teleid)) { SendClientMessage(playerid, COLOR_ADMIN_CMD, "* USAGE: /goto [playerid]. This will teleport you to [playerid]."); return 1; } if(IsPlayerConnected(teleid)) { new pname[MAX_PLAYER_NAME], telename[MAX_PLAYER_NAME], Float:x, Float:y, Float:z, string[256], string2[256]; GetPlayerName(teleid, telename, MAX_PLAYER_NAME); GetPlayerName(playerid, pname, MAX_PLAYER_NAME); GetPlayerPos(teleid, x, y, z); SetPlayerPos(playerid, x, y, z + 5); SetCameraBehindPlayer(playerid); format(string, sizeof(string), "--- %s (id: %d) teleported himself to %s (id: %d)", pname,playerid,telename,teleid); format(string2, sizeof(string2), "* You teleported yourself to %s (id: %d).", giveplayer,giveplayerid); SendClientMessage(playerid, COLOR_GREEN, string); SendClientMessage(playerid, COLOR_GREEN, string2); } else { SendClientMessage(playerid, COLOR_RED, "This player is not connected"); } return 1; }