Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.37 KB | None | 0 0
  1. CMD:votelideron(playerid,params[])
  2. {
  3.     if(IsPlayerConnected(playerid))
  4.         {
  5.             if (PlayerInfo[playerid][pAdmin] >= 5)
  6.             {  
  7.                 if(VoteLider == 0)
  8.                 {
  9.                     new string[128], pName[MAX_PLAYER_NAME];
  10.                     GetPlayerName(playerid, pName, sizeof(pName));
  11.                     format(string, sizeof(string), "Adminul %s a activat comanda /votelider. Pentru a vota tastati /votelider id.", pName);
  12.                     SendClientMessageToAll(COLOR_RED, string);
  13.                     VoteLider = 1;
  14.                 }
  15.                 else
  16.                 {
  17.                 SendClientMessage(playerid, COLOR_RED, " Este deja o votare in desfaurare.");
  18.                 }
  19.             }
  20.             else
  21.             {
  22.             SendClientMessage(playerid, COLOR_RED, " Nu ai gradul necesar pentru a folosi aceasta comanda.");
  23.             }
  24.         }
  25.     return 1;
  26. }
  27. CMD:votelideroff(playerid,params[])
  28. {
  29.     if(IsPlayerConnected(playerid))
  30.         {
  31.             if (PlayerInfo[playerid][pAdmin] >= 5)
  32.             {
  33.                 if(VoteLider == 1)
  34.                 {
  35.                     new string[128], pName[MAX_PLAYER_NAME];
  36.                     GetPlayerName(playerid, pName, sizeof(pName));
  37.                     format(string, sizeof(string), "Adminul %s a dezactivat comanda /votelider.", pName);
  38.                     SendClientMessageToAll(COLOR_RED, string);
  39.                     VoteLider = 0;
  40.                 }
  41.                 else
  42.                 {
  43.                 SendClientMessage(playerid, COLOR_RED, " Votare este deja incheiata.");
  44.                 }
  45.             }
  46.             else
  47.             {
  48.             SendClientMessage(playerid, COLOR_RED, " Nu ai gradul necesar pentru a folosi aceasta comanda.");
  49.             }
  50.         }
  51.     return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement