AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Quick Question (https://forums.alliedmods.net/showthread.php?t=106241)

jagged20101 10-12-2009 18:06

Quick Question
 
How do u make it so when u give someone a weapon (give_item(id,"weapon_glock18") ) that it gets empied of ammo, would "give_item (id,"ammo_0") work?

Thanks
+ karma

Exolent[jNr] 10-12-2009 18:14

Re: Quick Question
 
Code:
cs_set_weapon_ammo( give_item( id, "weapon_m3" ), 30 ); cs_set_user_bpammo( id, CSW_M3, 100 );
30 = clip
100 = backpack

jagged20101 10-12-2009 18:23

Re: Quick Question
 
Thanks alot!


All times are GMT -4. The time now is 22:34.

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