Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(gTeam[playerid])
- {
- case TEAM_ARMY:
- {
- if(countTeam(0) < MAX_TEAM_LIMIT)
- {
- SetPlayerTeam(playerid, 0);
- SetPlayerColor(playerid, COLOR_BLUE);
- new rand = random(sizeof(UsaSpawn));
- SetPlayerPos(playerid, UsaSpawn[rand][0], UsaSpawn[rand][1], UsaSpawn[rand][2]);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Full", 5000, 5);
- SpawnPlayer(playerid);
- }
- }
- case TEAM_TERRORIST:
- {
- if(countTeam(1) < MAX_TEAM_LIMIT)
- {
- SetPlayerTeam(playerid, 1);
- SetPlayerColor(playerid, COLOR_RED);
- new rand = random(sizeof(RusSpawn));
- SetPlayerPos(playerid, RusSpawn[rand][0], RusSpawn[rand][1], RusSpawn[rand][2]);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Full", 5000, 5);
- OnPlayerRequestSpawn(playerid);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment