Raised This Month: $ Target: $400
 0% 

How to save droped weapons [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
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
DavidJr
Senior Member
Join Date: Apr 2012
Old 01-20-2014 , 06:04   Re: How to save droped weapons?
Reply With Quote #2

Use array and give it back when you want
__________________
What are you looking for here?
DavidJr is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 01-20-2014 , 06:16   Re: How to save droped weapons?
Reply With Quote #3

https://forums.alliedmods.net/showpo...60&postcount=2
SpeeDeeR is offline
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 01-20-2014 , 06:24   Re: How to save droped weapons?
Reply With Quote #4

Quote:
Originally Posted by SpeeDeeR View Post
Thank you!
CHE4TER is offline
Reply



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