14.06.2013, 16:44
Quote:
Jб mudei a variбvel mas nгo adiantou , lembrando que coloquei esse cуdigo para quando entrar no veнculo ele permanecer desligado atй que o player digite /motor .
|
pawn Код:
ManualVehicleEngineAndLights();// GameModeInit
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
new mot, lu, alar, por, cap, porma, ob;
GetVehicleParamsEx(vehicleid, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob);
motor[vehicleid] = 0;
}
return 1;
}