View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-30-2008 , 11:44   Re: Individual Weapon Restrictions
Reply With Quote #8

Quote:
Originally Posted by Exolent[jNr] View Post
1.
Code:
                    //This will force a player to drop a weapon if he is carrying a weapon when                     //a restriction is added for it.                     client_cmd( iPlayer, "drop %s", szWeapon );

Wrong. Here is the correct way:
Code:
engclient_cmd( iPlayer, "drop", szWeapon );
--------------------------------------------------------------
2. You can remove <cstrike> and replace it with fakemeta conversions.
It's not required, but it's always nice to have 1 less module being used, especially when it's replaced with fakemeta.
I'll do all of the conversions you want, make me a list. It does work properly as it is written now, though.

These are the functions needed to be converted to fakemeta:
cs_get_user_bpammo
cs_set_user_bpammo
cs_get_user_money (done)
cs_set_user_money (done)
cs_get_weapon_id (can be replaced with get_weaponid?)
__________________

Last edited by Bugsy; 09-30-2008 at 11:56.
Bugsy is offline