Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:voteskip(playerid, params[])
- {
- new count = 0;
- if(pAdmin[playerid] >= 3) return SendClientMessage(playerid, 0xFF0000, "You cannot use this command when there is level 3 or higher admin in server.");
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(pAdmin[i] >= 3)
- {
- count++;
- }
- }
- if(count == 0)
- {
- StartPolling(playerid);
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000, "You cannot use this command when there is level 3 or higher admin in server.");
- }
- return 1;
- }
- StartPolling(playerid)
- {
- SendClientMessage(playerid, 0xFF0000, "Vote Poll started!");
- }
Add Comment
Please, Sign In to add comment