Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward OnPlayerMakeCBug(playerid);
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_FIRE && oldkeys & KEY_CROUCH && IsCbugWeapon(playerid))
- {
- CallLocalFunction("OnPlayerMakeCBug", "i", playerid);
- }
- return 1;
- }
- stock IsCbugWeapon(playerid)
- {
- new weaponID = GetPlayerWeapon(playerid);
- if(weaponID == 22 || weaponID == 24 || weaponID == 25 || weaponID == 27)
- {
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement