Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/healall", true) == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), "level");
- if(logged[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "AdmCMD: %s a dat viata la toti", sendername);
- SendClientMessageToAll(COLOR_BLUE, string);
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerHealth(i, 100);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Nu ai autorizatie sa folosesti comanda!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii logat ca sa folosesti comanda!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement