Fixed bug where core isn't notified of a team change

This commit is contained in:
David Anderson
2005-10-02 09:57:25 +00:00
parent 21d13507b1
commit 86c2c2db02
3 changed files with 14 additions and 0 deletions

View File

@ -140,6 +140,13 @@ static cell AMX_NATIVE_CALL cs_set_user_deaths(AMX *amx, cell *params) // cs_set
WRITE_SHORT(*((int *)pPlayer->pvPrivateData + OFFSET_TEAM)); // should these be byte?
MESSAGE_END();
if (params[2] == 1)
MF_SetPlayerTeamInfo(params[1], params[2], "TERRORIST");
else if (params[2] == 2)
MF_SetPlayerTeamInfo(params[1], params[2], "CT");
else
MF_SetPlayerTeamInfo(params[1], params[2], NULL);
return 1;
}