[Ajuda] Retirar Player do Veнculo
#2

pawn Код:
new Grove[4]; // Nъmero dos carros+1

forward Grovecar(playerid);

// na public ongamemodeinit
Grove[0] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 0
Grove[1] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 1
Grove[2] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 2
Grove[3] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 3

// na OnPlayerStateChange

    if(newstate == PLAYER_STATE_DRIVER) Grovecar(playerid);

// e depois
public GroveCar(playerid)
{
    for(new c = 0; c <= 4; c++)
    {
        if(IsPlayerInVehicle(playerid, Grove[c]) && pDados[playerid][Grove] < 1)
        {
            SendClientMessage(playerid, COR_eRRO, "Vocк nгo й um Groove Los Santos");
            RemovePlayerFromVehicle(playerid);
            return 1;
        }
    }
    return 1;
}
Usa esse exemplo ai , ve se funfa
Reply


Messages In This Thread
Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 16:15
Re: Retirar Player do Veнculo - by FleXx_01 - 05.12.2012, 16:21
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 16:31
Re: Retirar Player do Veнculo - by Maklister - 05.12.2012, 16:49
Re: Retirar Player do Veнculo - by FleXx_01 - 05.12.2012, 16:59
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 17:02
Re: Retirar Player do Veнculo - by Maklister - 05.12.2012, 17:26
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 17:40
Re: Retirar Player do Veнculo - by lukas_loky - 05.12.2012, 17:48

Forum Jump:


Users browsing this thread: 3 Guest(s)