Raised This Month: $ Target: $400
 0% 

gun with only 3bullets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drakeris
Senior Member
Join Date: Jul 2009
Old 08-17-2009 , 08:34   gun with only 3bullets
Reply With Quote #1

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 :/
drakeris is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2009 , 09:02   Re: gun with only 3bullets
Reply With Quote #2

Use cs_set_weapon_ammo() and cs_set_user_bpammo().
__________________
Arkshine is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-17-2009 , 11:25   Re: gun with only 3bullets
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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 );
drakeris is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 08-17-2009 , 11:29   Re: gun with only 3bullets
Reply With Quote #4

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
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2009 , 11:30   Re: gun with only 3bullets
Reply With Quote #5

new Entity = give_item( id, "weapon_deagle" );
cs_set_weapon_ammo( Entity, 3 );
cs_set_user_bpammo( id, CSW_DEAGLE , 0 );
__________________
Arkshine is offline
Old 08-17-2009, 11:42
Bad_Bud
This message has been deleted by Bad_Bud. Reason: <--fail
drakeris
Senior Member
Join Date: Jul 2009
Old 08-17-2009 , 11:55   Re: gun with only 3bullets
Reply With Quote #7

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

Last edited by drakeris; 08-17-2009 at 11:58.
drakeris is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-17-2009 , 16:17   Re: gun with only 3bullets
Reply With Quote #8

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
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-18-2009 , 01:22   Re: gun with only 3bullets
Reply With Quote #9

i dont know is this a bug of thep lugins or what but when you drop a deagle you get another one ;(
drakeris 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 15:04.


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