Quote:
Originally Posted by alferd
What is this code for?
PHP Code:
CheckTeams()
{
new iPlayers[32], iNum, id
get_players(iPlayers, iNum)
for(new i; i < iNum;i++)
{
id = iPlayers[i]
if(1 <= get_user_team(id) <= 2)
{
cs_set_user_team(id, (get_user_team(id) == 1) ? CS_TEAM_CT : CS_TEAM_T)
}
}
}
|
This code had the purpose of swapping teams, but since amx_swap does that, it's not required to have in that plugin.
Also give me some pictures of the bugs so that i can change my code where nessecary
__________________