[Tutorial] [0.3z] Fix for Bullet Crasher
#21

Quote:
Originally Posted by Calgon
View Post
Isn't there also a way to crash players with some sort of knife bullet data? Or is this what it fixes?
I don't know if it crashes, I fixed only for the hack released on some forums, its only behaviour is to send huge offsets.
Reply
#22

Could you guys post the info from the SA-MP crash report box that's caused by the crasher? thanks in advance.
Reply
#23

I tested with some friends, and they all said that it is only freezing their game, no report box.
Reply
#24

I spawned and then started to shoot someone falling in parachute i got kicked for bullet crash
Reply
#25

Quote:
Originally Posted by dugi
View Post
Could you guys post the info from the SA-MP crash report box that's caused by the crasher? thanks in advance.
There is none. The game just locks up completely. You have to alt-tab out of it and kill the GTA SA process through the task manager.
Reply
#26

Quote:
Originally Posted by iAnonymous
Посмотреть сообщение
This actually do kick the crasher [ player ] but as an result of implementing this thing in our gamemode, make the bullets go useless.
The players can't give damages to each other.
seriously? :O
Reply
#27

Please Help.. ?
Code:
warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER"
Reply
#28

Quote:
Originally Posted by SlowARG
View Post
Mmm, no.

Because i used "null" params :P (it's between -20000.0 and 20000.0).

Bests!
I don't think it should crash with null, anyway, try this:
pawn Code:
if( fX != fX || fY != fY || fZ != fZ )
    return 1;
this works for NaN, not sure if it would work in this case.

Quote:
Originally Posted by martintasin
View Post
Please Help.. ?
Code:
warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER"
Update your SA-MP includes.
Reply
#29

Quote:
Originally Posted by IstuntmanI
View Post
I don't think it should crash with null, anyway, try this:
pawn Code:
if( fX != fX || fY != fY || fZ != fZ )
    return 1;
this works for NaN, not sure if it would work in this case.


Update your SA-MP includes.
Who exactly include..?
Reply
#30

There is a new one around here. And your code doesn't work against it.

The cheater should hit you and you (probably streamed players too) will get frozen.
Reply
#31

This fix is patching a hack which appeared few days ago. This hack crashes players when you are near them.

I got this hack, and used it on a test server using a debug for GetPlayerCameraPos, this is what it returned:

PHP Code:
[12:00:29] -309.053192 1523.427368 -173527616.000000 
See those huge numbers ? Yeah... they are reported by that hack to the server.

This is the fix:
PHP Code:
public OnPlayerUpdate(playerid)
{
    if(
GetPlayerCameraMode(playerid) == 53
    { 
        new 
Float:kLibPos[3]; 
        
GetPlayerCameraPos(playeridkLibPos[0], kLibPos[1], kLibPos[2]);
        if ( 
kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 
        { 
            
BanEx(playerid"WeaponCrasher"); 
            return 
0
        } 
    }  
    return 
1;

Credits:
IstuntmanI - for text.
Reply
#32

Thanks for the patch..
Reply
#33

Nice
Reply
#34

Quote:
Originally Posted by kaZax
View Post
This fix is patching a hack which appeared few days ago. This hack crashes players when you are near them.

I got this hack, and used it on a test server using a debug for GetPlayerCameraPos, this is what it returned:

PHP Code:
[12:00:29] -309.053192 1523.427368 -173527616.000000 
See those huge numbers ? Yeah... they are reported by that hack to the server.

This is the fix:
PHP Code:
public OnPlayerUpdate(playerid)
{
    if(
GetPlayerCameraMode(playerid) == 53
    { 
        new 
Float:kLibPos[3]; 
        
GetPlayerCameraPos(playeridkLibPos[0], kLibPos[1], kLibPos[2]);
        if ( 
kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 
        { 
            
BanEx(playerid"WeaponCrasher"); 
            return 
0
        } 
    }  
    return 
1;

Credits:
IstuntmanI - for text.
Thanks Bro' !!
Reply
#35

I get message twice...
Reply
#36

Quote:
Originally Posted by kaZax
View Post
This fix is patching a hack which appeared few days ago. This hack crashes players when you are near them.

I got this hack, and used it on a test server using a debug for GetPlayerCameraPos, this is what it returned:

PHP Code:
[12:00:29] -309.053192 1523.427368 -173527616.000000 
See those huge numbers ? Yeah... they are reported by that hack to the server.

This is the fix:
PHP Code:
public OnPlayerUpdate(playerid)
{
    if(
GetPlayerCameraMode(playerid) == 53
    { 
        new 
Float:kLibPos[3]; 
        
GetPlayerCameraPos(playeridkLibPos[0], kLibPos[1], kLibPos[2]);
        if ( 
kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 
        { 
            
BanEx(playerid"WeaponCrasher"); 
            return 
0
        } 
    }  
    return 
1;

Credits:
IstuntmanI - for text.
It that working?
Reply
#37

Quote:
Originally Posted by Humza
View Post
It that working?
yes , this work
Reply
#38

http://www.filmovizija.com/1x11/xena...9d816a098.html
Reply
#39

Really helpful, thanks!
Reply
#40

This already fixed in 0.3.7?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)