Код
if(strcmp(cmdtext, "/spect", true) == 0)
{
new tmp[256];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x919191FF, "Ты не АДМИН!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0x919191FF, "Используй: /spect [id]");
new giveplayerid = strval(tmp);
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, giveplayerid);
return 1;
}
if(strcmp(cmdtext, "/spectoff", true) == 0) return TogglePlayerSpectating(playerid, 0);
Автор мне не известен