Advertisement
Guest User

heatON

a guest
Mar 13th, 2009
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. if(strcmp(cmd, "/healall", true) == 0)
  2. {
  3. GetPlayerName(playerid, sendername, sizeof(sendername));
  4. PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(sendername), "level");
  5. if(logged[playerid] == 1)
  6. {
  7. if(PlayerInfo[playerid][pAdmin] >= 2)
  8. {
  9. format(string, sizeof(string), "AdmCMD: %s a dat viata la toti", sendername);
  10. SendClientMessageToAll(COLOR_BLUE, string);
  11. for(new i = 0; i < MAX_PLAYERS; i ++)
  12. {
  13. if(IsPlayerConnected(i))
  14. {
  15. SetPlayerHealth(i, 100);
  16. }
  17. }
  18. }
  19. else
  20. {
  21. SendClientMessage(playerid, COLOR_RED, "Nu ai autorizatie sa folosesti comanda!");
  22. }
  23. }
  24. else
  25. {
  26. SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii logat ca sa folosesti comanda!");
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement