04.03.2012, 23:23
Quando o Player Morre ele Ate e Internado Mas Ele Nao Sai Do Hospital, ele saiu mas volta logo!
pawn Код:
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
if(sincronizando[playerid] == 1)
{
return 1;
}
new string[256];
new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
format(string, sizeof(string), "Hospital: Vocк foi recuperado.", cut);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
MedicBill[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 5);
rand = random(sizeof(gMedicSpawns));
SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~Voce Esta Sendo Reanimado~r~Aguarde~y~...", 35000, 3);
MedicTime[playerid] = 1;
if(PlayerInfo[playerid][pVIP] > 0)
{
NeedMedicTime[playerid] = 30;
}
else
{
NeedMedicTime[playerid] = 60;
}
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
return 1;
}