SA-MP Forums Archive
[Ajuda]Dialog Profs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]Dialog Profs (/showthread.php?tid=140385)



[Ajuda]Dialog Profs - danielmondello - 08.04.2010


pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOGID)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Select a Skin", "Cadet\nOfficer\nOfficer Bike\nSeargent", "Select", "Cancel");
            }
        if(listitem == 1)
            {
                ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Police Duty", "Off Duty", "Select", "Cancel");
            }
        if(listitem == 2)
            {
                ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Undercover", "Undercover Duty", "Select", "Cancel");
            }
    }
        return 1;
    }
 
    if(dialogid == DIALOGID+1)
    {
        if(response)
        {
            if(listitem == 0)
            {
        SetPlayerColor(playerid,0x33CCFFAA);
        SetPlayerSkin(playerid,280);
        GivePlayerWeapon(playerid, 24, 150);        
        GivePlayerWeapon(playerid, 3, 1);        
        GivePlayerWeapon(playerid, 41, 200);
            }
Gostaria de adicionar um if(coplevellevel[playerid] > 3 ) caso o level do jogador seja maior que 3 ele seta SetPlayerColor e tudo mais. caso contrario ele nao seta nada.
Obs: eu tentei com if(adminlevel[playerid] < 3 ) return 0; e Else mas nao funcionou alguem me da uma dica ai



Re: [Ajuda]Dialog Profs - danielmondello - 08.04.2010

Mal ae,eu arrumei o problema


Re: [Ajuda]Dialog Profs - andmeida10 - 08.04.2010

la no codigo:

pawn Код:
new nlprocurado = GetPlayerWantedLevel(playerid);
if(nlprocurado >= 3)
{
//TAL TAL
}