Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ReturnName(playerid) //Functia asta iti returneaza direct numele jucatorului.
- {
- new _name[24]; GetPlayerName(playerid, _name, 24); return _name;
- }
- CMD:votelideron(playerid) //N-ai nevoie de params daca nu folosesti sscanf
- {
- new String[128];
- //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, "Nu detii nivelul necesar pentru a utiliza aceasta comanda");
- //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if(VoteLider == 0) VoteLider = 1, format(String, 128, "Admin %s a activat comanda /votelider. Pentru a vota tastati /votelider <id>.", ReturnName(playerid)), SendClientMessageToAll(COLOR_RED, -1, String);
- else SendClientMessage(playerid, -1, "O votare deja este in desfasurare!");
- //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment