AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   no reload problem (https://forums.alliedmods.net/showthread.php?t=17875)

atambo 09-10-2005 22:10

no reload problem
 
ok I'm trying to make it so that there are no reloads and I have the CurWeapon event registered and all then I have this to make the no reloads:

Code:
new clip = read_data(3)         if(wpnid == CSW_C4 || wpnid == CSW_KNIFE || wpnid == CSW_HEGRENADE || wpnid == CSW_SMOKEGRENADE || wpnid == CSW_FLASHBANG)             return PLUGIN_CONTINUE         if(clip < 1)         {             new wpnname[32]             get_weaponname(wpnid, wpnname, 31)             give_item(id, wpnname)           engclient_cmd(id, wpnname)         }

but when a player buys ammo they have to reload once then they have no reloads...anyone have some ideas?


All times are GMT -4. The time now is 14:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.