[Ajuda] Dialog
#3

pawn Код:
CMD:adm(playerid)
{
if(IsPlayerAdmin(playerid)){
ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_MSGBOX, "ADMIN", "Voce Deseja Ativar Tag Administrador Sua Cabeзa?", "Sim", "Nгo");
return 1;
}
else
{
SendClientMessage(playerid, 0xFF00FFAA, "[ERRO] Vocк nгo й Administrador!");
return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2424) // Numero Da Sorte kkkk
    {
        if(response)
        {
        AdminLabel[playerid] = Create3DTextLabel("Administrador", 0xFF00FFAA, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.7);
        }
        else
        {
        SendClientMessage(playerid,-1," Voce Fexou Resolveu nгo Colocar Sua Tag Admin ");
        }
        return 1;
    }

    return 0;
}
Reply


Messages In This Thread
Dialog - by Alisson Silva Alves - 06.03.2014, 15:06
Re: Dialog - by Stroon - 06.03.2014, 21:26
Re: Dialog - by Adejair - 06.03.2014, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)