Raised This Month: $ Target: $400
 0% 

Properly using fm_strip_user_gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-07-2010 , 14:34   Properly using fm_strip_user_gun
Reply With Quote #1

I'm using this with the logevent spawned_with_bomb

This is what it says:
fm_strip_user_gun( id, wid, const wpname[]="" )

If the wid of the C4 is 6, and the weapon name is CSW_C4, would it be:

fm_strip_user_gun( id, 6, CSW_C4 )

Or do I only need to use 2 of the 3 arguements
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-07-2010 , 14:59   Re: Properly using fm_strip_user_gun
Reply With Quote #2

CSW_C4 is an integer and is equal to 6. Weapon name is a string. Probably something like "weapon_gun".

Code:
fm_strip_user_fun(id, CSW_C4)
__________________
fysiks is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-07-2010 , 15:46   Re: Properly using fm_strip_user_gun
Reply With Quote #3

Code:
fm_strip_user_gun( id, CSW_C4, "weapon_c4" )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-07-2010 , 15:52   Re: Properly using fm_strip_user_gun
Reply With Quote #4

fm_strip_user_gun(id) strips the current weapon from a player.

If you want to remove a specific weapon from him, you have to pass the weapon type OR the weapon name, simple seems to be weapon name :

PHP Code:
fm_strip_user_gun(id, .wname="weapon_c4"
PHP Code:
fm_strip_user_gun(idCSW_C4
PHP Code:
fm_strip_user_gun(id_"weapon_c4"
PHP Code:
fm_strip_user_gun(id0"weapon_c4"
]wrecked_
If you pass weapontype, weaponname is just ignored.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 07:07.


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