Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------- Admin stats -----------------------------\\
- //----------------------------- By Vlado --------------------------------\\
- #define DIALOG_ADMINSTATS 1
- //------------------------------------------ > Pod PlayerInfo
- pAdminSati,
- pAdminZatvorio,
- pAdminUbio,
- pAdminEvent,
- pAdminPorto
- //------------------------------------------ > Komanda
- YCMD:adminstats(playerid, params[],help)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- new sati = PlayerInfo[playerid][pAdminSati];
- new zatvorio = PlayerInfo[playerid][pAdminZatvorio];
- new ubio = PlayerInfo[playerid][pAdminUbio];
- new eventstarto = PlayerInfo[playerid][pAdminEvent];
- new porto = PlayerInfo[playerid][pAdminPorto];
- new string[1024];
- 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);
- ShowPlayerDialog(playerid,DIALOG_ADMINSTATS,DIALOG_STYLE_MSGBOX,"{0A81BA}Admin Stats",string,"OK","");
- }
- return 1;
- }
- //------------------------------------------ > Pod PayDay
- PlayerInfo[i][pAdminSati] ++;
- //------------------------------------------ > Pod ucitavanje racuna
- INI_Int("AdminSati",PlayerInfo[playerid][pAdminSati]);
- INI_Int("AdminZatvorio",PlayerInfo[playerid][pAdminZatvorio]);
- INI_Int("AdminUbio",PlayerInfo[playerid][pAdminUbio]);
- INI_Int("AdminEvent",PlayerInfo[playerid][pAdminEvent]);
- INI_Int("AdminPorto",PlayerInfo[playerid][pAdminPorto]);
- //------------------------------------------ > Pod cuvanje racuna
- INI_WriteInt(File,"AdminSati",PlayerInfo[playerid][pAdminSati]);
- INI_WriteInt(File,"AdminZatvorio",PlayerInfo[playerid][pAdminZatvorio]);
- INI_WriteInt(File,"AdminUbio",PlayerInfo[playerid][pAdminUbio]);
- INI_WriteInt(File,"AdminEvent",PlayerInfo[playerid][pAdminEvent]);
- INI_WriteInt(File,"AdminPorto",PlayerInfo[playerid][pAdminPorto]);
- //------------------------------------------ > U /jail (kako je kod vas) komandu
- PlayerInfo[playerid][pAdminZatvorio] ++;
- //------------------------------------------ > U /kill komandu
- PlayerInfo[playerid][pAdminUbio] ++;
- //------------------------------------------ > U /startevent (kako je kod vas) komandu
- PlayerInfo[playerid][pAdminEvent] ++;
- //------------------------------------------ > U /goto komandu
- PlayerInfo[playerid][pAdminPorto] ++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement