Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Anti Sawnoff Fast Reload Script
- @author: uG.Combacior
- @date: 14.05.2014
- Please don't delete the information about me, thanks!
- */
- new pShots[MAX_PLAYERS];
- public OnFilterScriptInit() return 1;
- public OnPlayerConnect(playerid)
- {
- pShots[playerid] = 99999;
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(weaponid == 26 && !IsPlayerInAnyVehicle(playerid))
- {
- new p_ammo = GetPlayerAmmo(playerid);
- if(pShots[playerid] > p_ammo) pShots[playerid] = p_ammo - 3;
- if(pShots[playerid] == p_ammo)
- {
- if(GetPlayerWeaponState(playerid) != 1)
- {
- SetPlayerArmedWeapon(playerid, 0);
- ApplyAnimation(playerid, "PED", "getup", 4.1, 0, 1, 1, 0, 0, 1);
- }
- pShots[playerid] = 99999;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment