10.07.2015, 06:24
pawn Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
//Desync weapon IDs that don't fire bullets
if (weaponid < 22 || weaponid > 38)
{
Ban(playerid);
return 0;
}
//Desync shots with Z pos out of bounds
if(!(-20000.0 <= z <= 20000.0))
return 0;
return 1;
}