[HELP] Admin command!!!! Somebody help me. Thanks
#9

Replace your /spec off with this:
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.");
}
And move SetPlayerInterior(playerid, GetPlayerInterior(id)); below TogglePlayerSpectating(playerid, true);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)