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!
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 z == -5.5 || !(-1000000.0 <= z <= 1000000.0) *then {
new TipCrasher[20];
if z == -5.5 *then{
TipCrasher="BulletCrasher";
}else{
TipCrasher="BadVehicleCrasher";}
new string[144],name[MAX_PLAYER_NAME],ip[16];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerIp(playerid, ip, sizeof(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;
}