AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Strip specific weapon (https://forums.alliedmods.net/showthread.php?t=120533)

benamo6 03-05-2010 19:50

Strip specific weapon
 
Is there a way to strip only a specific weapon?

Bugsy 03-05-2010 20:14

Re: Strip specific weapon
 
http://forums.alliedmods.net/showthread.php?t=71718

Hx7r 03-05-2010 20:15

Re: Strip specific weapon
 
https://forums.alliedmods.net/showthread.php?t=56377

ConnorMcLeod 03-06-2010 07:36

Re: Strip specific weapon
 
Quote:

Originally Posted by Hx7r (Post 1108883)

+ you can mix with http://forums.alliedmods.net/showthread.php?t=85962

hleV 03-06-2010 07:48

Re: Strip specific weapon
 
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;



ConnorMcLeod 03-06-2010 07:52

Re: Strip specific weapon
 
It's better to direct check player weapon slot.

benamo6 03-06-2010 10:41

Re: Strip specific weapon
 
I just realised I can use ham_strip_weapon

ConnorMcLeod 03-06-2010 15:47

Re: Strip specific weapon
 
Don't use hev's code, it doesn't update what should be updated.

Try https://forums.alliedmods.net/showth...47#post1109747


All times are GMT -4. The time now is 08:46.

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