Raised This Month: $ Target: $400
 0% 

Strip specific weapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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