Randomize teams
Hello... Like i said in another post (just edited it because i don't need this anymore), i'm making a for MIX, CPL and CF.
I just want to know, how can i put players from spec to a random team, respecting the limitteams of course. And if possible, show to me how everything is working Sorry for my bad english And thanks for you response =D |
Re: Randomize teams
register_clcmd("amx_random", "pRandom", ADMIN_KICK, "Random player teams")
public pRandom(id) { new iRandomNum = random_num(0, 1) switch(iRandomNum) { case 0: cs_set_user_team(id, CS_TEAM_T) case 1: cs_set_user_team(id, CS_TEAM_CT) } Just a suggestion :) |
Re: Randomize teams
I use this ,
pretty easy but it does the trick xD PHP Code:
|
Re: Randomize teams
Thanks! :wink:
Working great ! |
Re: Randomize teams
Here is a real way to randomize teams.
grim's will be the same each time. Code:
|
Re: Randomize teams
Quote:
|
Re: Randomize teams
Yeah i thinked this too...
But why new iPlayers[32] and not [33]? Is 0 counting as a player too? EDIT@ In this way, i can't get players from spec... Why?[ EDITē@ You can't change your name with this, and when you try to change your name, sv_restart doesn't work anymore (i've puted server_cmd(amx_cvar sv_restart 1) in the plugin...) |
Re: Randomize teams
Quote:
|
Re: Randomize teams
Quote:
Code:
2. That code snippet has nothing to do with those bugs. It has to be something else in your code. |
Re: Randomize teams
PHP Code:
|
| All times are GMT -4. The time now is 08:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.