Posts: 20
Threads: 8
Joined: Dec 2007
Reputation:
0
Hello, I have a problem. I need a textdraw which shows how many players are in team blue. For example, all server see's how many players are on team blue, but when anyone writes command /blue, that number pluses by one.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
you need to use SetPlayerTeam, GetPlayerTeam and a Timer to do that
Posts: 20
Threads: 8
Joined: Dec 2007
Reputation:
0
Yeah, sure, but I want to know how to make, that the textdraw would always update.
Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
Set a timer that updates every 3 second.
Use a "for" to loop tough all players,
Gettheir team,
format a string with it,
set textdraw string to it.