Raised This Month: $ Target: $400
 0% 

Help health random


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wEEk
Senior Member
Join Date: Sep 2012
Old 04-19-2016 , 01:46   Help health random
Reply With Quote #1

My code, have a problem?

PHP Code:
public DarArmas(id)
{
    if (!
g_carnage || !is_user_alive(id) || !is_user_connected(id))
        return;
        
    new 
randomito random_num(1g_iMaxPlayers)
    
    for ( new 
IDS IDS <= g_iMaxPlayers IDS++ )
    {
        if(
IDS != randomito) continue;
        
        if(!
is_user_alive(IDS) || !is_user_connected(IDS))
        return;
        
        if ( 
cs_get_user_team id ) == CS_TEAM_T )
        {
            switch (
Armas)
            {
                case 
1:
                {
                    
set_user_health(id2000)
                    
set_user_health(IDS5000)
                    
set_rendering(IDSkRenderFxGlowShell25515555kRenderNormal127)
                    
print_color(0"%s^x01 Modo: NEMESIS.^x04 %s^x01 es el^x04 NEMESIS."MODNAMEg_playername[IDS])
                }
                case 
2:
                {
                    
set_rendering(idkRenderFxGlowShell55155255kRenderNormal127)
                    
print_color(0"%s^x01 Modo: What the Fuck.^x04 Todos tienen GLOW."MODNAME)
                }
            }
        }
    }

PHP Code:
#define round = 6
new g_round

round start

g_round
++

if(
g_round round)  DarArmas(id
__________________
Aprendiendo de nadie
wEEk is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-19-2016 , 10:45   Re: Help health random
Reply With Quote #2

I don't really understand. Are you saying you have a problem or are you asking if we see one?
If you have a problem, describe it.
__________________
Black Rose is offline
wEEk
Senior Member
Join Date: Sep 2012
Old 04-19-2016 , 11:27   Re: Help health random
Reply With Quote #3

I solved this, thank you.
__________________
Aprendiendo de nadie
wEEk is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-19-2016 , 12:11   Re: Help health random
Reply With Quote #4

You're welcome.
__________________

Last edited by Black Rose; 04-19-2016 at 12:30.
Black Rose 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 18:35.


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