Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public setAutoJoin(index)
- {
- if(is_user_bot(index))
- {
- cs_set_user_team(index, CS_TEAM_T);
- return;
- }
- new terroristCount;
- #if not defined ForPlayers
- #define ForPlayers(%1) for(new %1 = 1; %1 <= 32; %1++)
- #endif
- ForPlayers(i)
- {
- if(!is_user_connected(i))
- {
- continue;
- }
- if(cs_get_user_team(i) == CS_TEAM_T)
- {
- terroristCount++;
- }
- }
- if(terroristCount >= 1)
- {
- cs_set_user_team(index, CS_TEAM_CT);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement