new crasher?
#3

i am using an anti crasher ,here's the code

Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	//SendClientMessageToAll(-1, "OnPlayerWeaponShot");

	//PlayerInfo[playerid][Bullets][0]++;


	if( hittype != BULLET_HIT_TYPE_NONE ) // Bullet Crashing uses just this hittype
	{
        if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) // a valid offset, it's impossible that a offset bigger than 1000 is legit (also less than -1000.0 is impossible, not used by this hack, but still, let's check for it, just for the future, who knows what hacks will appear). The object with biggest offset is having ~700-800 radius.
		{
			new string[128];
			format(string,sizeof(string),"%s has been banned by The System for Invalid Bullets", GetName(playerid));
			SendClientMessageToAll(COLOR_RED, string);
            BanWithReason(playerid, string, SYSTEM_ID, "Invalid Bullets");
			return 0; // let's desynchronize that bullet, so players won't crash
		}
	}
This crash never happened before it's the first time
Reply


Messages In This Thread
new crasher? - by Ha$H_Sexyboy - 22.09.2015, 14:25
Re: new crasher? - by Alex Magaсa - 22.09.2015, 14:59
Re: new crasher? - by Ha$H_Sexyboy - 22.09.2015, 17:58
Re: new crasher? - by IDarkness - 23.09.2015, 02:07
Re: new crasher? - by Ha$H_Sexyboy - 23.09.2015, 09:06
Re: new crasher? - by Alex Magaсa - 23.09.2015, 11:24
Re: new crasher? - by Ha$H_Sexyboy - 23.09.2015, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)