01.10.2010, 18:45
pawn Код:
#define isnull(%1) (!%1[0] || (%1[0] == '\1' && !%1[1]))
COMMAND:goto(playerid, params[])
{
new
id = strval(params),
Float:x,
Float:y,
Float:z;
if (PlayerInfo[playerid][Admin] <= 0 && PlayerInfo[playerid][Helper] <= 0) return SendClientMessage(playerid, COLOR_RED, "You must be Helper/Admin to use that command.");
if (isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "[INFO]: /goto [id]");
GetPlayerPos(id, x, y, z);
SetPlayerPos(playerid, x + 1, y + 1, z);
return 1;
}

