Leaderboard
Popular Content
Showing content with the highest reputation on 03/24/2020 in all areas
-
Username: Alexandru#1337 Creator: 77777 (tot eu) Tutorial/Ghid: mai jos [Protected content] La lideri, helperi, membrii anumitei factiuni etc. se face la fel. Succes.1 point
-
Am sa va las cateva videoclipuri de unde va puteti inspira despre cum sa faceti cativa banuti online, nu e nevoie sa prezint mai mult, sunt destul de explicate in urmatoarele videoclipuri. O sa mai urmeze cateva tutoriale scrise de mine, momentan nu am avut timp sa fac unul, dar am sa va las cateva videoclipuri din care m-am inspirat si eu, si posibil sa va ajute si pe voi. [Protected content]1 point
-
Frumos, ma bucur ca v-ati facut drum si pe aici.1 point
-
[REZOLVAT] Probleme Benzina
SeNaToRuL. reacted to LyN for a topic
task CheckGas[RunOutTime]() { new engine, lights, alarm, doors, bonnet, boot, objective; foreach(new i : Player) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { new vehicle = GetPlayerVehicleID(i), query[128]; new spe = Carspeed(GetPlayerVehicleID(i)); if(Gas[vehicle] >= 1) { if(vehEngine[vehicle] == 1 && !IsPlayerPaused(i)) { if(noFuelVehicles(vehicle) || IsABoat(vehicle) || ExamCar == vehicle || JobVehicle == vehicle) { Gas[vehicle]++; } if(!IsPlayerPaused(i)) Gas[vehicle]--; new carid = FindSpawnID(vehicle); if(CarInfo[carid][cID] != 0 && carid != 0) { if(spe > 5 && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicle && !IsPlayerPaused(i)) { CarInfo[carid][KM] += (spe * 0.27) / 100; mysql_format(SQL, query, sizeof query, "UPDATE `cars` SET `KM` = '%f' WHERE `ID` = '%d'", CarInfo[carid][KM], CarInfo[carid][cID]); mysql_tquery(SQL, query, "", ""); } } } } else if(!IsAFLYCar(vehicle)) { NoFuel = 1; GameTextForPlayer(i, "Fara benzina", 1500, 3); vehEngine[vehicle] = 0; GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); SetPVarInt(i, "Engine", 0); } } } return true; }1 point -
[REZOLVAT] Probleme Benzina
SeNaToRuL. reacted to LyN for a topic
task CheckGas[RunOutTime]() { new engine, lights, alarm, doors, bonnet, boot, objective; foreach(new i : Player) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { new vehicle = GetPlayerVehicleID(i), query[128]; new spe = Carspeed(GetPlayerVehicleID(i)); if(Gas[vehicle] >= 1 && !IsPlayerPaused(i)) { if(vehEngine[vehicle] == 1) { if(noFuelVehicles(vehicle) || IsABoat(vehicle) || ExamCar == vehicle || JobVehicle == vehicle) { Gas[vehicle]++; } if(!IsPlayerPaused(i)) Gas[vehicle]--; new carid = FindSpawnID(vehicle); if(CarInfo[carid][cID] != 0 && carid != 0) { if(spe > 5 && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicle && !IsPlayerPaused(i)) { CarInfo[carid][KM] += (spe * 0.27) / 100; mysql_format(SQL, query, sizeof query, "UPDATE `cars` SET `KM` = '%f' WHERE `ID` = '%d'", CarInfo[carid][KM], CarInfo[carid][cID]); mysql_tquery(SQL, query, "", ""); } } } } else if(!IsAFLYCar(vehicle)) { NoFuel = 1; GameTextForPlayer(i, "Fara benzina", 1500, 3); vehEngine[vehicle] = 0; GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); SetPVarInt(i, "Engine", 0); } } } return true; }1 point -
[REZOLVAT] Probleme Benzina
SeNaToRuL. reacted to LyN for a topic
task CheckGas[RunOutTime]() { new engine, lights, alarm, doors, bonnet, boot, objective; foreach(new i : Player) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { new vehicle = GetPlayerVehicleID(i), query[128]; new spe = Carspeed(GetPlayerVehicleID(i)); if(spe < 1) return true; if(Gas[vehicle] >= 1) { if(vehEngine[vehicle] == 1) { if(noFuelVehicles(vehicle) || IsABoat(vehicle) || ExamCar == vehicle || JobVehicle == vehicle) { Gas[vehicle]++; } if(!IsPlayerPaused(i)) Gas[vehicle]--; new carid = FindSpawnID(vehicle); if(CarInfo[carid][cID] != 0 && carid != 0) { if(spe > 5 && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicle && !IsPlayerPaused(i)) { CarInfo[carid][KM] += (spe * 0.27) / 100; mysql_format(SQL, query, sizeof query, "UPDATE `cars` SET `KM` = '%f' WHERE `ID` = '%d'", CarInfo[carid][KM], CarInfo[carid][cID]); mysql_tquery(SQL, query, "", ""); } } } } else if(!IsAFLYCar(vehicle)) { NoFuel = 1; GameTextForPlayer(i, "Fara benzina", 1500, 3); vehEngine[vehicle] = 0; GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); SetPVarInt(i, "Engine", 0); } } } return true; }1 point -
[REZOLVAT] Probleme Benzina
SeNaToRuL. reacted to LyN for a topic
function noFuelVehicles(vehicleid) { switch (GetVehicleModel(vehicleid)) { case 481, 509, 510, 460, 476, 511, 512, 513, 519, 520, 553, 577, 592, 593: return 1; } return 0; } task CheckGas[RunOutTime]() { new engine, lights, alarm, doors, bonnet, boot, objective; foreach(new i : Player) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { new vehicle = GetPlayerVehicleID(i), query[128]; if(Gas[vehicle] >= 1) { if(vehEngine[vehicle] == 1) { if(noFuelVehicles(vehicle) || IsABoat(vehicle) || ExamCar == vehicle || JobVehicle == vehicle) { Gas[vehicle]++; } if(!IsPlayerPaused(i)) Gas[vehicle]--; new carid = FindSpawnID(vehicle); if(CarInfo[carid][cID] != 0 && carid != 0) { new spe = Carspeed(GetPlayerVehicleID(i)); if(spe > 5 && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicle && !IsPlayerPaused(i)) { CarInfo[carid][KM] += (spe * 0.27) / 100; mysql_format(SQL, query, sizeof query, "UPDATE `cars` SET `KM` = '%f' WHERE `ID` = '%d'", CarInfo[carid][KM], CarInfo[carid][cID]); mysql_tquery(SQL, query, "", ""); } } } } else if(!IsAFLYCar(vehicle)) { NoFuel = 1; GameTextForPlayer(i, "Fara benzina", 1500, 3); vehEngine[vehicle] = 0; GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective); SetPVarInt(i, "Engine", 0); } } } return true; } Incearca asa1 point -
1 point
-
1 point
-
[REZOLVAT] Probleme Benzina
SeNaToRuL. reacted to LyN for a topic
nu pare sa fie aici problema, functia se numea checkgas sau ceva de genu'1 point -
1 point
-
1 point
-
1 point
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.