.LepS Posted July 6, 2017 Posted July 6, 2017 (edited) Salut, astazi va voi da un sistem creeat de mine. Acesta fiind "Bug Report System". Tin sa precizez ca acest sistem este in versiunea BETA. #define DIALOG_BUGREPORT 1 forward ReportBug(); public ReportBug { if(PlayerInfo[playerid][pAdmin] >= 1) return SCM(playerid, -1, "You cannot use this command because you are a admin"); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "SERVER: Report a bug", "Scrie mai jos ce bug ai descoperit:", "OK", "Cancel"); return 1; } CMD:reportbug(playerid, params[]) { SetTimer("ReportBug", 160000, 1); return 1; } if(dialogid == DIALOG_BUGREPORT) { new AdminON=0; foreach(Player, i) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] > 1) { AdminON++; } } } if(AdminON == 0) return SCM(playerid, 0xFFC500FF, "Momentan nu este niciun admin online. Te rugam, incearca mai tarziu!"); new string[256], name[30]; GetPlayerName(name, sizeof(name)); format(string, sizeof(string), "Bug report from %s (%d, level %d): %s", name, playerid, PlayerInfo[playerid][pLevel], inputtext); ABroadCast(0xFFC500FF, string); SCM(playerid, -1, "Bug raportat!"); return 1; } Daca v-a placut nu uitati de +1! P.S: Am ascuns cateva bugulete in sistem. Ca sa nu va dau mura-n gura. Edited July 6, 2017 by MySticK Quote
Un4m3d_Hokage Posted July 6, 2017 Posted July 6, 2017 Cel mai prost sistem vazut de mine.. imbunatateste-l si re-posteaza. Quote
Roby Posted July 7, 2017 Posted July 7, 2017 Copiez si eu imediat sistemul de report din gm bigzone si ii schimb numele in bugreport. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.