Maybe this would more fit in 'request' section.
Quote:
-If ct loose round change player
-If ct win round change player
|
If (ct loose or ct win) = if roundend
by 'change player' you mean team swap? and of which player?
Maybe this way is easier?
Quote:
|
If ct left game pick 1 terror to ct team
|
PHP Code:
public player_disconnect(id)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_CT)
{
kupa()
}
}
public kupa()
{
new Float:new_id = random_num(1,32)
new CsTeams:new_userTeam(new_id)
if (new_userTeam == CS_TEAM_T)
cs_set_user_team(new_id, CS_TEAM_CT)
return PLUGIN_HANDLED
else kupa()
}
You sure when left game? I'd better say when he lefts team. (for example he goes to for spect.)
I dunno, is there any register for change team?