08.06.2015, 06:17
Try
I am on mobile sorry.
Код:
new giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE:/go(playerid) to teleport to that player"); new Float:x; new Float:y; new Float:z; (825) if(goto[playerid][giveplayerid] == true); { GetPlayerPos(giveplayerid, x,y,z); SetPlayerPos(playerid, x,y,z); } else if(goto[playerid][all] == false { SendClientMessage(playerid, 0xFF0000FF, "That player disabled teleports to him!"); } return 1; } CMD:gos(playerid, params[]) { new giveplayerid; if(sscanf(params, "i", giveplayerid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE:/gos to enable/disable players for teleporting to you!"); if(goto[playerid][giveplayerid] == true { SendClientMessage(playerid, 0xFF0000FF, "You have disabled player from teleporting to you!"); goto[playerid][giveplayerid] = false; } if(goto[playerid][giveplayerid] == false { SendClientMessage(playerid, 0xFF0000FF, "You have enabled player from teleporting to you!"); goto[playerid][giveplayerid] = true; } return 1; }