Adding bpammo for each weapon differently
hello
in the beginning i would say im a newb and havent even learned Pawn or any other codings because im more into mapping and other stuff, but i need this plugin to get done for my server. ok, im using biohazard and a plugin which would set different bpammo for every weapon would be very nice. so i searched, found some code and tried to do something of my own. but failed misrably. 1) when compiling it says error 088: number of arguement does not match definition (line 15) 2) heck, i dont even know if it would work. so thats why i would ask your help again. here's my code (im just trying to set deagle's bpammo at first, and then adding all the others if it works): Code:
#include <amxmodx> |
Re: Adding bpammo for each weapon differently
to call a function, you need to follow the prototype
cs_set_user_bpammo ( index, weapon, amount ) |
Re: Adding bpammo for each weapon differently
Quote:
cs_set_user_bpammo (id, CSW_DEAGLE, 200) //was that what i was supposed to do? since it compiled now, is there a chance it will work or there isnt a point in trying ? sorry for my noobish coding, thanks in advance |
Re: Adding bpammo for each weapon differently
weapon should be the weaponid stuff begin CSW_
cs_set_user_bpammo(id, CSW_AK47, 90) |
Re: Adding bpammo for each weapon differently
Quote:
my idiotic brain figured it out so would it work or there isnt a point in trying ? thx in advance EDIT: is there a difference between Code:
public event_currentweapon(id)Code:
public event_currentweapon(id) |
Re: Adding bpammo for each weapon differently
you don't need to check the current weapon to set its bpammo
|
Re: Adding bpammo for each weapon differently
Quote:
whenever i reload, the ammo needed to reload has to go off the bpammo. but this plugin sets it to whatever i want to and keeps it that way. how to fix it? |
| All times are GMT -4. The time now is 03:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.