Raised This Month: $ Target: $400
 0% 

get_user_ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-04-2009 , 20:05   Re: get_user_ammo
Reply With Quote #3

ty but its the same

PHP Code:
public client_prethink(id)
{
    new 
button pev(id,pev_button)
    if(
button IN_RELOAD)
    {
         switch(
random_num(0,2))
        {
             case 
0:
             {
                 new 
weapon1clip1ammo1
                get_user_ammo
(idweapon1clip1ammo1)
                if (
ammo1 <= && clip1 <= 5)
                {
                
client_cmd(id,"speak l4d_radio/Reloading01.wav");
                
client_cmd(id"say_team Reloading...Need backup")
                }
                return 
PLUGIN_HANDLED
            
}
            case 
1:
            {
                new 
weapon1clip1ammo1
                get_user_ammo
(idweapon1clip1ammo1)
                if (
ammo1 <= && clip1 <= 5)
                {
                
client_cmd(id,"speak l4d_radio/Reloading02.wav");
                
client_cmd(id"say_team Realoading!")
                }
                return 
PLUGIN_HANDLED
            
}
            case 
2:
            {
                new 
weapon1clip1ammo1
                get_user_ammo
(idweapon1clip1ammo1)
                if (
ammo1 <= && clip1 <= 5)
                {
                
client_cmd(id,"speak l4d_radio/Reloading03.wav");
                
client_cmd(id"say_team Need backup!")
                }
                return 
PLUGIN_HANDLED
            
}
            case 
3:
            {
                new 
weapon1clip1ammo1
                get_user_ammo
(idweapon1clip1ammo1)
                if (
ammo1 <= && clip1 <= 5)
                {
                
client_cmd(id,"speak l4d_radio/Reloading04.wav");
                
client_cmd(id"say_team Give me backup!i´m reloading")
                }
                return 
PLUGIN_HANDLED
            
}
            
        
        } 
        
        
        
//new radioSound = random_num( 0, (sizeof radio_snd) - 1 );
        //client_cmd(id,"%s", radio_snd[ random_num( 0, charsmax( radio_snd ) ) ]);
        //client_cmd(id,"spk %s", radio_snd[radioSound( 1, charsmax( radio_snd   ) ) ]);
    
}
    return 
PLUGIN_HANDLED

bullshit howmany ammo i have, this plays the sound & prints the test.i just wont to block the spam & this plays if player has only 5 shots in weapon.

hmm whats wrong?!
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 02:22.


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