Raised This Month: $ Target: $400
 0% 

Adding bpammo for each weapon differently


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fawkes37
Senior Member
Join Date: Jul 2008
Old 08-21-2008 , 07:08   Adding bpammo for each weapon differently
Reply With Quote #1

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);
 }
}

Last edited by Fawkes37; 08-21-2008 at 07:11.
Fawkes37 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:13.


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