16.07.2015, 05:29
hackers were caused to crash when passing my players side, then this solution seems to solve the problem.
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ ) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); //WEAPONS WITH NO BULLET EXCEED BLOCK if(weaponid < 22 || weaponid > 38) { return 0; } //Z LIMIT BULLETS EXCEED if(!(-20000.0 <= z <= 20000.0)) { return 0; } return 1; }