SA-MP Forums Archive
[HELP] OnPlayerBuyFood - 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: [HELP] OnPlayerBuyFood (/showthread.php?tid=116252)



[HELP] OnPlayerBuyFood - papedo - 28.12.2009

hello pawners,

How can I do that when someone buys a meal for example in burger shot, so that caused a public (OnPlayerBuyFood)? Please help


Re: [HELP] OnPlayerBuyFood - dice7 - 28.12.2009

You can't. But if eating at burger shots is the only way you can heal yourself on your server, then search for a OnPlayerHealthChange, check if the change was positive and put your code there. And to be 100% he was in a restaurant, you can check if his interior is the same as the restaurants one. And to be 150% shore, you can use all that with this
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


Re: [HELP] OnPlayerBuyFood - Sergei - 28.12.2009

Get coordinates of places where you buy food, then check for money decrease and health increase.


Re: [HELP] OnPlayerBuyFood - papedo - 28.12.2009

thank you very much