SA-MP Forums Archive
Anti Crash - 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: Anti Crash (/showthread.php?tid=662919)



Anti Crash - SeeNN - 15.01.2019

Hey, I need a anti crash what work with vortex and screen,where can I found?


Re: Anti Crash - rockys - 15.01.2019

eu folosesc asta, pune o la onplayerupdate

PHP код:
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        new 
Float:vec0,Float:vec1,Float:vec2;
        
GetPlayerCameraFrontVector(playeridvec0vec1vec2);
        new 
bool:possible_crasher false;
        if (
floatabs(vec0) > 10.0 || floatabs(vec1) > 10.0 || floatabs(vec2) > 10.0)
            
possible_crasher true;
       
        if (
possible_crasher) {
            new 
stringw[128];
            
format(stringw,128,"(Anti-Cheat) %s(%d) posibil crasher / spam!",GetName(playerid),playerid); 
            
ABroadCast(COLOR_ADMCOMMANDS,stringw,1);
            return 
0//do not send fake data, prevents crash
        
}
    } 



Re: Anti Crash - SeeNN - 15.01.2019

Mersi.