22.05.2015, 22:10
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) {
if(hittype != BULLET_HIT_TYPE_NONE) { // Update 0.3.7
if((fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT))) {
Kick(playerid);
return 0;
}
}
else {
if (weaponid <= 0 || weaponid > 46) { Kick(playerid); return 0; }
}
return 1
}