AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help health random (https://forums.alliedmods.net/showthread.php?t=281731)

wEEk 04-19-2016 01:46

Help health random
 
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


Black Rose 04-19-2016 10:45

Re: Help health random
 
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.

wEEk 04-19-2016 11:27

Re: Help health random
 
I solved this, thank you.

Black Rose 04-19-2016 12:11

Re: Help health random
 
You're welcome.


All times are GMT -4. The time now is 18:35.

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