14.11.2010, 03:33
Quote:
Well im sure you got dcmd and sscanf
Here u go u must be logged in as admin pawn Код:
pawn Код:
NOT TESTED |
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