[HELP] OnPlayerBuyFood
#1

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
Reply
#2

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
Reply
#3

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

thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)