Advertisement
Guest User

Untitled

a guest
Jan 7th, 2016
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. //----------------------------- Admin stats -----------------------------\\
  2. //----------------------------- By Vlado --------------------------------\\
  3. #define DIALOG_ADMINSTATS 1
  4. //------------------------------------------ > Pod PlayerInfo
  5. pAdminSati,
  6. pAdminZatvorio,
  7. pAdminUbio,
  8. pAdminEvent,
  9. pAdminPorto
  10. //------------------------------------------ > Komanda
  11. YCMD:adminstats(playerid, params[],help)
  12. {
  13. if (PlayerInfo[playerid][pAdmin] >= 1)
  14. {
  15. new sati = PlayerInfo[playerid][pAdminSati];
  16. new zatvorio = PlayerInfo[playerid][pAdminZatvorio];
  17. new ubio = PlayerInfo[playerid][pAdminUbio];
  18. new eventstarto = PlayerInfo[playerid][pAdminEvent];
  19. new porto = PlayerInfo[playerid][pAdminPorto];
  20. new string[1024];
  21. format(string,sizeof(string),"{0A81BA}Ime: {FFFFFF}%s\n{0A81BA}Vrijeme u admin teamu: {FFFFFF}%d\n{0A81BA}Zatvorio igraca: {FFFFFF}%d\n{0A81BA}Ubio igraca: {FFFFFF}%d\n{0A81BA}Pokrenuo eventa: {FFFFFF}%d\n{0A81BA}Porto: {FFFFFF}%d",GetName(playerid),sati,zatvorio,ubio,eventstarto,porto);
  22. ShowPlayerDialog(playerid,DIALOG_ADMINSTATS,DIALOG_STYLE_MSGBOX,"{0A81BA}Admin Stats",string,"OK","");
  23. }
  24. return 1;
  25. }
  26. //------------------------------------------ > Pod PayDay
  27. PlayerInfo[i][pAdminSati] ++;
  28. //------------------------------------------ > Pod ucitavanje racuna
  29. INI_Int("AdminSati",PlayerInfo[playerid][pAdminSati]);
  30. INI_Int("AdminZatvorio",PlayerInfo[playerid][pAdminZatvorio]);
  31. INI_Int("AdminUbio",PlayerInfo[playerid][pAdminUbio]);
  32. INI_Int("AdminEvent",PlayerInfo[playerid][pAdminEvent]);
  33. INI_Int("AdminPorto",PlayerInfo[playerid][pAdminPorto]);
  34. //------------------------------------------ > Pod cuvanje racuna
  35. INI_WriteInt(File,"AdminSati",PlayerInfo[playerid][pAdminSati]);
  36. INI_WriteInt(File,"AdminZatvorio",PlayerInfo[playerid][pAdminZatvorio]);
  37. INI_WriteInt(File,"AdminUbio",PlayerInfo[playerid][pAdminUbio]);
  38. INI_WriteInt(File,"AdminEvent",PlayerInfo[playerid][pAdminEvent]);
  39. INI_WriteInt(File,"AdminPorto",PlayerInfo[playerid][pAdminPorto]);
  40. //------------------------------------------ > U /jail (kako je kod vas) komandu
  41. PlayerInfo[playerid][pAdminZatvorio] ++;
  42. //------------------------------------------ > U /kill komandu
  43. PlayerInfo[playerid][pAdminUbio] ++;
  44. //------------------------------------------ > U /startevent (kako je kod vas) komandu
  45. PlayerInfo[playerid][pAdminEvent] ++;
  46. //------------------------------------------ > U /goto komandu
  47. PlayerInfo[playerid][pAdminPorto] ++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement