15.06.2014, 17:45
pawn Код:
CMD:goto(playerid, params[])
{
new TargetID, Pos[3];
if(PlayerInfo[playerid][Admin] >= 1)
{
if(sscanf(params, "u", TargetID)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /goto <ID>");
if(PlayerInfo[TargetID][Admin] >= 1338) return SCM(playerid,COLOR_GRAD2,"You cannot use this command on head admin!");
GetPlayerPos(TargetID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1]+2.0, Pos[2]);
SendClientMessage(playerid, -1, "Teleported to the selected player.");
}
else SendClientMessage(playerid, 0xFF0000AA, "You cannot use this command!");
return 1;
}