added get_user_footsteps

This commit is contained in:
Borja Ferrer 2006-02-01 13:04:24 +00:00
parent f40ae48849
commit 0e3727573e
2 changed files with 11 additions and 0 deletions

View File

@ -519,6 +519,13 @@ static cell AMX_NATIVE_CALL set_user_footsteps(AMX *amx, cell *params) // set_us
return 1;
}
static cell AMX_NATIVE_CALL get_user_footsteps(AMX *amx, cell *params)
{
CHECK_PLAYER(params[1]);
return g_silent[params[1]];
}
// SidLuke
static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) { // index
CHECK_PLAYER(params[1]);
@ -570,6 +577,7 @@ AMX_NATIVE_INFO fun_Exports[] = {
{"get_user_maxspeed", get_user_maxspeed},
{"set_user_gravity", set_user_gravity},
{"get_user_gravity", get_user_gravity},
{"get_user_footsteps", get_user_footsteps},
{"set_user_hitzones", set_user_hitzones},
{"get_user_hitzones", get_user_hitzones},
{"set_user_noclip", set_user_noclip},

View File

@ -78,6 +78,9 @@ native set_user_noclip(index, noclip = 0);
/* Returns 1 if noclip is set. */
native get_user_noclip(index);
/* Returns 1 if player has silent footsteps, 0 if footsteps are set to normal */
native get_user_footsteps(index);
/* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */
native set_user_footsteps(id, set = 1);