Raised This Month: $ Target: $400
 0% 

help with weapon ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fadetodarknezz
Member
Join Date: Oct 2007
Old 11-19-2007 , 18:40   help with weapon ammo
Reply With Quote #1

i want the gun in my hide n seek server when u start with it u have a random chance to get a gun.. i want to make it so u can only have 1 bullet..

for example.. i have a deagle.. i want it to have 1 bullet.. but when i spawn with it. i have 7 bullets and 1 ammo (7/1) i just want it to be 1/0

this is what i have been putting

EVERYTHING works perfect.. i just want it to have 1 ammo.. for any gun i choose.. like deagle

PHP Code:
if(random_num(0100) <= 5)
        {            
            
give_item(player"weapon_awp")
            
            
cs_set_user_bpammo(playerCSW_AWP1)
            
client_print(playerprint_chat"You were lucky, you got a AWP with 1 bullet (5 percent chance)")
        } 
fadetodarknezz is offline
 



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 01:23.


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