09.04.2010, 18:55
Replace your /spec off with this:
And move SetPlayerInterior(playerid, GetPlayerInterior(id)); below TogglePlayerSpectating(playerid, true);
pawn Код:
if(!strcmp(params,"off",true))
{
if(!Spec[playerid][Spectating]) return SendClientMessage(playerid,red,"[ERROR]: You should be watchful."); //wtf?
SendCommandMessageToAdmins(playerid,"SPEC OFF");
TogglePlayerSpectating(playerid, false);
return SendClientMessage(playerid,yellow,"You left the observer mode.");
}