Raised This Month: $ Target: $400
 0% 

Strip specific weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 03-05-2010 , 19:50   Strip specific weapon
Reply With Quote #1

Is there a way to strip only a specific weapon?
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-05-2010 , 20:14   Re: Strip specific weapon
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=71718
__________________
Bugsy is offline
Hx7r
Member
Join Date: Mar 2009
Old 03-05-2010 , 20:15   Re: Strip specific weapon
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=56377
Hx7r is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-06-2010 , 07:36   Re: Strip specific weapon
Reply With Quote #4

Quote:
Originally Posted by Hx7r View Post
+ you can mix with http://forums.alliedmods.net/showthread.php?t=85962
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-06-2010 , 07:48   Re: Strip specific weapon
Reply With Quote #5

FTW but Engine & Ham .
PHP Code:
#include <engine>
#include <hamsandwich>
 
stock bool:fnStripWeapon(iClient, const szWeapon[])
{
        new 
iEntity find_ent_by_owner(-1szWeaponiClient);
 
        if (!
is_valid_ent(iEntity))
                return 
false;
 
        
ExecuteHamB(Ham_RemovePlayerItemiClientiEntity);
        
ExecuteHamB(Ham_Weapon_RetireWeaponiEntity);
        
remove_entity(iEntity);
 
        return 
true;

__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-06-2010 , 07:52   Re: Strip specific weapon
Reply With Quote #6

It's better to direct check player weapon slot.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 03-06-2010 , 10:41   Re: Strip specific weapon
Reply With Quote #7

I just realised I can use ham_strip_weapon
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-06-2010 , 15:47   Re: Strip specific weapon
Reply With Quote #8

Don't use hev's code, it doesn't update what should be updated.

Try https://forums.alliedmods.net/showth...47#post1109747
__________________
- 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 08:46.


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