28.01.2010, 19:18
Hello, when you die, and spawn at hospital, it keep reapeating itself, so if someone had like a small filterscript or just could correct this, i would be happy:
Код:
new string[256]; new cut = deathcost; SafeGivePlayerMoney(playerid, -cut); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; SetPlayerToTeamColor(playerid); SetPlayerPos(playerid,1612.3240,-2330.1670,14.5469); SetPlayerFacingAngle(playerid, 0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerHealth(playerid, 50.0); PlayerInfo[playerid][pDeaths] += 1; SetPlayerInterior(playerid, 3); PlayerInfo[playerid][pInt] = 3; SetPlayerPos(playerid,348.9868,165.0690,1014.6947); // 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 ...", 30000, 3); JustDied[playerid] = 1; MedicTime[playerid] = 1; ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); if(PlayerInfo[playerid][pDonateRank] > 0) { NeedMedicTime[playerid] = 30; } // PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);*/ return 1; } } if(JustDied[playerid] == 1) { if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0) { SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pVirWorld] = 0; } SetPlayerPos(playerid, 1172.1720,-1332.8326,1006.4028); SetPlayerFacingAngle(playerid, 270.0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1;