AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Socerboard players (https://forums.alliedmods.net/showthread.php?t=206100)

cypis 01-18-2013 10:19

Socerboard players
 
Hi,
How to get this number players:
http://screenshu.com/static/uploads/.../3x/zbbr26.jpg

Or how to hook when it update ?

NiHiLaNTh 01-18-2013 10:23

Re: Socerboard players
 
If you want to know how many players are in any team - just loop through them and check whether this guy is in desired team and increase the counter.

As for your second question - maybe it reads from TeamInfo message from each player, try blocking it :? But I am unsure that this can be hooked actually.

wickedd 01-18-2013 11:08

Re: Socerboard players
 
get_players( )

pokemonmaster 01-18-2013 12:12

Re: Socerboard players
 
Quote:

Originally Posted by NiHiLaNTh (Post 1875604)
But I am unsure that this can be hooked actually.

register_message?

Xalus 01-18-2013 14:39

Re: Socerboard players
 
This is what I found when I searched.

Code:

TeamScore

Updates the team score on the score board.
Note: In CS TeamName is either "TERRORIST" or "CT".

Name:        TeamScore
Structure:       
string              TeamName
short              Score

http://wiki.amxmodx.org/Half-Life_1_...ents#TeamScore


All times are GMT -4. The time now is 13:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.