Closed AHellerL closed 6 years ago
process damage on OnPlayerTakeDamage
So the player isn't getting hurt from vehicle guns and grenade type of explosions?
Yea, but the fix which I have provided earlier solves this issue. Tho, please do take a second look at it. (deathcall is again not working for those weaponids [I am testing it other way around, will notify if it works out] )
Did you happen to check the new update? Let me know what's the output and i'll try to fix bugs if any encountered.
I actually started experimenting with your include and modified it a little to suit up my needs. (everything works fine with what I did). But I'll test this version and let you know if anything comes up.
My version includes this. -Hooked (Get) health and armour. -Hooked OnPlayerStateChange (to change player's team from 655 to his id, when he is inside a vehicle) [using your anti friendly vehicle fire method, in the .amx) -Fixed Knifing(OnPlayerUpdate is not hooked in the include that i have provided)[again modifyed your anti team knifing method) -AntiSpawn kill feature(additional) -Explosions, motolovs, grenades etc are processed under OnPlayerTakeDamage -DeathDisplay function, this can be used for when you want to set player's killerid from the server. e.g after creating a explosion, you can DeathDisplay(playerid,killerid,reason) and when the player dies, this'll show up. This is also for those who had last shot somebody. (to be optimized)
I am closing this since i dont plan to code anymore for now!
No idea why.