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>
#include <cstrike>
#include <engine>
public plugin_init()
{
register_plugin("Bio_bpammo", "0.1", "fawk3s");
register_event("CurWeapon", "event_currentweapon", "be", "1=1");
}
public event_currentweapon(id)
{
if(get_user_weapon(id) == CSW_DEAGLE)
{
cs_set_user_bpammo(id, 200);
}
}