View Single Post
TimooCS
Veteran Member
Join Date: Dec 2012
Location: Argentina
Old 03-04-2013 , 14:57   Re: [AYUDA] Con Un Modo
#3

._.
PHP Code:
else if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_WALK) && random_num(1get_pcvar_num(cvar_walkchance)) == get_pcvar_num(cvar_walk) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_walkratio), floatround_ceil) >= && iPlayersnum >= get_pcvar_num(cvar_walkminplayers)) || mode == MODE_WALK)
{
//Walk Mode
g_plagueround true
g_walkround 
true

// Turn someone into a Survivor, Predator, Wesker, Sniper, Ninja, Leon
id fnGetRandomAlive(random_num(1iPlayersnum))
humanme(id1,1,0,0,0,1,1)

// Turn someone into a Nemesis (not the survivor!)
while (g_survivor[id]) id fnGetRandomAlive(random_num(1iPlayersnum));
zombieme(id011,1,1)

// iMaxZombies is rounded up, in case there aren't enough players
iMaxZombies floatround((iPlayersnum-2)*get_pcvar_float(cvar_plagueratio), floatround_ceil)
iZombies 0

// Randomly turn iMaxZombies players into zombies
while (iZombies iMaxZombies)
{
if (
id g_maxplayers)
id++
else
id 1

// Dead or already a zombie or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue;

// Random chance
if (random_num(01))
{
// Turn into a nemesis, assasin, hunter
zombieme(id011,1,1)
iZombies++
}
}

// Turn the rest of players into humans
for (id 1id <= g_maxplayersid++)
{
// Only those of them who arent zombies or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue

// Remove previous tasks and make them survivors
remove_task(id+TASK_TEAM)
humanme(id1,1,0,0,0,1,1)

/* Switch to CT
if (fm_get_user_team(id) != CS_TEAM_CT) // need to change team?
{
fm_set_user_team(id, CS_TEAM_CT)
set_task(0.1+g_teams_i, "fm_set_user_team_msg", id+TASK_TEAM)
g_teams_i += 0.1; // increase teams task counter
}*/
}

// Play plague sound
PlaySound(sound_plague[random_num(0sizeof sound_plague -1)]);

// Show Plague HUD notice
set_hudmessage(050200, -1.00.1710.05.01.01.0, -1)
ShowSyncHudMsg(0g_MsgSync"%L"LANG_PLAYER"NOTICE_WALK")

// Round start forward
ExecuteForward(g_fwRoundStartg_fwDummyResultMODE_WALK0);

si necesitas otra parte decime ;)
__________________
TimooCS is offline
Send a message via MSN to TimooCS Send a message via Skype™ to TimooCS