11.11.2012, 12:36
Nгo era pra ter return ?
Tente agora:
Tente agora:
Код:
public EngineTimer(playerid) { new mot, lu, alar, por, cap, porma, ob; new carro = GetPlayerVehicleID(playerid); new vid = GetPlayerVehicleID(playerid); if(Gas[vid] == 0) return SendClientMessage(playerid,COLOR_GRAD2," Veiculo sem Combustivel"); if(LigadoDesligado2[vid] == 1) { motor[playerid] = 1; } if(LigadoDesligado2[vid] == 0) { motor[playerid] = 0; } if(carro != INVALID_VEHICLE_ID) { if(motor[playerid] == 0) { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob); motor[playerid] = 1; LigadoDesligado2[carro] = 1; SendClientMessage(playerid, COLOR_WHITE, "Motor do veiculo ligado"); } else { GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob); SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob); motor[playerid] = 0; LigadoDesligado2[carro] = 0; SendClientMessage(playerid, COLOR_WHITE, "Motor do veiculo desligado"); } } return 1; }