PHP Code:
#include <cstrike>
new g_maxplayers
public plugin_init()
{
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
g_maxplayers = get_maxplayers()
}
public event_round_start()
{
new ronda_random
ronda_random = random_num(0, 3)
static succes; succes = ronda_random
switch(succes)
static id
for (id = 1; id <= g_maxplayers; id++)
{
if (!is_user_connected(id))
return;
if (cs_get_user_team(id) && CS_TEAM_T)
return;
new variable
variable = random_num(0, 1)
static asd
asd = variable
switch(asd)
{
case 1: cs_set_user_team(id, CS_TEAM_T)
}
}
}
As I do in this code for change, that of all TTs spend 4 to CT every round that is different to 4 CTs. And that is 100% fit to the Ramdom to 4CTS
Sorry my inglish