Guest User

Untitled

a guest
Sep 12th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. CMD:specoff(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first.");
  4. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
  5. {
  6. if(SpectatorID[playerid] == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_ERROR,"You are not spectating anyone.");
  7. TogglePlayerSpectating(playerid, false);
  8. PlayerTextDrawHide(playerid, SpecText[playerid]);
  9. SpectatorID[playerid] = INVALID_PLAYER_ID;
  10. }
  11. else
  12. {
  13. SendClientMessage(playerid, COLOR_ERROR, "Your admin/helper level is not high enough to use this command.");
  14. }
  15. return 1;
  16. }
Add Comment
Please, Sign In to add comment