Restrict the amount of players on a team
#1

Hey guys!

Right now, I am scripting my own team deathmatch gamemode. I have already made commands using which a player can choose which team to play on (the player gets assigned to a team and his skin changes). I want to restrict the amount of players on a team to 5. I've looked on SA-MP wiki, but I can't find an appropriate command. Can someone help me do this?
Reply
#2

pawn Код:
new team1_amount;
new team2_amount;
When the player does the team command you do teamx_amount++ and check if its greater than 5.
Reply
#3

Thanks a lot. It really helped.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)