[AJUDA] Dialog
#5

pawn Код:
#define pressionando(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
...
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(pressionando(KEY_SECONDARY_ATTACK))
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 344.5580,309.7243,999.1557))
        {
            //ShowPlayerDialog(... "escolha o nome blablabla");
        }
    }
    return 1;
}
...
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == blablabla)
    {
        if(response)
        {
            if(!strcmp(inputtext, "civil", true))
            {
                SendClientMessage(playerid,COLOR_WHITE, "Vocк agora estб disfarзado de CIVIL.");
                SetPlayerColor(playerid, COLOR_WHITE);
                SetPlayerSkin(playerid, 23);
                return 1;
            }
            else if(!strcmp(inputtext, "pmls", true))
            {
                SendClientMessage(playerid,COLOR_LIGHTRED, "Vocк agora estб disfarзado de Policia Militar.");
                SetPlayerColor(playerid, COLOR_LIGHTRED);
                SetPlayerSkin(playerid,266);
                return 1;
            }
            //todo o resto aqui...
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Dialog - by dansr - 08.04.2013, 12:23
Respuesta: [AJUDA] Dialog - by Pedro Pawno - 08.04.2013, 12:58
Re: [AJUDA] Dialog - by dansr - 08.04.2013, 20:36
Re: [AJUDA] Dialog - by SeV_ - 08.04.2013, 20:39
Re: [AJUDA] Dialog - by Falcon. - 08.04.2013, 20:50
Re: [AJUDA] Dialog - by dansr - 08.04.2013, 22:00
Re: [AJUDA] Dialog - by PT - 09.04.2013, 11:34

Forum Jump:


Users browsing this thread: 3 Guest(s)