[Ajuda] Dialog Executar um comando...
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == veiculo_de_aluguel)
    {
        ShowPlayerDialog(playerid, seudialogid, DIALOG_STYLE_MSGBOX, "Aluguel", "Deseja alugar o veнculo?", "Sim", "Nгo");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == seudialogid)
    {
        if(!response) return OnPlayerCommandText(playerid, "/sair"); //Caso clicar no segundo botгo
        OnPlayerCommandText(playerid, "/alugarcarro"); //Caso clicar no primeiro botгo
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[Ajuda] Dialog Executar um comando... - by wallacematheus - 16.09.2011, 13:59
Re: [Ajuda] Dialog Executar um comando... - by Shelby - 16.09.2011, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)