Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- return 0;
- //Desync shots with Z pos out of bounds
- if(!(-20000.0 <= z <= 20000.0))
- return 0;
- return 1;
- }
Add Comment
Please, Sign In to add comment