Changed forward name to OnClientPreConnectEx.

This commit is contained in:
Asher Baker 2012-06-29 11:05:49 +01:00
parent 1bb2e369e0
commit 0857956c40
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#endif #endif
#define _connect_included #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 = public Extension:__ext_Connect =
{ {

View File

@ -4,7 +4,7 @@
#define REQUIRE_EXTENSIONS #define REQUIRE_EXTENSIONS
#include <connect> #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); PrintToServer("----------------\nName: %s\nPassword: %s\nIP: %s\nSteamID: %s\n----------------", name, password, ip, steamID);

View File

@ -350,7 +350,7 @@ bool Connect::SDK_OnLoad(char *error, size_t maxlen, bool late)
CREATE_DETOUR(CBaseServer__ConnectClient); CREATE_DETOUR(CBaseServer__ConnectClient);
CREATE_DETOUR(CBaseServer__CheckChallengeType); 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; return true;
} }

View File

@ -37,7 +37,7 @@
/* Basic information exposed publicly */ /* Basic information exposed publicly */
#define SMEXT_CONF_NAME "Connect" #define SMEXT_CONF_NAME "Connect"
#define SMEXT_CONF_DESCRIPTION "" #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_AUTHOR "Asher \"asherkin\" Baker"
#define SMEXT_CONF_URL "http://limetech.org/" #define SMEXT_CONF_URL "http://limetech.org/"
#define SMEXT_CONF_LOGTAG "CONNECT" #define SMEXT_CONF_LOGTAG "CONNECT"