SA-MP Forums Archive
[HELP] f*ck for Bullet Crassher in 0.3.7 - 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: [HELP] f*ck for Bullet Crassher in 0.3.7 (/showthread.php?tid=579813)



[HELP] f*ck for Bullet Crassher in 0.3.7 - VenomMancer - 30.06.2015

How to stop this ?
btw my lag comp off.

Here i find at server_log.txt
Quote:

[00:36:27] [warning] Invalid shot data for player(30). Shot out of bounds.
[00:36:28] SPAWN DEBUG : TAUKOMEDAN. (lOAD SKIN)
[00:36:31] [warning] Invalid shot data for player(30). Shot out of bounds.
[00:36:32] [part] VenomMancer has left the server (2:0)
[00:36:35] [warning] Invalid shot data for player(30). Shot out of bounds.
[00:36:35] [warning] Invalid shot data for player(30). Shot out of bounds.

I got kicked because Invalid Shot.

Help me please


Re: [HELP] f*ck for Bullet Crassher in 0.3.7 - iTakelot - 30.06.2015

Estou com o mesmo poblema, auguem?


Re: [HELP] f*ck for Bullet Crassher in 0.3.7 - Cheesus - 30.06.2015

Код:
public OnPlayerUpdate(playerid)
{
	if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
		new Float:vec[3];
		GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
		new bool:possible_crasher = false;
		for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
			if (floatabs(vec[i]) > 10.0)
				possible_crasher = true;

		if (possible_crasher)
			return 0; //do not send fake data, prevents crash
	}

	return 1;
}



Re: [HELP] f*ck for Bullet Crassher in 0.3.7 - Vince - 30.06.2015

OnPlayerWeaponShot does not work when lagcomp is off, it says that right on the wiki page.


Re: [HELP] f*ck for Bullet Crassher in 0.3.7 - VenomMancer - 30.06.2015

Quote:
Originally Posted by Cheesus
Посмотреть сообщение
Код:
public OnPlayerUpdate(playerid)
{
	if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
		new Float:vec[3];
		GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
		new bool:possible_crasher = false;
		for (new i = 0; !possible_crasher && i < sizeof(vec); i++)
			if (floatabs(vec[i]) > 10.0)
				possible_crasher = true;

		if (possible_crasher)
			return 0; //do not send fake data, prevents crash
	}

	return 1;
}
This works fine ?