AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drop Glock/USP after VIPmenu pistol (https://forums.alliedmods.net/showthread.php?t=245350)

Estland 07-31-2014 16:51

Drop Glock/USP after VIPmenu pistol
 
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);
 }


Flick3rR 07-31-2014 17:10

Re: Drop Glock/USP after VIPmenu pistol
 
PHP Code:

engclient_cmd(idget_user_team(id) == "weapon_glock18" "weapon_usp"


mottzi 08-01-2014 21:26

Re: Drop Glock/USP after VIPmenu pistol
 
Thats not what he asked for. Search for strip_user_weapon() on the forums.

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

Flick3rR 08-01-2014 21:37

Re: Drop Glock/USP after VIPmenu pistol
 
Ah, god, I missed the drop part. My bad. And yes, it should work.


All times are GMT -4. The time now is 13:06.

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