19.02.2018, 12:28
Anti veh mod crash: https://sampforum.blast.hk/showthread.php?tid=317303
Anti bullet crash:
All I know myself is, the crasher doesn't use any vehicle as there are no vehicles around, he is on foot and has weapon detonator in his hand to send warnings to players to crash them somehow.
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; }