Raised This Month: $ Target: $400
 0% 

strip weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 05-28-2009 , 07:51   strip weapons
Reply With Quote #1

How do I get the other weapons removed once these are given? Because when a player has an M3 and is given new weapons on the next round, he still keeps the M3. I need the old weapons the player had removed and only the new ones (also the C4 for T's) given.

PHP Code:
public rifles(id)
{
    if(
rifles_active[id] == 1)
    {
        if(
cs_get_user_team(id) == CS_TEAM_T)
        {
            
cs_set_user_defuse(id0)
            
give_item(id"weapon_glock18")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_ak47")
            
give_item(id"weapon_awp")
        }

        if(
cs_get_user_team(id) == CS_TEAM_CT)
        {
            
cs_set_user_defuse(id1)
            
give_item(id"weapon_usp")
            
give_item(id"weapon_deagle")
            
give_item(id"weapon_m4a1")
            
give_item(id"weapon_awp")
        }
    }

Debesėlis 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 01:29.


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