34 lines
769 B
SourcePawn
34 lines
769 B
SourcePawn
#if defined _connect_included
|
|
#endinput
|
|
#endif
|
|
|
|
#define _connect_included
|
|
|
|
enum EConnect
|
|
{
|
|
k_OnClientPreConnectEx_Reject = 0,
|
|
k_OnClientPreConnectEx_Accept = 1,
|
|
k_OnClientPreConnectEx_Async = -1
|
|
};
|
|
|
|
|
|
forward bool OnClientPreConnectEx(const char[] name, char password[255], const char[] ip, const char[] steamID, char rejectReason[255]);
|
|
native bool ClientPreConnectEx(const char[] sSteam32ID, EConnect RetVal, char sRejectReason[255]);
|
|
native bool SteamClientAuthenticated(const char[] sSteam32ID);
|
|
|
|
public Extension __ext_Connect =
|
|
{
|
|
name = "Connect",
|
|
file = "connect.ext",
|
|
#if defined AUTOLOAD_EXTENSIONS
|
|
autoload = 1,
|
|
#else
|
|
autoload = 0,
|
|
#endif
|
|
#if defined REQUIRE_EXTENSIONS
|
|
required = 1,
|
|
#else
|
|
required = 0,
|
|
#endif
|
|
}
|