Advertisement
Guest User

Untitled

a guest
Jun 6th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  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.     {
  8.         Kick(playerid);
  9.         return 0;
  10.     }
  11.     if(!(-20000.0 <= x <= 20000.0) || !(-20000.0 <= y <= 20000.0) || !(-20000.0 <= z <= 20000.0))
  12.         {
  13.         Kick(playerid);
  14.         return 0;
  15.     }
  16.  
  17.     return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement