Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/armourall", true) == 0)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(logged[playerid] == 1)
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "AdmCMD: Adminul %s a dat armura la toti.", sendername);
- SendClientMessageToAll(COLOR_BLUE, string);
- new PlayerName[30];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- printf("[Comanda] %s a scris /armourall pt a da armura la toti.", PlayerName);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- SetPlayerArmour(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