Jump to content

SeNaToRuL.

Users
  • Content Count

    77
  • Donations

    0.00 EUR 
  • Joined

  • Last visited

About SeNaToRuL.

  • Rank
    Legend

Recent Profile Visitors

187 profile views
  1. Salut frate ma mai poti ajuta cu ceva? Cand un player da /unrent la o masina inchiriata nu se baga la loc in stock... YCMD:unrent(playerid, params[], help) { if(IsRentCar[playerid] != 0) { DestroyVehicle(VehicleRent[playerid]), VehicleRent[playerid] = 0, IsRentCar[playerid] = 0, GameTextForPlayer(playerid, "~w~Nu mai ai un vehicul inchiriat.", 5000, 3); } else return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai ai un vehicul inchiriat!"); return true; } nustiu unde trebuie sa pun RentStock[playerid] ++
  2. Acuma cand ma pun afk si intru iar imi da ca sunt fara benzina si nu mai merge
  3. Nu mai scade dar gen am observat ca daca ma pun afk, si dupa ma intorc pe server creste.. gen am stat putin afk o ajuns la 106
  4. 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(IsAPlane(vehicle) || IsABoat(vehicle) || IsABike(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; }
  5. Salut, utilizez gamemode burned si cand ma urc pe o bicicleta ii scade motorina.. ma puteti ajuta va rog? Script: function Checkvehinfo(i) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer == 0) { new str2[10], km[60], fuel[50], engine,lights,alarm,doors,bonnet,boot,objective, vehicle = GetPlayerVehicleID(i), spe = Carspeed(GetPlayerVehicleID(i)), carid = FindSpawnID(vehicle); GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective); if(!PlayerInfo[pHudGen]) return true; gString[0] = EOS; format(str2, sizeof(str2), "%s%d", spe < 100 ? ("~g~") : spe >= 150 ? ("~r~") : ("~y~"), spe); PlayerTextDrawSetString(i, SpeedometerPTD[0], str2); if(carid != 0) format(km, sizeof(km), "~n~odomter: %.2f", CarInfo[carid][KM]); if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(fuel, sizeof(fuel), "~n~fuel: %s%d~w~~h~ (c: %dl)", Gas[vehicle] > 60 ? ("~g~") : Gas[vehicle] <= 30 ? ("~r~") : ("~y~"), Gas[vehicle], GetVehicleConsum(spe)); format(gString, 120, "doors: %s~w~~h~%s%s", doors != 1 ? ("~g~unlocked") : ("~r~locked"), fuel, km); if(InExamen) format(gString, 150, "%s~n~Checkpoints: ~r~%d/17", gString, CP-100); PlayerTextDrawSetString(i, SpeedometerPTD[2], gString); } return true; }
×
×
  • Create New...