Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[Tutorial] Anti Crasher for SA:MP 0.3.7 R2

$
0
0
hi guys!
This code will protect you from 2 types of crashers:

1. "Bullet Crasher" - s()beit blue eclipse v5
2. "Bad Vehicle Crasher" - s()beit OverLight V3
Copy this code and put it in gamemode!
Author of Anti Crasher, it's me!



PHP Code:

public OnPlayerUpdate(playerid)
{
    static 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playerid,x,y,z);
    if 
== -5.5 || !(-1000000.0 <= <= 1000000.0) *then {
        new 
TipCrasher[20];
        if 
== -5.5 *then{
            
TipCrasher="BulletCrasher";
        }else{
            
TipCrasher="BadVehicleCrasher";}
        new 
string[144],name[MAX_PLAYER_NAME],ip[16];
        
GetPlayerName(playeridnamesizeof(name));
        
GetPlayerIp(playeridipsizeof(ip));
        
format(string,sizeof(string),"{FF0000}|Anti-CrasherHack By [MD]_Shift|: {FFFF00}%s {999999}(ID:%d) {00FF00}auto-kicked {FF0000}|Reason: %s|",name,playerid,TipCrasher);
        
SendClientMessageToAll(-1,string);
        
printf("[%s] Nick: %s Ip: %s",TipCrasher,name,ip);
        
Kick(playerid);
        return 
false;
    }
    return 
true;



Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>