Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:specoff(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first.");
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
- {
- if(SpectatorID[playerid] == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_ERROR,"You are not spectating anyone.");
- TogglePlayerSpectating(playerid, false);
- PlayerTextDrawHide(playerid, SpecText[playerid]);
- SpectatorID[playerid] = INVALID_PLAYER_ID;
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, "Your admin/helper level is not high enough to use this command.");
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment