Raised This Month: $ Target: $400
 0% 

Help health random


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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