29.03.2011, 17:21
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;
}
}