Raised This Month: $32 Target: $400
 8% 

[HELP] one bullet only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 07-13-2017 , 04:09   [HELP] one bullet only
Reply With Quote #1

Code:
                        if(cs_get_user_money(id) >= 14000)
                        {
                                give_item(id, "weapon_deagle")
                                ColorChat(0, GREEN, "TEXT", name)
                                cs_set_user_money(id, cs_get_user_money(id) - 14000)
How do i make the deagle have only one bullet in this code?
Visinescu is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 07-13-2017 , 06:55   Re: [HELP] one bullet only
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=186135
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-15-2017 , 04:53   Re: [HELP] one bullet only
Reply With Quote #3

new OneAmmo = give_item(id, "weapon_deagle");
cs_set_weapon_ammo(OneAmmo, 1);

I don't remember the exact syntax of the cs set weapon ammo native but should be like this.
eyal282 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-17-2017 , 18:59   Re: [HELP] one bullet only
Reply With Quote #4

This don't will work when you reload the weapon.

Check the Weapons MaxClip plugin of ConnorMCLeod.
__________________








CrazY. is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-20-2017 , 16:15   Re: [HELP] one bullet only
Reply With Quote #5

Quote:
Originally Posted by CrazY. View Post
This don't will work when you reload the weapon.

Check the Weapons MaxClip plugin of ConnorMCLeod.
Does give item grant bpammo?
eyal282 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-20-2017 , 18:12   Re: [HELP] one bullet only
Reply With Quote #6

https://forums.alliedmods.net/showth...=81183?t=81183 ?
__________________








CrazY. is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-21-2017 , 05:37   Re: [HELP] one bullet only
Reply With Quote #7

Quote:
Originally Posted by eyal282 View Post
Does give item grant bpammo?
Only if you give the ammo on purpose. When you give the item, there's no bp ammo.
__________________
HamletEagle is offline
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 09:53.


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