fix for bug am46266: TFC team names not picking up
This commit is contained in:
parent
483403aa3a
commit
a65d65bee4
@ -991,7 +991,9 @@ static cell AMX_NATIVE_CALL get_user_team(AMX *amx, cell *params) /* 3 param */
|
||||
}
|
||||
//
|
||||
if (params[3])
|
||||
{
|
||||
set_amxstring(amx, params[2], pPlayer->team.c_str(), params[3]);
|
||||
}
|
||||
|
||||
return pPlayer->teamId;
|
||||
}
|
||||
|
@ -92,9 +92,10 @@ void Client_ShowMenu(void* mValue)
|
||||
}
|
||||
}
|
||||
|
||||
extern bool g_bmod_tfc;
|
||||
void Client_TeamInfo(void* mValue)
|
||||
{
|
||||
if (mPlayer) return;
|
||||
if (mPlayer && !g_bmod_tfc) return;
|
||||
static int index;
|
||||
|
||||
switch (mState++)
|
||||
@ -107,6 +108,7 @@ void Client_TeamInfo(void* mValue)
|
||||
char* msg = (char*)mValue;
|
||||
g_players[index].team.assign(msg);
|
||||
g_teamsIds.registerTeam(msg, -1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user