From b217f4d0c7167e9d442d7fd8bc925f8e04eb6cdf Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 5 Mar 2004 19:08:33 +0000 Subject: [PATCH] removed get_user_deaths --- amxmodx/amxmod.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/amxmodx/amxmod.cpp b/amxmodx/amxmod.cpp index 1c45f37e..c3ff6d94 100755 --- a/amxmodx/amxmod.cpp +++ b/amxmodx/amxmod.cpp @@ -364,15 +364,6 @@ static cell AMX_NATIVE_CALL get_user_frags(AMX *amx, cell *params) /* 1 param */ return (cell)(pPlayer->ingame ? pPlayer->pEdict->v.frags : 0); } -static cell AMX_NATIVE_CALL get_user_deaths(AMX *amx, cell *params) /* 1 param */ -{ - int index = params[1]; - if (index<1||index>gpGlobals->maxClients) - return 0; - CPlayer* pPlayer = GET_PLAYER_POINTER_I(index); - return (pPlayer->ingame ? pPlayer->deaths : 0); -} - static cell AMX_NATIVE_CALL get_user_armor(AMX *amx, cell *params) /* 1 param */ { int index = params[1]; @@ -2290,7 +2281,6 @@ AMX_NATIVE_INFO amxmod_Natives[] = { { "get_user_armor", get_user_armor }, { "get_user_attacker",get_user_attacker }, { "get_user_authid", get_user_authid }, - { "get_user_deaths", get_user_deaths }, { "get_user_flags", get_user_flags }, { "get_user_frags", get_user_frags }, { "get_user_health", get_user_health },