Raised This Month: $ Target: $400
 0% 

Drop Glock/USP after VIPmenu pistol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Estland
Member
Join Date: Nov 2012
Old 07-31-2014 , 16:51   Drop Glock/USP after VIPmenu pistol
Reply With Quote #1

How to drop a player's Glock or USP, if he chooses Deagle from VIPmenu?

For an example:
Code:
case 1: 
 { 
 give_item(id, "weapon_ak47"); 
 cs_set_user_bpammo(id, CSW_AK47, 90); 
 give_item(id, "weapon_deagle"); 
 cs_set_user_bpammo(id, CSW_DEAGLE, 35); 
 }
Estland is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-31-2014 , 17:10   Re: Drop Glock/USP after VIPmenu pistol
Reply With Quote #2

PHP Code:
engclient_cmd(idget_user_team(id) == "weapon_glock18" "weapon_usp"
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-01-2014 , 21:26   Re: Drop Glock/USP after VIPmenu pistol
Reply With Quote #3

Thats not what he asked for. Search for strip_user_weapon() on the forums.

Edit: actually if you add '; drop' it should be allright.

Last edited by mottzi; 08-01-2014 at 21:28.
mottzi is offline
Send a message via MSN to mottzi
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-01-2014 , 21:37   Re: Drop Glock/USP after VIPmenu pistol
Reply With Quote #4

Ah, god, I missed the drop part. My bad. And yes, it should work.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Reply


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 13:06.


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