diff --git a/extensions/sdktools/vnatives.cpp b/extensions/sdktools/vnatives.cpp index 381abbf4..4393e96f 100644 --- a/extensions/sdktools/vnatives.cpp +++ b/extensions/sdktools/vnatives.cpp @@ -605,7 +605,7 @@ static cell_t GetClientEyeAngles(IPluginContext *pContext, const cell_t *params) QAngle angles; bool got_angles = false; - if (pEntity == NULL) + if (pEntity != NULL) { got_angles = GetEyeAngles(pEntity, &angles); } diff --git a/plugins/include/sdktools_functions.inc b/plugins/include/sdktools_functions.inc index 4959ea73..e126611c 100644 --- a/plugins/include/sdktools_functions.inc +++ b/plugins/include/sdktools_functions.inc @@ -213,7 +213,7 @@ native bool:DispatchKeyValueVector(entity, const String:keyName[], const Float:v * @return Entity index being aimed at. * -1 if no entity is being aimed at. * -2 if the function is not supported. - * @error Invalid client index. + * @error Invalid client index or client not in game. */ native GetClientAimTarget(client, bool:only_clients=true);