FIXED: LARP | Hospital bug.
#10

Quote:
Originally Posted by _Ben_[Fux-c.co.il RP
]
Search for this:

pawn Код:
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);

Add under it:

pawn Код:
SetPlayerSpawn(i);
                    SetCameraBehindPlayer(i);
The full code:

pawn Код:
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);
                SetPlayerSpawn(i);
                    SetCameraBehindPlayer(i);
Tried, works fine .

Enjoy


Please full code,
"Why? I did deleted this medic of code, because i hated that respawning bug. Now i want put back full code of fixed medic."
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)