[ajuda] bug no hospital
#1

olhar como ta o meu hosp pode me ajuda
http://imageshack.us/photo/my-images/853/samp001ge.png/
Reply
#2

Й pq a posiзao ou interior estao errados so modificar la
Reply
#3

SetPlayerInterior


@_@
Reply
#4

Quote:
Originally Posted by jefe10
Посмотреть сообщение
A posiзao ou interior estao errados
Sim '
Coringa, manda o Cmd de entrar nй fiote '-'

-
This forum requires that you wait 120 seconds between posts. Please try again in 38 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 18 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 2 seconds.
:@
Reply
#5

pawn Код:
forward Ambu(playerid);
forward HospitalCountdown(playerid);
forward CarregarHospital(playerid);
forward CarregarHospital2(playerid);


new Hospital[MAX_PLAYERS];
new Irhosp;
new Irhosp2;



if(ApertarFnaMorte[playerid] == 1)
        {
            HospitalCountdown(playerid);
            PlayerIsDead[playerid] = 0;
        }


        if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && Player[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && Player[playerid][pVIP] != 2)
        {
           Hospital[playerid] = 0;
           Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
           return 1;
        }

public Ambu(playerid)
{
        CarregarHospital(playerid);
        ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
        OnPlayerCommandText(playerid,"/morridiabo");
        SetPlayerPos(playerid, 2611.8774,-1299.9427,1132.4976);
        SetPlayerInterior(playerid, 3);
        SetPlayerFacingAngle(playerid, 180.0);
        TogglePlayerControllable(playerid, 0);
        SetPlayerCameraPos(playerid,2612.5737,-1294.6964,1131.5117);
        SetPlayerCameraLookAt(playerid,2611.9294,-1296.7310,1131.5117);
        ResetPlayerWeapons(playerid);
        GameTextForPlayer(playerid, "~r~Curando...", 30000, 5);
        Irhosp2 = SetTimerEx("HospitalCountdown", 30000, 0, "i", playerid);
        return 0;
}


ApertarFnaMorte[playerid] = 0;
        Hospital[playerid] = 0;
        if(Player[playerid][pVIP] == 1)
        {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 30);
            Player[playerid][pDeaths] += 1;
            ClearAnimations(playerid);
            TogglePlayerControllable( playerid, 1);
            SetPlayerInterior(playerid, 0);
            SafeGivePlayerWeapon(playerid, 22, 100);
            SafeGivePlayerWeapon(playerid, 29, 250);
            SafeGivePlayerWeapon(playerid, 31, 250);
            new rand;
            rand = random(sizeof(HospSpawns));
            SetPlayerPos(playerid, HospSpawns[rand][0], HospSpawns[rand][1], HospSpawns[rand][2]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "[Enfermeira]Vocк estб melhor, jб pode ir para casa!");
            SetCameraBehindPlayer(playerid);
            ResetPlayerWeapons(playerid);
            return 1;
        }

    if(IsPlayerInRefinaria(playerid))
        Hospital[playerid] = 2;
    else
        Hospital[playerid] = 1;


#pragma unused encode_tires
public CarregarHospital(playerid)
{
ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
OnPlayerCommandText(playerid,"/morridiabo");
TogglePlayerControllable(playerid, false);
SetTimerEx("Carregar2", 1800, 0,"e",playerid); //
return 1;
}//carrega 1
public CarregarHospital2(playerid)
{
ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
OnPlayerCommandText(playerid,"/morridiabo");
TogglePlayerControllable(playerid, false);
return 1;
}
Reply
#6

Falta um SetPlayerPos,Eu acho.
procura ai no CODE onde estб precisando.
Creio eu.
pawn Код:
forward Ambu(playerid);
forward HospitalCountdown(playerid);
forward CarregarHospital(playerid);
forward CarregarHospital2(playerid);


new Hospital[MAX_PLAYERS];
new Irhosp;
new Irhosp2;



if(ApertarFnaMorte[playerid] == 1)
        {
            HospitalCountdown(playerid);
            PlayerIsDead[playerid] = 0;
        }


        if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && Player[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && Player[playerid][pVIP] != 2)
        {
           Hospital[playerid] = 0;
           Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
           return 1;
        }

public Ambu(playerid)
{
        CarregarHospital(playerid);
        ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
        OnPlayerCommandText(playerid,"/morridiabo");
        SetPlayerPos(playerid, 2611.8774,-1299.9427,1132.4976);
        SetPlayerInterior(playerid, 3);
        SetPlayerFacingAngle(playerid, 180.0);
        TogglePlayerControllable(playerid, 0);
        SetPlayerCameraPos(playerid,2612.5737,-1294.6964,1131.5117);
        SetPlayerCameraLookAt(playerid,2611.9294,-1296.7310,1131.5117);
        ResetPlayerWeapons(playerid);
        GameTextForPlayer(playerid, "~r~Curando...", 30000, 5);
        Irhosp2 = SetTimerEx("HospitalCountdown", 30000, 0, "i", playerid);
        return 0;
}


ApertarFnaMorte[playerid] = 0;
        Hospital[playerid] = 0;
        if(Player[playerid][pVIP] == 1)
        {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 30);
            Player[playerid][pDeaths] += 1;
            ClearAnimations(playerid);
            TogglePlayerControllable( playerid, 1);
            SetPlayerInterior(playerid, 0);
            // Cria Aqui uma SetPlayerPos,para fora do Hospital.
            SafeGivePlayerWeapon(playerid, 22, 100);
            SafeGivePlayerWeapon(playerid, 29, 250);
            SafeGivePlayerWeapon(playerid, 31, 250);
            new rand;
            rand = random(sizeof(HospSpawns));
            SetPlayerPos(playerid, HospSpawns[rand][0], HospSpawns[rand][1], HospSpawns[rand][2]);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "[Enfermeira]Vocк estб melhor, jб pode ir para casa!");
            SetCameraBehindPlayer(playerid);
            ResetPlayerWeapons(playerid);
            return 1;
        }

    if(IsPlayerInRefinaria(playerid))
        Hospital[playerid] = 2;
    else
        Hospital[playerid] = 1;


#pragma unused encode_tires
public CarregarHospital(playerid)
{
ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
OnPlayerCommandText(playerid,"/morridiabo");
TogglePlayerControllable(playerid, false);
SetTimerEx("Carregar2", 1800, 0,"e",playerid); //
return 1;
}//carrega 1
public CarregarHospital2(playerid)
{
ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
OnPlayerCommandText(playerid,"/morridiabo");
TogglePlayerControllable(playerid, false);
return 1;
}
Reply
#7

eu colocei o coamndo todo ai que ta no gm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)