FIXED: LARP | Hospital bug.
#9

WAAAAAAAAT?! This is wierd that it doesnt work for me! :S here is where i putted it:
Код:
	  MedicTime[i] ++;
			  if(MedicTime[i] >= NeedMedicTime[i])
			  {
					new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
					//SafeGivePlayerMoney(i, -cut);
					format(string, sizeof(string), "Doctor: Your Medical Bill comes to $%d, Have a nice day.", cut);
					SendClientMessage(i, TEAM_CYAN_COLOR, string);
					TogglePlayerControllable(i, 1);
			    MedicBill[i] = 0;
			    MedicTime[i] = 0;
			    NeedMedicTime[i] = 0;
			    PlayerInfo[i][pDeaths] += 1;
			    PlayerFixRadio(i);
			    ClearAnimations(i);
			    SpawnPlayer(i);
          SetPlayerSpawn(i);
          SetCameraBehindPlayer(i);

			  }
			}
and here is the hospital "Death":
Код:
	if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
		  if(FirstSpawn[playerid] != 1)
		  {
		  	/*new string[256];
		  	new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
				SafeGivePlayerMoney(playerid, -cut);
				format(string, sizeof(string), "DOC: Your Medical Bill comes to $%d, Have a nice day.", cut);
				SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
				MedicBill[playerid] = 0;
				MedicTime[playerid] = 0;
				NeedMedicTime[playerid] = 0;*/
			  PlayerInfo[playerid][pDeaths] += 1;
				SetPlayerHealth(playerid, 50.0);
		  	SetPlayerInterior(playerid, 0);
		  	PlayerInfo[playerid][pInt] = 0;
	    	TogglePlayerControllable(playerid, 0);
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "You have been critically wounded and have been rushed to the hospital");
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "You must spend some time resting here to heal your wounds");
	    	JustDied[playerid] = 1;
	    	MedicTime[playerid] = 1;
	    	SetPlayerPos(playerid, -2685.5029,638.3383,14.4531);
	    	if(PlayerInfo[playerid][pDonateRank] > 0)
	    	{
	      	NeedMedicTime[playerid] = 10;
	    	}
	    	else
	    	{
	    		NeedMedicTime[playerid] = 10;
				}
		  	return 1;
			}
		}
		if(JustDied[playerid] == 1)
		{
		  if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
		  {
		    SetPlayerVirtualWorld(playerid, 0);
		    PlayerInfo[playerid][pVirWorld] = 0;
		  }
		  SetPlayerPos(playerid,-2685.5029,638.3383,14.4531);
		  SetPlayerFacingAngle(playerid, 270.0);
		  SetPlayerInterior(playerid,0);
		  PlayerInfo[playerid][pInt] = 0;
		  return 1;
		}
Reply


Messages In This Thread
FIXED: LARP | Hospital bug. - by _Ben_[Fux-c.co.il RP] - 15.10.2009, 15:24
Re: FIXED: LARP | Hospital bug. - by Sergei - 15.10.2009, 15:37
Re: FIXED: LARP | Hospital bug. - by _Ben_[Fux-c.co.il RP] - 15.10.2009, 15:39
Re: FIXED: LARP | Hospital bug. - by RoamPT - 16.10.2009, 13:43
Re: FIXED: LARP | Hospital bug. - by Sergei - 16.10.2009, 16:45
Re: FIXED: LARP | Hospital bug. - by Julian2574 - 18.10.2009, 16:20
Re: FIXED: LARP | Hospital bug. - by Cutler-Beckett - 18.10.2009, 17:12
Re: FIXED: LARP | Hospital bug. - by RoamPT - 18.10.2009, 17:16
Re: FIXED: LARP | Hospital bug. - by Julian2574 - 18.10.2009, 17:17
Re: FIXED: LARP | Hospital bug. - by Mechscape - 20.10.2009, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)