mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
removed dod_get_user_team ( fixed core native )
This commit is contained in:
parent
f2bfee294e
commit
ffad9e7af4
@ -107,18 +107,6 @@ static cell AMX_NATIVE_CALL get_user_score(AMX *amx, cell *params){
|
||||
return -1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_user_team(AMX *amx, cell *params){
|
||||
int index = params[1];
|
||||
if (index<1||index>gpGlobals->maxClients){
|
||||
MF_RaiseAmxError(amx,AMX_ERR_NATIVE);
|
||||
return 0;
|
||||
}
|
||||
CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);
|
||||
if (pPlayer->ingame)
|
||||
return pPlayer->pEdict->v.team;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_user_class(AMX *amx, cell *params){
|
||||
int index = params[1];
|
||||
if (index<1||index>gpGlobals->maxClients){
|
||||
@ -236,7 +224,6 @@ AMX_NATIVE_INFO base_Natives[] = {
|
||||
{ "dod_get_team_score", get_team_score },
|
||||
{ "dod_get_user_score", get_user_score },
|
||||
{ "dod_get_user_class", get_user_class },
|
||||
{ "dod_get_user_team", get_user_team },
|
||||
{ "dod_get_user_weapon", get_user_weapon },
|
||||
|
||||
{ "dod_get_map_info", get_map_info },
|
||||
|
Loading…
Reference in New Issue
Block a user