2019-06-08 15:42:13 +02:00
|
|
|
#if defined _PlayerManager_included
|
2019-05-13 21:57:28 +02:00
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
|
2019-06-08 15:42:13 +02:00
|
|
|
#define _PlayerManager_included
|
2019-05-13 21:57:28 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Check if clients usertype is legit.
|
|
|
|
*
|
|
|
|
* @param clients The client index.
|
|
|
|
*
|
|
|
|
* @return True if valid, false otherwise.
|
|
|
|
* @error Invalid client index, not connected or fake client.
|
|
|
|
*/
|
2019-06-08 15:42:13 +02:00
|
|
|
native bool PM_IsPlayerSteam(int client);
|
2019-05-13 21:57:28 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieve clients usertype.
|
|
|
|
*
|
|
|
|
* @param clients The client index.
|
|
|
|
* @param type The buffer to write to.
|
|
|
|
* @param maxlength The maximum buffer length.
|
|
|
|
*
|
|
|
|
* @return True on success, false otherwise.
|
|
|
|
* @error Invalid client index, not connected or fake client.
|
|
|
|
*/
|
2019-06-08 15:42:13 +02:00
|
|
|
native bool PM_GetPlayerType(int client, char[] type, int maxlength);
|
2019-05-13 21:57:28 +02:00
|
|
|
|
|
|
|
|
2019-06-08 15:42:13 +02:00
|
|
|
public SharedPlugin __pl_PlayerManager =
|
2019-05-13 21:57:28 +02:00
|
|
|
{
|
2019-06-08 15:42:13 +02:00
|
|
|
name = "PlayerManager",
|
|
|
|
file = "PlayerManager_Connect.smx",
|
2019-05-13 21:57:28 +02:00
|
|
|
|
|
|
|
#if defined REQUIRE_PLUGIN
|
|
|
|
required = 1
|
|
|
|
#else
|
|
|
|
required = 0
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#if !defined REQUIRE_PLUGIN
|
2019-06-08 15:42:13 +02:00
|
|
|
public void __pl_PlayerManager_SetNTVOptional()
|
2019-05-13 21:57:28 +02:00
|
|
|
{
|
2019-06-08 15:42:13 +02:00
|
|
|
MarkNativeAsOptional("PM_IsPlayerSteam");
|
|
|
|
MarkNativeAsOptional("PM_GetPlayerType");
|
2019-05-13 21:57:28 +02:00
|
|
|
}
|
|
|
|
#endif
|