Quote:
Originally Posted by GwENiko
The code is there, i just didnt show it because i don't think it is necessary.
pawn Код:
CMD:spec(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}Error: You are not allowed to use this."); new id; if(sscanf(params, "d", id)) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}Usage: /spec <ID>."); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFFFFFFAA, "{627D80}That player is not connected!");
All i wonder is why is it getting my information on the textdraw and not the player being specced.
|
forward AdminSpectate(id);
Public AdminSpectate(id)
And remove new id;
Guess that'll work