krishhna

voteskip

May 21st, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. CMD:voteskip(playerid, params[])
  2. {
  3. new count = 0;
  4. if(pAdmin[playerid] >= 3) return SendClientMessage(playerid, 0xFF0000, "You cannot use this command when there is level 3 or higher admin in server.");
  5. for(new i; i < MAX_PLAYERS; i++)
  6. {
  7. if(pAdmin[i] >= 3)
  8. {
  9. count++;
  10. }
  11. }
  12. if(count == 0)
  13. {
  14. StartPolling(playerid);
  15. }
  16. else
  17. {
  18. SendClientMessage(playerid, 0xFF0000, "You cannot use this command when there is level 3 or higher admin in server.");
  19. }
  20. return 1;
  21. }
  22.  
  23. StartPolling(playerid)
  24. {
  25. SendClientMessage(playerid, 0xFF0000, "Vote Poll started!");
  26. }
Add Comment
Please, Sign In to add comment