AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   gun with only 3bullets (https://forums.alliedmods.net/showthread.php?t=100716)

drakeris 08-17-2009 08:34

gun with only 3bullets
 
well i cannot found the thread where you psoted the reply of how to do this:
i need something that gives a gun for example deagle and only 3bullets :/

Arkshine 08-17-2009 09:02

Re: gun with only 3bullets
 
Use cs_set_weapon_ammo() and cs_set_user_bpammo().

drakeris 08-17-2009 11:25

Re: gun with only 3bullets
 
Quote:

Originally Posted by Arkshine (Post 903252)

well that helped me for the codes but.. i get error when compiling:
argument type mismatch <argument 2>
the lines looks:
Code:

        fm_give_item(id,"weapon_deagle")
 cs_set_weapon_ammo (id, 3 ) 
        cs_set_user_bpammo (id, "weapon_deagle" , 3 );


xbatista 08-17-2009 11:29

Re: gun with only 3bullets
 
PHP Code:

new weapon_id find_ent_by_owner(-1"weapon_ak47"id); 
if(
weapon_id

cs_set_weapon_ammo(weapon_id50); 


in function wiki

Arkshine 08-17-2009 11:30

Re: gun with only 3bullets
 
new Entity = give_item( id, "weapon_deagle" );
cs_set_weapon_ammo( Entity, 3 );
cs_set_user_bpammo( id, CSW_DEAGLE , 0 );

drakeris 08-17-2009 11:55

Re: gun with only 3bullets
 
1 problem next round when he gets a deagle he got 35 reload... :(
only when he dies he gets again deagle with 3 bullets :(

ConnorMcLeod 08-17-2009 16:17

Re: gun with only 3bullets
 
Use this for bullets in weapon : http://forums.alliedmods.net/showthread.php?p=728613

Use this for backpackammo : http://forums.alliedmods.net/showthread.php?p=720161

drakeris 08-18-2009 01:22

Re: gun with only 3bullets
 
i dont know is this a bug of thep lugins or what but when you drop a deagle you get another one ;(


All times are GMT -4. The time now is 15:04.

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