Added detection of Replay and SourceTV, and natives to query (bug 5124, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-10-20 21:39:57 -04:00
parent 5732e34f50
commit f3d19a860a
5 changed files with 141 additions and 1 deletions
+16
View File
@@ -314,6 +314,22 @@ native bool:IsClientAuthorized(client);
*/
native bool:IsFakeClient(client);
/**
* Returns if a certain player is the SourceTV bot.
*
* @param client Player index.
* @return True if player is the SourceTV bot, false otherwise.
*/
native bool:IsClientSourceTV(client);
/**
* Returns if a certain player is the Replay bot.
*
* @param client Player index.
* @return True if player is the Replay bot, false otherwise.
*/
native bool:IsClientReplay(client);
/**
* Returns if a certain player is an observer/spectator.
*