Problem - Damage
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)