04.08.2013, 16:38
pawn Код:
public RecuperouSe()
{
for(new p = 0; p < MAX_PLAYERS; p++)
{
if(Morreu[p])
{
TempoHospital[p]++;
new Float:vida;
GetPlayerHealth(p, vida);
ApplyAnimation(p, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
switch(TempoHospital[p])
{
case 1 .. 59:
{
SetPlayerHealth(p, vida+1);
}
case 60:
{
Morreu[p] = false;
SendClientMessage(p, COLOR_LIGHTGREEN, "");
SendClientMessage(p, COLOR_LIGHTGREEN, "[INFO] Vocк foi curado. Seja mais cuidadoso a partir de agora.");
ClearAnimations(p);
//SetPlayerPos(p, 1175.0963, -1318.3589, 9280.5693);
SetPlayerPos(p, 1177.0024,-1323.8218,14.0492);
SetCameraBehindPlayer(p);
SetPlayerFacingAngle(p, 177.8791);
SetPlayerInterior(p, 0);
TempoHospital[p] = 0;
}
}
}
}
return 1;
}