Jump to content
  • 0

Pica serverul de la aceasta comanda


opy

Question

Am facut un dialog pentru /su ( sa dea wanted ) dar pica serverul cand o folosesc
Comanda:

CMD:dialogsu(playerid,params[])


{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
     {
          if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a cop.");
        if(sscanf(params, "u", playerid)) return SCM(playerid,0xFFFFFFFF,"{FFFFFF}Scrie:/dialogsu <Name/Playerid>");
        ShowPlayerDialog(playerid, DIALOG_SU, DIALOG_STYLE_LIST, "Ofera Wanted", "W1\nW2\nW3", "Acorda wanted", "Iesire");
    }
    return 1;
}


Dialogul:

    if(dialogid == DIALOG_SU)


    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerCriminal(playerid, 1);
                SCM(playerid, COLOR_RED, "Ai oferit Wanted 1");
            }
            if(listitem == 1)
            {
                SetPlayerCriminal(playerid, 2);
                SCM(playerid, COLOR_RED, "Ai oferit Wanted 2");
            }
            if(listitem == 2)
            {
                SetPlayerCriminal(playerid, 3);
                SCM(playerid, COLOR_RED, "Ai oferit Wanted 3{FFFFFF}");
            }
        }
        else
            {
                SCM(playerid, COLOR_RED, "Ai anulat operatia de wanted");
            }
        return 1;
    }

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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. For more details you can also review our Terms of Use and Privacy Policy.