Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*---------------------------------------*\
- Agradecimentos a SA-MP Team
- //-
- Anti Macro / Fast Auto-CBUG by: ForT
- \*----------------------------------------*/
- #include <a_samp>
- new fAutoC[MAX_PLAYERS];
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && weaponid == 24){
- fAutoC[playerid] ++;
- if(gettime() > GetPVarInt(playerid, "UmSegundo")){
- SetPVarInt(playerid, "UmSegundo", gettime() + 1);
- fAutoC[playerid] = 0;
- }else{
- if(fAutoC[playerid] > 4){
- SendClientMessage(playerid, 0xFF0000FF, "Você está usando Macro / Auto-CBUG.");
- fAutoC[playerid] = 0;
- }
- }
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_CROUCH)
- fAutoC[playerid] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement