[Ajuda] GetVehicleTrailer
#4

Para verificar se o trailer estб na carreta use a funзгo: IsTrailerAttachedToVehicle

Aqui eu farei se a carreta nгo estiver engatada em um trailer de Petroleiro mandar uma mensagem de erro:

PHP код:
new VeiculoID GetPlayerVehicleID(playerid);
if(
IsTrailerAttachedToVehicle(VeiculoID))
{
    if(
GetVehicleModel(GetVehicleTrailer(VeiculoID)) != 584) return SendClientMessage(playeridVermelho"| ERRO | Vocк nгo esta com o tanque de Petroleo.");

Reply


Messages In This Thread
GetVehicleTrailer - by Mitic0 - 31.07.2018, 01:41
Re: GetVehicleTrailer - by willttoonn - 31.07.2018, 01:53
Re: GetVehicleTrailer - by Mitic0 - 31.07.2018, 02:00
Re: GetVehicleTrailer - by SIZET - 31.07.2018, 02:08
Re: GetVehicleTrailer - by Cauezin - 31.07.2018, 02:09
Re: GetVehicleTrailer - by Mitic0 - 31.07.2018, 02:21
Re: GetVehicleTrailer - by Mitic0 - 31.07.2018, 02:23
Re: GetVehicleTrailer - by willttoonn - 31.07.2018, 02:27
Re: GetVehicleTrailer - by Mitic0 - 31.07.2018, 02:32
Re: GetVehicleTrailer - by willttoonn - 31.07.2018, 02:35

Forum Jump:


Users browsing this thread: 3 Guest(s)