diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 196b5539..7a4bf35c 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -455,7 +455,7 @@ static cell_t sm_GetClientAuthStr(IPluginContext *pCtx, const cell_t *params) return SteamIDToLocal(pCtx, params[1], AuthStringType::Steam2, params[2], (size_t)params[3], validate); } -static cell_t sm_GetClientAuthStr2(IPluginContext *pCtx, const cell_t *params) +static cell_t sm_GetClientAuthId(IPluginContext *pCtx, const cell_t *params) { return SteamIDToLocal(pCtx, params[1], (AuthStringType)params[2], params[3], (size_t)params[4], params[5] != 0); } @@ -1646,7 +1646,7 @@ REGISTER_NATIVES(playernatives) { "CanUserTarget", CanUserTarget }, { "ChangeClientTeam", ChangeClientTeam }, { "GetClientAuthString", sm_GetClientAuthStr }, - { "GetClientAuthString2", sm_GetClientAuthStr2 }, + { "GetClientAuthId", sm_GetClientAuthId }, { "GetSteamAccountID", sm_GetSteamAccountID }, { "GetClientCount", sm_GetClientCount }, { "GetClientInfo", sm_GetClientInfo }, diff --git a/plugins/include/clients.inc b/plugins/include/clients.inc index 4de44ef9..600bf3fe 100644 --- a/plugins/include/clients.inc +++ b/plugins/include/clients.inc @@ -286,7 +286,7 @@ native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true); * @return True on success, false otherwise. * @error If the client is not connected or the index is invalid. */ -#pragma deprecated Use GetClientAuthString2 +#pragma deprecated Use GetClientAuthId native bool:GetClientAuthString(client, String:auth[], maxlen, bool:validate=true); /** @@ -302,7 +302,7 @@ native bool:GetClientAuthString(client, String:auth[], maxlen, bool:validate=tru * @return True on success, false otherwise. * @error If the client is not connected or the index is invalid. */ -native bool:GetClientAuthString2(client, AuthStringType:authType, String:auth[], maxlen, bool:validate=true); +native bool:GetClientAuthId(client, AuthStringType:authType, String:auth[], maxlen, bool:validate=true); /** * Returns the client's Steam account ID.