01.12.2013, 08:34
pawn Код:
CMD:goto(playerid, params[])
{
new targetid;
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFAA, "You do not have the right admin permissions for this command!");
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFFFFFFAA,"/goto [playerid]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA" Player is not online");
new Float:x,Float:y,Float:z;
GetPlayerPos(targetid,Float:x,Float:y,Float:z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
return 1;
}