rendered paste bodyif(strcmp(cmd, "/goto", true) == 0) {
new Float:X,Float:Y,Float:Z;
if(!VIP[playerid]) {
if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREEN,"Syntax: /goto <id>"); return 1; }
if(IsPlayerConnected(refid)) {
if (refid!=playerid) {
if { GetPlayerPos(refid,X,Y,Z); SetPlayerPos(playerid,X+5,Y,Z+1); }
} else SendClientMessage(playerid, COLOR_GREEN,"Error: You cannot go to yourself.");
} else SendClientMessage(playerid, COLOR_GREEN,"Error: Invalid ID Number!");
} else SendClientMessage(playerid, COLOR_GREEN,"Login please. /login [password]");
return 1;
}