1.1 --- a/plugins/include/sdktools_functions.inc Fri Oct 19 09:03:34 2007 +0000
1.2 +++ b/plugins/include/sdktools_functions.inc Sat Oct 20 23:39:10 2007 +0000
1.3 @@ -218,6 +218,51 @@
1.4 native GetClientAimTarget(client, bool:only_clients=true);
1.5
1.6 /**
1.7 + * Returns the total number of teams in a game.
1.8 + *
1.9 + * @return Total number of teams.
1.10 + */
1.11 +native GetTeamCount();
1.12 +
1.13 +/**
1.14 + * Retrieves the team name based on a team index.
1.15 + *
1.16 + * @param index Team index.
1.17 + * @param name Buffer to store string in.
1.18 + * @param maxlength Maximum length of string buffer.
1.19 + * @noreturn
1.20 + * @error Invalid team index.
1.21 + */
1.22 +native GetTeamName(index, String:name[], maxlength);
1.23 +
1.24 +/**
1.25 + * Returns the score of a team based on a team index.
1.26 + *
1.27 + * @param index Team index.
1.28 + * @return Score.
1.29 + * @error Invalid team index.
1.30 + */
1.31 +native GetTeamScore(index);
1.32 +
1.33 +/**
1.34 + * Sets the score of a team based on a team index.
1.35 + *
1.36 + * @param index Team index.
1.37 + * @return Score.
1.38 + * @error Invalid team index.
1.39 + */
1.40 +native SetTeamScore(index);
1.41 +
1.42 +/**
1.43 + * Retrieves the number of players in a certain team.
1.44 + *
1.45 + * @param index Team index.
1.46 + * @return Number of players in the team.
1.47 + * @error Invalid team index.
1.48 + */
1.49 +native GetTeamClientCount(index);
1.50 +
1.51 +/**
1.52 * @deprecated
1.53 */
1.54 #pragma deprecated Use IgniteEntity() instead