sm-ext-RevEmuAPI/include/RevEmuAPI.inc

65 lines
1.3 KiB
PHP
Raw Normal View History

2019-02-24 11:47:37 +01:00
#if defined _RevEmuAPI_included
#endinput
#endif
2019-02-24 11:06:15 +01:00
#define _RevEmuAPI_included
enum RevEmu_UserType
{
2019-02-24 11:34:17 +01:00
Invalid = -1,
SteamLegitUser = 0,
2019-02-24 11:06:15 +01:00
SteamCrackedUser,
RevEmuUser,
RevEmuUserOld,
SettiSRCScanBot,
RevEmuUserV74,
RevEmuUserVeryOld,
UnknownUser,
Steam2Legit,
Steam2Cracked
};
/**
* Check if clients usertype is legit.
*
2019-02-24 11:34:17 +01:00
* @param clients The client index.
2019-02-24 11:06:15 +01:00
*
2019-02-24 11:34:17 +01:00
* @return True if valid, false otherwise.
2019-02-24 11:06:15 +01:00
* @error Invalid client index, not connected or fake client.
*/
native bool RevEmu_IsPlayerSteam(int client);
/**
* Retrieve clients usertype.
*
2019-02-24 11:34:17 +01:00
* @param clients The client index.
2019-02-24 11:06:15 +01:00
*
2019-02-24 11:34:17 +01:00
* @return The clients usertype.
2019-02-24 11:06:15 +01:00
* @error Invalid client index, not connected or fake client.
*/
native RevEmu_UserType RevEmu_GetPlayerType(int client);
public Extension __ext_RevEmuAPI =
{
2019-02-24 11:34:17 +01:00
name = "RevEmuAPI",
file = "RevEmuAPI.ext",
2019-02-24 11:06:15 +01:00
#if defined AUTOLOAD_EXTENSIONS
2019-02-24 11:34:17 +01:00
autoload = 1,
2019-02-24 11:06:15 +01:00
#else
2019-02-24 11:34:17 +01:00
autoload = 0,
2019-02-24 11:06:15 +01:00
#endif
#if defined REQUIRE_EXTENSIONS
2019-02-24 11:34:17 +01:00
required = 1,
2019-02-24 11:06:15 +01:00
#else
2019-02-24 11:34:17 +01:00
required = 0,
2019-02-24 11:06:15 +01:00
#endif
};
#if !defined REQUIRE_EXTENSIONS
public __ext_RevEmuAPI_SetNTVOptional()
{
2019-02-24 11:34:17 +01:00
MarkNativeAsOptional("RevEmu_IsPlayerSteam");
MarkNativeAsOptional("RevEmu_GetPlayerType");
2019-02-24 11:06:15 +01:00
}
#endif