SA-MP Forums Archive
Scripting mistakes and HP. - 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: Scripting mistakes and HP. (/showthread.php?tid=284971)



Scripting mistakes and HP. - [L3th4l] - 21.09.2011

So, I run a DM server. At times, players report that when they get shot with sniper or deagle ( Or any other weapon ), that they usually take less HP than what it should really take. I must say, it has to be something on my gamemode. The thing is, I don't know what exactly is causing it. I've read my gamemode from start to finish 5 times already, and can't find anything that would cause it.

So, I'm wondering, what "Script wise" would be causing this. If it's not my gamemode, it must be the server ( Other reason that I can think off (Serverffs)). If you have any idea(s), let me know asap!


Re: Scripting mistakes and HP. - Kingunit - 21.09.2011

But - when you test it 1 vs 1 it will take the normal damage?


Re: Scripting mistakes and HP. - Fat - 21.09.2011

Filterscripts ?


Re: Scripting mistakes and HP. - [L3th4l] - 21.09.2011

1vs1 is usually fine, it's just at "random" when it happens. Let's say, there's 10 players near an area, they all shooting around at each other, one of them usually takes the hit but the damage made by the weapon to the player is inaccurate ( Low ).

I don't run any filterscripts, my GM is optimized ( Or I optimized it as much as possible ), I have up-to-date plugins.


Re: Scripting mistakes and HP. - Kingunit - 21.09.2011

Hmm, then it's probably a ServerFFS problem. If it's optimized then I don't see the problem.

// But still strange that it's taking less damage.


Re: Scripting mistakes and HP. - [L3th4l] - 21.09.2011

Probably. Being optimized isn't always the answer. I'm looking for like coding mistakes, eg: not freeing sql result when it was supposed it, maybe causing problems?. I've already checked all that and that's not that problem. Like I mentioned, I've checked my script several times for coding mistakes, but couldn't find anything that looks wrong or misused.


Re: Scripting mistakes and HP. - [L3th4l] - 15.10.2011

Giving it another bump. It's happening again. Its usually at "Times" that it happens. There's been 3 reports already ( I don't trust the guys that got reported, as they are ex-cheaters. So they could of cheated here, not sure.. ), but I'm still wondering about this problem. Has anyone got a solid answer for me?