Well, welcome to the jungle.
As for your questions on commands, I'd suggest checking out the
funcwiki.
For your plugin, I'd recommend creating an array and sorting players in a for loop based on the array. For example:
Code:
new const CsTeams:Sorting[4] =
{
CS_TEAM_T,
CS_TEAM_CT,
CS_TEAM_CT,
CS_TEAM_CT
}
new position
new iPlayers[32]
new iNum
get_players( iPlayers, iNum )
new id
for( new i = 0; i < iNum; i++ )
{
cs_set_user_team( iPlayers[i], Sorting[position++] )
}
If you don't understand anything from that example, let me know and I'll explain it. Also, you shouldn't use the exact above method, you'll want to add in something in the for loop to randomize the players instead of doing it in the same order every time.
__________________