30.12.2012, 00:01
alguem sabe um script para que o carro so ligue quando entra nele ?
sem ter q colocar comando /motor ou apertar algum tecla ?
sem ter q colocar comando /motor ou apertar algum tecla ?
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
GetVehicleParamsEx(vehicleid,(OFF),lights,alarm,do ors,bonnet,boot,objective); |
ManualVehicleEngineAndLights();