Added detection of Replay and SourceTV, and natives to query (bug 5124, r=fyren).
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user