SA-MP Forums Archive
Help bulletCrasher037.asi - 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: Help bulletCrasher037.asi (/showthread.php?tid=638473)



Help bulletCrasher037.asi - skiplovebra - 01.08.2017

My server has about 70 people and I am hacked to crash server with this hack I need 1 anti although I added onplayerweaponshot the code below but it does not work
Код:
if(!((22 <= weaponid <= 34) || weaponid == 38)) Kick(playerid);
https://www.youtube.com/watch?v=xt5FWMgJ8qA


Re: Help bulletCrasher037.asi - Spmn - 01.08.2017

update to 0.3.7 r2


Re: Help bulletCrasher037.asi - skiplovebra - 01.08.2017

Quote:
Originally Posted by Spmn
Посмотреть сообщение
update to 0.3.7 r2
I am using version 0.3.7 R2 Which?


Re: Help bulletCrasher037.asi - Vince - 01.08.2017

Return 0 otherwise the shot still gets processed.


Re: Help bulletCrasher037.asi - skiplovebra - 01.08.2017

Can someone give me a code to fight it?


Re: Help bulletCrasher037.asi - Tord - 01.08.2017

Quote:
Originally Posted by Vince
Посмотреть сообщение
Return 0 otherwise the shot still gets processed.
Here's your answer:

PHP код:
if(!(22 <= weaponid <= 34) || weaponid == 38
{
    
Kick(playerid);
    return 
0//add this and the shot won't get processed.