forward ReleaseFromHospital(playerid);
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
if(FirstSpawn[playerid] != 1)
{
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 50.0);
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
rand = random(sizeof(gMedicSpawns));
SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 5000, 3);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("ReleaseFromHospital", 8000, 0, "d", playerid);
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
return 1;
}
}
public ReleaseFromHospital(playerid)
{
SendClientMessage(playerid, COLOR_RED, "You have been released from Hospital.");
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 50.0);
new decidehosp = random(2);
switch(decidehosp)
{
case 0:
{
SetPlayerPos(playerid, 1177.4866,-1323.9749,14.0731);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
}
case 1:
{
SetPlayerPos(playerid, 2025.1497,-1402.8643,17.2089);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
}
}
return 1;
}
Originally Posted by Brian_Furios
A person does not in 40 pages the fix bug. this is a little help
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by Brian_Furios
yes but here i release the script
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by Don Correlli
http://forum.sa-mp.com/index.php?topic=122841.0
You can read in that topic that this bug is fixed in the current version. |
Originally Posted by » ραωпsтαг «
Fixed in 2.6
|