mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match n_SetPlayerColor(...)
This commit is contained in:
parent
fe626fdce5
commit
3bafae404e
@ -929,9 +929,15 @@ static cell AMX_NATIVE_CALL n_SetPlayerHealth(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// native SetPlayerColor(playerid, color)
|
||||
static cell AMX_NATIVE_CALL n_SetPlayerColor(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: SetPlayerColor
|
||||
CPlayer* pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
|
||||
if(pPlayer) {
|
||||
pPlayer->SetPlayerColor(params[2]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user