(23/07/2021 14:22)xbruno1000x Escreveu: Com o código completo fica mais prático.
Tente assim:
Dessa forma a vida ficará infinita na cadeia, não se esqueça de setar para 100 quando o player sair.Código:static PutPlayerInChainAdmin(playerid, time)
{
time = gettime() + time;//(60 * time);
playerChainAdmin[playerid][E_PLAYER_IN_CHAIN] = true;
playerChainAdmin[playerid][E_PLAYER_CHAIN_TIME] = time;
SetPlayerWantedLevel(playerid, 0);
if(IsPlayerCuffed(playerid))
UnshacklePlayer(playerid, REASON_NONE);
if(IsPlayerArrasted(playerid))
ChangePlayerArrestedState(playerid, GetPlayerArrastedMe(playerid), REASON_ADMIN);
if(IsPlayerApproached(playerid))
ChangePlayerApproachedState(playerid, GetPlayerApproachedMe(playerid), REASON_ADMIN);
TogglePlayerControllable(playerid, true);
SetPlayerTeam(playerid, TEAM_JAIL);
SetPlayerVirtualWorld(playerid, 6666);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, prisionPosition[0], prisionPosition[1], prisionPosition[2]);
SetPlayerFacingAngle(playerid, prisionPosition[3]);
SetPlayerHealth(playerid, 99999.0);
SetCameraBehindPlayer(playerid);
SetTimerEx("ShowPlayerPrisionTime", 900, false, "iii", playerid, time, 1);
}
@EDIT! resolvido. Obrigado.