Jump to content

Recommended Posts

Posted (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 by MySticK
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

moduri samp