[Ajuda] Saida de Interior
#2

Crie uma stock Pausar(playerid):

pawn Код:
new Carregado[MAX_PLAYERS];
forward CarregarInterior();
pawn Код:
stock Pausar(playerid)
{
    Carregado[playerid] = 1;
    TogglePlayerControllable(playerid, false);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid,x,y,z+2); // Aumentar o z para que o player nгo "caia"
    SetTimer("CarregarInterior",4000,false);
}
pawn Код:
public CarregarInterior()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Carregado[i] == 1)
            {
                TogglePlayerControllable(i, true);
                Carregado[i] = 0;
            }
        }
    }
}
E insira no momento da entrada do seu player no interior, ou use 'IsPlayerInRangeOfPoint':
pawn Код:
Pausar(playerid);
pawn Код:
GameTextForPlayer(playerid,"Objetos sendo carregados.",1500,4);
Reply


Messages In This Thread
Saida de Interior - by ipsLuan - 26.06.2014, 17:03
Re: Saida de Interior - by rm0203 - 26.06.2014, 17:24
Re: Saida de Interior - by UPsamp - 26.06.2014, 17:24
Re: Saida de Interior - by Alwe - 26.06.2014, 17:25
Re: Saida de Interior - by rm0203 - 26.06.2014, 17:26
Re: Saida de Interior - by ipsLuan - 26.06.2014, 17:53
Re: Saida de Interior - by rm0203 - 26.06.2014, 18:10
Re: Saida de Interior - by ipsLuan - 26.06.2014, 18:11
Re: Saida de Interior - by rm0203 - 26.06.2014, 18:16
Re: Saida de Interior - by MultiKill - 26.06.2014, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)