Guest User

Ant CBUG - HomeHots

a guest
Jul 28th, 2014
881
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