SA-MP Forums Archive
Problem - Damage - 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)
+--- Thread: Problem - Damage (/showthread.php?tid=584727)



Problem - Damage - Petry - 07.08.2015

Sometimes players don't take damage, like a desync, if i put old lagshot system (0.3x) it's all good, but appear other problems.. Someone can help me with a advice?


Re: Problem - Damage - prineside - 07.08.2015

Could you give us "OnPlayerWeaponShoot", "OnPlayerGiveDamage" and "OnPlayerTakeDamage" callbacks source code? Better if you put in on pastebin.com

But first you may do another thing to try to locate an error:
Put SendClientMessage( playerid, 0xAAAA00FF, "OPWS S" ) in start of OnPlayerWeaponShoot()'s function body and SendClientMessage( playerid, 0x00AAAAFF, "OPWS E" ) in end. Also do this for OnPlayerGiveDamage and OnPlayerTakeDamage (OPGD, OPTD) and ask someone to help you with testing.

Then try to shoot someone and cause that issue to happen. If you see "**** S" which is not followed by "**** E" then you have a mistake in code of that callback


Re: Problem - Damage - Petry - 07.08.2015

I will try, codes:
OnPlayerGiveDamage: http://pastebin.com/uEDSgBfT
OnPlayerTakeDamage: i don't use
OnPlayerWeaponShoot: http://pastebin.com/gV2U4rHh