SHARE
TWEET

Untitled

Dravizz Apr 14th, 2020 595 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GM pradžioje
  2.  
  3. new lastDShot[MAX_PLAYERS];
  4. new removeCBugs = 1;
  5. new alertCBugs = 1;
  6.  
  7.  
  8. public OnPlayerWeaponShot
  9.  
  10.  
  11.     if (!IsPlayerInAnyVehicle(playerid) && (removeCBugs || alertCBugs))
  12.     {
  13.         new interval = 0;
  14.         switch (weaponid)
  15.         {
  16.             case 24: interval = 700;
  17.             case 25: interval = 1000;
  18.             case 27: interval = 340;
  19.             case 33: interval = 850;
  20.             case 34: interval = 850;
  21.         }
  22.         if (interval > 0) {    
  23.             if (GetTickCount() - lastDShot[playerid] < interval && GetTickCount() - lastDShot[playerid] >= 0)
  24.             {              
  25.                 if (alertCBugs)
  26.                 {
  27.                    
  28.                 }
  29.                 return !removeCBugs;
  30.             }
  31.             lastDShot[playerid] = GetTickCount();
  32.         }
  33.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top