Raised This Month: $ Target: $400
 0% 

How to save droped weapons [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-20-2014 , 05:50   How to save droped weapons [SOLVED]
Reply With Quote #1

When you receive and weapon, 'stripWeapons' drops all weapons that you have.. But I want to save the primary weapon, like the usp/deagle..

Example when you choose AWP
PHP Code:
case 0: {
            
stripWeapons(id)
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(id CSW_AWP30)
            
ColorChat(idGREY"^3[^4SERVER^3] ^1You received AWP")
        } 
stripWeapons
PHP Code:
public stripWeapons(id) {
    
// Strip all weapons
    
strip_user_weapons(id)
    
// Give knife
    
give_item(id"weapon_knife")
    
    
// Give the primary weapon that had the user?
    // code


Last edited by CHE4TER; 01-20-2014 at 12:14. Reason: SOLVED
CHE4TER is offline
 


Thread Tools
Display Modes

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 10:09.


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