little help
#4

Use IsPlayerInrangeOfPoint

For Example code:


Код:
CMD:buygun(playerid,params[]) //the command to enter
{ //opening bracket if the cmd was right
if(IsPlayerInRangePoint(playerid, range, X, Y, Y) return SendClientMessage(playerid, -1, "You are not at the place to buy gun!"); //if the player is not in range of the specified position, he will get an error message!
ShowPlayerDialog(playerid, 999,DIALOG_STYLE_LIST,"Guns","Buy Guns! \nDeagle $5000 \nM4 $1000","OK","No thx"); //if the player is in range of the point, it shows them the dialog
return 1; //return for our dialog!
} //closing bracket

//this was just an example!
Reply


Messages In This Thread
little help - by gotwarzone - 13.12.2013, 13:20
Re: little help - by xVIP3Rx - 13.12.2013, 13:23
Re: little help - by SilentSoul - 13.12.2013, 13:25
Re: little help - by TahaAsif12 - 13.12.2013, 13:25
Re: little help - by gotwarzone - 13.12.2013, 13:27
Re: little help - by SilentSoul - 13.12.2013, 13:30
Re: little help - by xVIP3Rx - 13.12.2013, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)