[AJUDA] hp
#1

Olб estive, vendo um script, em que adota um sistema no GameMode, qe logo apos a morte do Logador o mesmo vai para o Hospital, e fica alguns segundos. mais quando ele sai do Hospital, ele n respawna pra frente do Hospital, e sim continua na maca, do hospital, em consulta.

pawn Код:
new Float:gMedicSpawns[3][3] = {
{348.9868,165.0690,1014.6947},
{348.8042,162.5563,1014.6947},
{348.8767,159.9840,1014.6947}
};
pawn Код:
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, 25.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~Voce estб sendo Curado ...", 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;
                }
                else
                {
                    NeedMedicTime[playerid] = 40;
                }
                PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
                return 1;
            }
        }
Eu queria por pra quando ele sair de maka, spawnar na frente do Hospital.
Ajuda ja tentei de tudos amgigos.
Reply


Messages In This Thread
[AJUDA] hp - by KaioBourne - 16.02.2012, 23:08
Re: [AJUDA] hp - by paulor - 17.02.2012, 00:33
Re: [AJUDA] hp - by KaioBourne - 17.02.2012, 02:24
Re: [AJUDA] hp - by Hard` - 17.02.2012, 02:33
Re: [AJUDA] hp - by paulor - 17.02.2012, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)