Advertisement
Guest User

Untitled

a guest
Jun 15th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
  2. {
  3.     new Float:x, Float:y, Float:z;
  4.     GetPlayerPos(playerid, x, y, z);
  5.  
  6.     if (weaponid < 22 || weaponid > 38)
  7.         return 0;      
  8.  
  9.     if(!(-20000.0 <= x <= 20000.0) || !(-20000.0 <= y <= 20000.0) || !(-20000.0 <= z <= 20000.0))
  10.             return 0;  
  11.  
  12.     return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement