Check if a player is behind a player
#3

Quote:
Originally Posted by Grand_Micha
View Post
https://sampwiki.blast.hk/wiki/Stocks

Sorry, not doing all the work for you, but work with OnPlayerDeath; check out GetXYInFrontOfPlayer and set the distance to -1, then check if killerid is InRangeOf that Point. Also, make sure that reason == 4 and (not necessary) that GetPlayerWeapon of killerid is 4.
Already knew most of that, but what function is GetXYInFrontOfPlayer, how does it work? Can you link it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)