[Ajuda] Veiculo Exclusivo
#6

Quote:
Originally Posted by BlueX
Посмотреть сообщение
Em vez de usar OnPlayerStateChange

tente usar OnPlayerEnterVehicle

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    switch(GetVehicleModel(vehicleid))
    {  
        case 447,520,432,425:
        {
            if(PlayerInfo[playerid][pAdmin] < 3)
            {
                SendClientMessage(playerid , 0x33CCFFAA, "[ERRO]: Vocк nгo pode utilizar este veiculo"),
                RemovePlayerFromVehicle(playerid);
                DestroyVehicle(Veiculo[playerid]);
            }
        }
    }
    return 1;
}
Espero que isto ajude
Ele ta tentando colocar uma excessгo em apenas 1 veнculo...

Entгo teria que ser:

"HydraExcessao = CreateVehicle..."

e depois colocar antes da loop do admin algo que se o player entrar no veнculo ele voltasse, tipo 'if(bang) return 1;' tipo assim...
Reply


Messages In This Thread
Veiculo Exclusivo - by GhosT_[] - 22.09.2012, 23:56
Re: Veiculo Exclusivo - by @Riichard - 23.09.2012, 00:02
Re: Veiculo Exclusivo - by GhosT_[] - 23.09.2012, 00:03
Re: Veiculo Exclusivo - by RebeloX - 23.09.2012, 00:20
Re: Veiculo Exclusivo - by FeelLikeASir_ - 23.09.2012, 00:41
Re: Veiculo Exclusivo - by CaioMiglioli - 23.09.2012, 00:58
Re: Veiculo Exclusivo - by RebeloX - 23.09.2012, 01:04
Re: Veiculo Exclusivo - by GhosT_[] - 23.09.2012, 14:09
Re: Veiculo Exclusivo - by Sky™ - 23.09.2012, 14:28
Re: Veiculo Exclusivo - by GhosT_[] - 23.09.2012, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)