Raised This Month: $ Target: $400
 0% 

Strip user


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-03-2009 , 17:24   Re: Strip user
Reply With Quote #5

PHP Code:
stock bool:fm_strip_user_gun(indexwid 0, const wname[] = "") { 
    new 
ent_class[32]
    if (!
wid && wname[0])
        
copy(ent_class31wname)
    else {
        new 
weapon widclipammo
        
if (!weapon && !(weapon get_user_weapon(indexclipammo)))
            return 
false
        
        get_weaponname
(weaponent_class31)
    }

    new 
ent_weap fm_find_ent_by_owner(-1ent_classindex)
    if (!
ent_weap)
        return 
false

    engclient_cmd
(index"drop"ent_class)

    new 
ent_box pev(ent_weappev_owner)
    if (!
ent_box || ent_box == index)
        return 
false

    dllfunc
(DLLFunc_Thinkent_box)

    return 
true

fm_strip_user_gun(id, "id of weapon")

the id's is here
__________________
alan_el_more 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 02:22.


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