Raised This Month: $ Target: $400
 0% 

Ultimate ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KamiN
Senior Member
Join Date: Jun 2011
Old 11-22-2011 , 11:26   Ultimate ammo
Reply With Quote #1

How to give a gun for somebody with ultimate ammo (reload needed)?
KamiN is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 11-22-2011 , 11:43   Re: Ultimate ammo
Reply With Quote #2

What is ultimate ammo?
Anyways, give gun give_item()
Give ammo (in clip) cs_set_weapon_ammo()
Give ammo (in backpack) cs_set_user_bp_ammo()
Erox902 is offline
KamiN
Senior Member
Join Date: Jun 2011
Old 11-22-2011 , 11:48   Re: Ultimate ammo
Reply With Quote #3

I want to make unlimited this http://ikelk.lt/storage/images/000/0...iginal_img.png Like in CSDM, when u shout your backpack never ends.
KamiN is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-22-2011 , 12:49   Re: Ultimate ammo
Reply With Quote #4

There is no picture there. Is it a custom weapon? If not, just search for Unlimited Ammo.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
KamiN
Senior Member
Join Date: Jun 2011
Old 11-22-2011 , 13:21   Re: Ultimate ammo
Reply With Quote #5

[IMG]http://img828.**************/img828/4926/originalimg.png[/IMG]

yes, its for a custom weapon.

Heres the example

Code:
public do_specialday(id)
{
.....
            case DAY_TSHLD:
            {    
                if(IsPlayer(i) && is_user_alive(i))
                {
                    switch(cs_get_user_team(i))
                    {
                        case CS_TEAM_T:
                        {
                            strip_weapons(i)

                            give_item(i, "weapon_deagle")
                            give_item(i, "weapon_shield")
                            
                            cs_set_user_bpammo(i, CSW_DEAGLE, 35)

                            if(!(pev(i, pev_flags) & FL_FROZEN))
                            {
                                client_print(i, print_center, "Jus buvote sustingdytas 6 sekundems!");
                                freeze = true
                                set_pev(i, pev_flags, (pev(i, pev_flags) | FL_FROZEN));
                                set_task(7.0, "unfreeze", TASK_unfreeze + id)
                            }
                        }
                        
                        case CS_TEAM_CT:
                        {
                            strip_weapons(i)

                            give_item(i, "weapon_deagle")
                            give_item(i, "weapon_m4a1")
                            
                            cs_set_user_bpammo(i, CSW_DEAGLE, 35)
                            cs_set_user_bpammo(i, CSW_M4A1, 90)
                        }
                    }
                }

                set_hudmessage(0, 85, 255, -1.0, 0.26, 0, 6.0, 6.0)
                show_hudmessage(0, "%s pradejo Terrorist Shield diena! Priziuretojai turi 6s pabegimui! Siuo metu zudyti negalima!", name)
                
                set_task(7.0, "specdaytxtprad", id)            
                jail_open()
            }

.....
}
I want those given guns to have unlimited ammo but only when CASE_TSHLD is active..
KamiN 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 08:25.


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