SHARE
TWEET

Ant CBUG - HomeHots

a guest Jul 28th, 2014 508 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*---------------------------------------*\
  2.     Agradecimentos a SA-MP Team
  3. //-
  4.    Anti Macro / Fast Auto-CBUG by: ForT
  5. \*----------------------------------------*/
  6.  
  7. #include <a_samp>
  8.  
  9. new fAutoC[MAX_PLAYERS];
  10.  
  11. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  12. {
  13.     if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && weaponid == 24){
  14.  
  15.         fAutoC[playerid] ++;
  16.        
  17.         if(gettime() > GetPVarInt(playerid, "UmSegundo")){
  18.        
  19.             SetPVarInt(playerid, "UmSegundo", gettime() + 1);
  20.             fAutoC[playerid] = 0;
  21.  
  22.         }else{
  23.             if(fAutoC[playerid] > 4){
  24.            
  25.                 SendClientMessage(playerid, 0xFF0000FF, "Você está usando Macro / Auto-CBUG.");
  26.                 fAutoC[playerid] = 0;
  27.             }
  28.         }
  29.     }
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  34. {
  35.     if(newkeys & KEY_CROUCH)
  36.         fAutoC[playerid] = 0;
  37.  
  38.     return 1;
  39. }
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