Quote:
Originally Posted by CryWolf
Man i think i dont follow you, you're trying to say that the specified module will crash my server ? i have just tested yet with 24 bots seems okay, transfered all at round start from terror to random teams, he did not crashed , what i was trying to say on my prev post is that i am using a stable hlds version witch allows me to still run that module fine.
I don't whant to revert all the biohazard team switch from that module back to cstrike or worst i think fakemeta!
FakeMeta it's better than that module, using fakemeta with delay ?
|
With Bots it's not the same.
This code is working fine for me (taken from Exolents HnS Plugins)
PHP Code:
static iCount, client;
iCount = 0;
for( client = 0; client <= g_iMaxPlayers; client++ )
{
if( is_user_connected( client ) )
{
if( iCount >= SWAP_PER_INTERVAL )
{
set_task( SWAP_INTERVAL, "Event_CTWin", TASK_ID_SWAPTEAMS );
}
switch( cs_get_user_team( client ) )
{
case CS_TEAM_T:
{
cs_set_user_team( client, CS_TEAM_CT, CS_CT_GIGN );
iCount++;
}
case CS_TEAM_CT:
{
cs_set_user_team( client, CS_TEAM_T, CS_T_LEET );
iCount++;
}
}
}
}
remove_task(TASK_ID_SWAPTEAMS)
__________________