AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   determine the best player in the team (https://forums.alliedmods.net/showthread.php?t=273026)

Administrator 10-11-2015 03:52

determine the best player in the team
 
Good afternoon.
How to determine the best player in the team and give it a 100hp?

nico_barrera 10-11-2015 03:53

Re: determine the best player in the team
 
the best in what?

Administrator 10-11-2015 03:58

Re: determine the best player in the team
 
team

Administrator 10-11-2015 04:59

Re: determine the best player in the team
 
correctly?

PHP Code:

public search()
{
new 
sPlayers[32], iPlayersNumiBestPlayeriBestFrags
get_players
sPlayers,iPlayersNum )
for( 
0iPlayersNumi++) 
{
if( 
get_user_frags(sPlayers[i]) > iBestFrags && cs_get_user_team(i) == CS_TEAM_T)
{
iBestFrags get_user_frags(sPlayers[i]) ; 
iBestPlayer sPlayers[i]
}
}
set_user_health(iBestPlayer,300)




All times are GMT -4. The time now is 22:12.

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