1.1 --- a/plugins/include/clients.inc Wed Mar 28 20:28:42 2007 +0000
1.2 +++ b/plugins/include/clients.inc Wed Mar 28 23:35:12 2007 +0000
1.3 @@ -282,3 +282,101 @@
1.4 * or client not a fake client.
1.5 */
1.6 native SetFakeClientConVar(client, const String:cvar[], const String:value[]);
1.7 +
1.8 +/**
1.9 + * Returns the client's health.
1.10 + *
1.11 + * @param client Player's index.
1.12 + * @return Health value.
1.13 + * @error Invalid client index, client not in game, or no mod support.
1.14 + */
1.15 +native GetClientHealth(client);
1.16 +
1.17 +/**
1.18 + * Returns the client's model name.
1.19 + *
1.20 + * @param client Player's index.
1.21 + * @param model Buffer to store the client's model name.
1.22 + * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.23 + * @noreturn
1.24 + * @error Invalid client index, client not in game, or no mod support.
1.25 + */
1.26 +native GetClientModel(client, String:model[], maxlen);
1.27 +
1.28 +/**
1.29 + * Returns the client's weapon name.
1.30 + *
1.31 + * @param client Player's index.
1.32 + * @param weapon Buffer to store the client's weapon name.
1.33 + * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.34 + * @noreturn
1.35 + * @error Invalid client index, client not in game, or no mod support.
1.36 + */
1.37 +native GetClientWeapon(client, String:weapon[], maxlen);
1.38 +
1.39 +/**
1.40 + * Returns the client's max size vector.
1.41 + *
1.42 + * @param client Player's index.
1.43 + * @param vec Destination vector to store the client's max size.
1.44 + * @noreturn
1.45 + * @error Invalid client index, client not in game, or no mod support.
1.46 + */
1.47 +native GetClientMaxs(client, Float:vec[3]);
1.48 +
1.49 +/**
1.50 + * Returns the client's min size vector.
1.51 + *
1.52 + * @param client Player's index.
1.53 + * @param vec Destination vector to store the client's min size.
1.54 + * @noreturn
1.55 + * @error Invalid client index, client not in game, or no mod support.
1.56 + */
1.57 +native GetClientMins(client, Float:vec[3]);
1.58 +
1.59 +/**
1.60 + * Returns the client's position angle.
1.61 + *
1.62 + * @param client Player's index.
1.63 + * @param ang Destination vector to store the client's position angle.
1.64 + * @noreturn
1.65 + * @error Invalid client index, client not in game, or no mod support.
1.66 + */
1.67 +native GetClientAbsAngles(client, Float:ang[3]);
1.68 +
1.69 +/**
1.70 + * Returns the client's origin vector.
1.71 + *
1.72 + * @param client Player's index.
1.73 + * @param vec Destination vector to store the client's origin vector.
1.74 + * @noreturn
1.75 + * @error Invalid client index, client not in game, or no mod support.
1.76 + */
1.77 +native GetClientAbsOrigin(client, Float:vec[3]);
1.78 +
1.79 +/**
1.80 + * Returns the client's armor.
1.81 + *
1.82 + * @param client Player's index.
1.83 + * @return Armor value.
1.84 + * @error Invalid client index, client not in game, or no mod support.
1.85 + */
1.86 +native GetClientArmor(client);
1.87 +
1.88 +/**
1.89 + * Returns the client's death count.
1.90 + *
1.91 + * @param client Player's index.
1.92 + * @return Death count.
1.93 + * @error Invalid client index, client not in game, or no mod support.
1.94 + */
1.95 +native GetClientDeaths(client);
1.96 +
1.97 +/**
1.98 + * Returns the client's frag count.
1.99 + *
1.100 + * @param client Player's index.
1.101 + * @return Frag count.
1.102 + * @error Invalid client index, client not in game, or no mod support.
1.103 + */
1.104 +native GetClientFrags(client);