Changed forward name to OnClientPreConnectEx.
This commit is contained in:
parent
1bb2e369e0
commit
0857956c40
@ -3,7 +3,7 @@
|
||||
#endif
|
||||
#define _connect_included
|
||||
|
||||
forward bool:OnClientPreConnect(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]);
|
||||
forward bool:OnClientPreConnectEx(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]);
|
||||
|
||||
public Extension:__ext_Connect =
|
||||
{
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#define REQUIRE_EXTENSIONS
|
||||
#include <connect>
|
||||
|
||||
public bool:OnClientPreConnect(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255])
|
||||
public bool:OnClientPreConnectEx(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255])
|
||||
{
|
||||
PrintToServer("----------------\nName: %s\nPassword: %s\nIP: %s\nSteamID: %s\n----------------", name, password, ip, steamID);
|
||||
|
||||
|
||||
@ -350,7 +350,7 @@ bool Connect::SDK_OnLoad(char *error, size_t maxlen, bool late)
|
||||
CREATE_DETOUR(CBaseServer__ConnectClient);
|
||||
CREATE_DETOUR(CBaseServer__CheckChallengeType);
|
||||
|
||||
g_pConnectForward = g_pForwards->CreateForward("OnClientPreConnect", ET_LowEvent, 5, NULL, Param_String, Param_String, Param_String, Param_String, Param_String);
|
||||
g_pConnectForward = g_pForwards->CreateForward("OnClientPreConnectEx", ET_LowEvent, 5, NULL, Param_String, Param_String, Param_String, Param_String, Param_String);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
/* Basic information exposed publicly */
|
||||
#define SMEXT_CONF_NAME "Connect"
|
||||
#define SMEXT_CONF_DESCRIPTION ""
|
||||
#define SMEXT_CONF_VERSION "1.0.0"
|
||||
#define SMEXT_CONF_VERSION "1.1.0"
|
||||
#define SMEXT_CONF_AUTHOR "Asher \"asherkin\" Baker"
|
||||
#define SMEXT_CONF_URL "http://limetech.org/"
|
||||
#define SMEXT_CONF_LOGTAG "CONNECT"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user