A Question about Dialogs
#4

You can do it like this

pawn Код:
COMMAND:dialog(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,2.0, the coords of the 24/7 store)) return SendClientMessage(playerid, -1, "You need to be in the 24/7 store"); // the "2.0" is how many meters the player should be in before the command is available
    else
    {
        ShowPlayerDialog(playerid, 999, YourDialogStyle?, "Your dialog", "Select", "Exit"); // change it to your style
        return 1;
    }
}
Reply


Messages In This Thread
A Question about Dialogs - by Compton - 29.03.2011, 13:50
Re: A Question about Dialogs - by Markx - 29.03.2011, 13:52
Re: A Question about Dialogs - by Compton - 29.03.2011, 13:54
Re: A Question about Dialogs - by xir - 29.03.2011, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)