Quote:
Originally Posted by Lorenc_
Yea but you forgot one thing.
PlayerSpectatePlayer(playerid, id);
pawn Код:
dcmd_spec(playerid, params[]) { new id; if (sscanf(params, "u", id)) SendClientMessage(playerid,0xFF0000AA, "USAGE: /spec id"); else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,0xFF0000AA, "Player is not found"); else if(IsPlayerAdmin(playerid)) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, id); } return 1; }
Should work now
|
hehe i should pay more attention=P