[DUVIDA] Cargos ( Veiculos )
#2

Й sу um exemplo, fiz na pressa, adapte se quiser.

Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
   if(Cargo[playerid] <3)//Se o cargo for menor que 3...
   {
     if(vehicleid == 520)//... e ele entrar no Hydra...
     {
        SendClientMessage(playerid,COLOR_RED,"Vocк nгo pode entrar neste veнculo.");//Vai receber esta mensagem
        RemovePlayerFromVehicle(playerid,vehicleid);//E vai ser removido do Hydra
        return 1;
     }
   }
   else if(Cargo[playerid] >=3) return 1;//Mas se o cargo for maior ou igual a 3, nгo acontece nada.
}
E use o SEARCH, creio que existam vбrios tutoriais sobre veнculos de facзхes.
Reply


Messages In This Thread
[DUVIDA] Cargos ( Veiculos ) - by Ellis_Malta - 11.05.2010, 14:21
Re: [DUVIDA] Cargos ( Veiculos ) - by [BEP]AcerPilot - 11.05.2010, 14:29
Re: [DUVIDA] Cargos ( Veiculos ) - by Ellis_Malta - 11.05.2010, 14:44
Re: [DUVIDA] Cargos ( Veiculos ) - by [BEP]AcerPilot - 11.05.2010, 14:55
Re: [DUVIDA] Cargos ( Veiculos ) - by Ellis_Malta - 11.05.2010, 14:56
Re: [DUVIDA] Cargos ( Veiculos ) - by [BEP]AcerPilot - 11.05.2010, 15:00
Re: [DUVIDA] Cargos ( Veiculos ) - by Ellis_Malta - 11.05.2010, 15:03
Re: [DUVIDA] Cargos ( Veiculos ) - by [BEP]AcerPilot - 11.05.2010, 15:05
Re: [DUVIDA] Cargos ( Veiculos ) - by ipsBruno - 11.05.2010, 15:07
Re: [DUVIDA] Cargos ( Veiculos ) - by [BEP]AcerPilot - 11.05.2010, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)