[Ajuda] Veiculo nao liga
#4

Use isto no seu GM para ligar o motor

Код:
stock SetVehicleEngineState(vid, setstate)
{
     new engine,lights,alarm,doors,bonnet,boot,objective;
     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
     if(setstate) SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
     else SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
Код:
CMD:ligarmotor(playerid, params[])
{
	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em umveнculo.");
	SetVehicleEngineState(GetPlayerVehicleID(playerid), 1);
	SendClientMessage(playerid, -1, "* Vocк ligou o motor do veнculo.");
	return 1;
}
Reply


Messages In This Thread
Veiculo nao liga - by Andelux - 29.06.2015, 01:21
Re: Veiculo nao liga - by IgorLuiz - 29.06.2015, 01:42
Re: Veiculo nao liga - by Ededuardo - 29.06.2015, 01:53
Re: Veiculo nao liga - by iTakelot - 29.06.2015, 22:17
Re: Veiculo nao liga - by Pablo098 - 29.06.2015, 22:26
Re: Veiculo nao liga - by Cleyson - 29.06.2015, 22:53
Re: Veiculo nao liga - by iTakelot - 29.06.2015, 22:56
Re: Veiculo nao liga - by Cleyson - 29.06.2015, 23:41
Re: Veiculo nao liga - by iTakelot - 29.06.2015, 23:45
Re: Veiculo nao liga - by Cleyson - 29.06.2015, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)