Easy, Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Easy, Help! (
/showthread.php?tid=272519)
Easy, Help! -
Chrillzen - 28.07.2011
Hi guys, i made a /buydrink command but i want so you can buy it at several places, please explain.
I don't really remember but i think it was something like, if(IsPlayerInRangeOfPoint(playerid, 7.0, 498.1526,-75.4308,998.757

) || else (playerid, 7.0, 498.1526,-75.4308,998.757

)
Код:
if (strcmp("/buydrink", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 498.1526,-75.4308,998.7578))
{
ShowPlayerDialog(playerid,84,DIALOG_STYLE_LIST,"Drinks","Beer ($20)\nVodka ($20)\n","Buy", "Cancel");
}
return 1;
}
Re: Easy, Help! -
Mean - 28.07.2011
pawn Код:
if( IsPlayerInRangeOfPoint( playerid, 7.0, 498.1526,-75.4308,998.7578 ) || IsPlayerInRangeOfPoint( playerid, 7.0, x, y, z ) || IsPlayerInRangeOfPoint( playerid, 7.0, x, y, z ) /* And so on ... */ )
Re: Easy, Help! -
Chrillzen - 28.07.2011
Thanks