Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:votelideron(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(VoteLider == 0)
- {
- new string[128], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "Adminul %s a activat comanda /votelider. Pentru a vota tastati /votelider id.", pName);
- SendClientMessageToAll(COLOR_RED, string);
- VoteLider = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " Este deja o votare in desfaurare.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " Nu ai gradul necesar pentru a folosi aceasta comanda.");
- }
- }
- return 1;
- }
- CMD:votelideroff(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if (PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(VoteLider == 1)
- {
- new string[128], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "Adminul %s a dezactivat comanda /votelider.", pName);
- SendClientMessageToAll(COLOR_RED, string);
- VoteLider = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " Votare este deja incheiata.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, " Nu ai gradul necesar pentru a folosi aceasta comanda.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement