[FilterScript] Cleo Crash 0.3.7 Protect - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Cleo Crash 0.3.7 Protect (
/showthread.php?tid=581877)
Cleo Crash 0.3.7 Protect -
BrasilPlayGames - 16.07.2015
hackers were caused to crash when passing my players side, then this solution seems to solve the problem.
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
//WEAPONS WITH NO BULLET EXCEED BLOCK
if(weaponid < 22 || weaponid > 38) { return 0; }
//Z LIMIT BULLETS EXCEED
if(!(-20000.0 <= z <= 20000.0)) { return 0; }
return 1;
}
Re: Cleo Crash 0.3.7 Protect -
SickAttack - 16.07.2015
https://sampforum.blast.hk/showthread.php?tid=581259
Quote:
- Weapon ID checking after OnPlayerWeaponShot in case the script doesn't filter it.
|
It's already fixed in the new update.
Re: Cleo Crash 0.3.7 Protect -
BrasilPlayGames - 16.07.2015
I had not seen this topic, thanks for the tip, just upgraded my server.
anyway I will keep the topic, who is the original version 0.3.7, this solution will help.
Re: Cleo Crash 0.3.7 Protect -
RaeF - 16.07.2015
EDIT:
Ahh ok i got it thanks SickAttack.
Re: Cleo Crash 0.3.7 Protect -
SickAttack - 16.07.2015
Quote:
Originally Posted by RaeF
|
It de-syncs bullets if they are out of the boundaries, it was provided by
dugi.