Rename GetClientAuthString2 to GetClientAuthId
This commit is contained in:
parent
d0c701793c
commit
e11fec9ba1
@ -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 },
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user