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(1, g_iMaxPlayers)
for ( new IDS = 1 ; 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(id, 2000)
set_user_health(IDS, 5000)
set_rendering(IDS, kRenderFxGlowShell, 255, 155, 55, kRenderNormal, 127)
print_color(0, "%s^x01 Modo: NEMESIS.^x04 %s^x01 es el^x04 NEMESIS.", MODNAME, g_playername[IDS])
}
case 2:
{
set_rendering(id, kRenderFxGlowShell, 55, 155, 255, kRenderNormal, 127)
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)
__________________