19.02.2010, 21:24
THIS IS THE SCRIPT FOR SBUGED HOSPITAL BUG:
-I ADD A NEW LITTLE SCRIPT
-2 random spawn at hospitals of Los Santos
Screens:
[img width=960 height=768]http://i47.tinypic.com/11v1vn4.jpg[/img]
[img width=960 height=768]http://i49.tinypic.com/s63u6s.jpg[/img]
[img width=960 height=768]http://i45.tinypic.com/f3tmq0.jpg[/img]
[img width=960 height=768]http://i45.tinypic.com/11hs7b8.jpg[/img]
[img width=960 height=768]http://i48.tinypic.com/2w36cs1.jpg[/img]
[img width=960 height=768]http://i49.tinypic.com/ziuihx.jpg[/img]
[img width=960 height=768]http://i46.tinypic.com/t5lttz.jpg[/img]
All Script by Brian
-I ADD A NEW LITTLE SCRIPT
-2 random spawn at hospitals of Los Santos
Screens:
[img width=960 height=768]http://i47.tinypic.com/11v1vn4.jpg[/img]
[img width=960 height=768]http://i49.tinypic.com/s63u6s.jpg[/img]
[img width=960 height=768]http://i45.tinypic.com/f3tmq0.jpg[/img]
[img width=960 height=768]http://i45.tinypic.com/11hs7b8.jpg[/img]
[img width=960 height=768]http://i48.tinypic.com/2w36cs1.jpg[/img]
[img width=960 height=768]http://i49.tinypic.com/ziuihx.jpg[/img]
[img width=960 height=768]http://i46.tinypic.com/t5lttz.jpg[/img]
pawn Код:
forward ReleaseFromHospital(playerid);
pawn Код:
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;
}
}
pawn Код:
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;
}
All Script by Brian