19.02.2018, 12:47
Quote:
Anti veh mod crash: https://sampforum.blast.hk/showthread.php?tid=317303
Anti bullet crash: Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(!(-20000.0 <= z <= 20000.0)) { Kick(playerid); return 0; } if( hittype != BULLET_HIT_TYPE_NONE ) { if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) ) { Kick(playerid); return 0; } 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; }} return 1; } |