cs_set_weapon_ammo w/o cstrike.inc
So ... I think the title sums it up, really.
I don't particularly want to include cstrike when I can most likely set a single data element / hack a single offset to do this. Anyone know how? (Also any ideas on giving a weapon without fun.inc would be cool too) |
Re: cs_set_weapon_ammo w/o cstrike.inc
Give / Strip weapons:
Code:
stock fm_strip_user_weapons(index) |
Re: cs_set_weapon_ammo w/o cstrike.inc
Yeah you can also make your own reading cstrike.h and cstrike.ccp
http://svn.alliedmods.net/viewvc.cgi.../?root=amxmodx |
Re: cs_set_weapon_ammo w/o cstrike.inc
I guessed cstrike.cpp would help, I just thought if someone already knew it would save me a fair bit of bother.
Thankyou, people. Eat karma, bitches. |
Re: cs_set_weapon_ammo w/o cstrike.inc
That's all what you need :
PHP Code:
|
Re: cs_set_weapon_ammo w/o cstrike.inc
I'd probably do it as:
Code:
But both should work fine. Just one other quick question ... when should you pass FM an FM_Allocated String, and when a "real" string (cell array)? EDIT: I'm being a tard. fakemeta_const.inc FTW. "Int StringParamName" means it wants an Int ... just maybe an alloc handle? And "Char *StringParamName" would be a Char pointer ... which I seem to remember means an array. So that's how I tell. Bonus. |
| All times are GMT -4. The time now is 11:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.