View difference between Paste ID: d9TsSXZ9 and yEGjGYMs
SHOW: | | - or go back to the newest paste.
1
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
2
{
3
	new Float:x, Float:y, Float:z;
4
	GetPlayerPos(playerid, x, y, z);
5
6
	if (weaponid < 22 || weaponid > 38) 
7
	{ 
8
		return 0;
9-
		return 0; 
9+
10
	}
11
	if(!(-20000.0 <= x <= 20000.0) || !(-20000.0 <= y <= 20000.0) || !(-20000.0 <= z <= 20000.0)) 
12
    	{
13
		return 0;
14
		Kick(playerid); 
15
	}
16
17
	return 1;
18
}