Ziomek_), Napisz w dziale LUA i wyt?umacz bardziej o co chodzi, bo nie rozumiem co ma si? dzia? po wpisaniu tej komendy. Jak wklejasz kod to zastosuj znaczniki lua czyli [lua]kod[./lua] (bez kropki)
Chcia?bym prosi? o przerobienie skryptu, je?li to mo?liwe. Mam na my?li to, ?eby ekran pojawia? si? tylko podczas ?adowania plik?w z pocz?tku "WCHODZ? DO GRY...", tj do ekranu logowania. A potem, ?eby si? ju? si? nie pojawia? lub pojawia?, ale bez ca?ego t?a i loga (aby w razie czego nie przeszkadza? graczom podczas gry wgrywam co? podczas ich obecno?ci). Sam napis POBIERANIE ZASOB?W. Nie wiem jak inaczej wyja?ni?.
Przerobi mi kto? to aby po oddaniu do przecho nie usuwa?o si? mk?
function handling(gracz,cmd)
pojazd = getPedOccupiedVehicle(gracz)
if pojazd then
local slock = 50.5 -- (Promien)
local trac = 1.0 -- (Przyczepno??)
local id = getElementData(pojazd, "vehicle:id")
exports["ogrpg-db"]:dbSet("UPDATE ogrpg_vehicles SET mk1=1 WHERE id=?", id)
setVehicleHandling(pojazd, "tractionMultiplier", trac)
setVehicleHandling(pojazd, "steeringLock", slock)
end
end
addCommandHandler("dodajmk1", handling)
siema, mam grafike pod hud i za bardzo nie wiem jak poustawiac te liczniki, mam kod ale tylko na pieniadze.. (jest tam tez jakies zycie itp ale to nie wazne). moglby mi ktos ustawic to i dopisac godzine i nick? z gory dziekii! dla was to chwilka dla mnie duuzo roboty hah
==KOD==
--Dane
local sW, sH = guiGetScreenSize()
local font = dxCreateFont ("files/czcionka.ttf", 30)
setElementData(localPlayer, "hud", true)
--HUD
addEventHandler("onClientRender", root, function()
setPlayerHudComponentVisible("ammo", false)
setPlayerHudComponentVisible("area_name", false)
setPlayerHudComponentVisible("armour", false)
setPlayerHudComponentVisible("breath", false)
setPlayerHudComponentVisible("clock", false)
setPlayerHudComponentVisible("health", false)
setPlayerHudComponentVisible("money", false)
setPlayerHudComponentVisible("vehicle_name", false)
setPlayerHudComponentVisible("weapon", false)
setPlayerHudComponentVisible("radio", false)
setPlayerHudComponentVisible("wanted", false)
if not getElementData(localPlayer, "hud") then return end
local health = getElementHealth(localPlayer)
health = math.floor(health)
local rp = getElementData(localPlayer, "rp") or 0 -- Tu zmie? elementdate rp na w?asn?
local money = getPlayerMoney()
dxDrawImage(sW * 0, sH * 0, sW * 1, sH * 1, "files/hud.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText(health.."%", sW * 0.300, sH * 0, sW * 1, sH * 0.040, tocolor(255, 255, 255, 255), 1.0, font, "left", "center", false, false, false, false, false)
dxDrawText(rp, sW * 0.382, sH * 0, sW * 1, sH * 0.040, tocolor(255, 255, 255, 255), 1.0, font, "left", "center", false, false, false, false, false)
dxDrawText(money, sW * 0.555, sH * 0, sW * 0, sH * 0.040, tocolor(255, 255, 255, 255), 1.0, font, "left", "center", false, false, false, false, false)
end)
--On/off HUD(F4)
bindKey("F4", "down", function()
if getElementData(localPlayer, "hud") then
setElementData(localPlayer, "hud", false)
setPlayerHudComponentVisible("radar", false)
showChat(false)
else
setElementData(localPlayer, "hud", true)
setPlayerHudComponentVisible("radar", true)
showChat(true)
end
end)
Witam. Prosi?bym o przerobienie poni?szego skryptu tak, aby:
-1 osoba mog?a zrespawni? tylko 1 pojazd klikaj?c Rozpocznij
-po wyj?ciu z pojazdu znika? by po okre?lonym czasie
-po doje?dzie na miejsce wy?wietla? by si? komunikat na czacie z ilo?ci? zarobionych pieni?dzy.
-?eby mo?na by?o zmieni? zarobek.
Kod:
local pickups = {
[1]={ 1807.1888427734, -1908.5200195313, 13.573113441467 }
}
function teamSet ( )
local team = getTeamFromName ( "Kierowca Autobusu" )
if team then
setPlayerTeam ( source, team )
setPlayerNametagColor ( source, 0, 255, 0 )
setElementModel(source, 57)
createVehicle(437, 1778.1171875, -1903.2772216797, 13.387936592102)
outputChatBox("Zosta?e? zatrudniony jako kierowca Autobusu! Odbierz pasa?er?w z dworca i zawie? ich do miejsca docelowego, ktore jest oznaczone r??owym blipem C.", thePlayer)
else
local teamw = getTeamFromName ( "Kierowca Autobusu" )
if teamw then
cancelEvent()
outputChatBox("Ju? jeste? zatrudniony.", source)
end
end
end
addEvent ( "sTeame", true)
addEventHandler ( "sTeame", root, teamSet )
function enterVehicle ( thePlayer, seat, jacked ) -- when a player enters a vehicle
if getElementType ( thePlayer ) == "player" then
if ( taxiVehs[getElementModel ( source )] ) and ( not taxiTeams[getPlayerTeam( thePlayer )] ) then -- if the vehicle is one of 4 police cars, and the skin is not a police skin
removePedFromVehicle( thePlayer )-- force the player out of the vehicle
outputChatBox("Tylko osoby zatrudnione mog? prowadzi? ten pojazd!", thePlayer)
end
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle )
function inVEH ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
if ( getElementModel ( source ) == 437 ) then
startJob ( thePlayer )
end
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), inVEH )
function warpit ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
local vehiclee = getPedOccupiedVehicle ( thePlayer )
if ( getElementModel ( vehiclee ) == 437 ) then
setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 )
destroyJob ( thePlayer )
local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] )
markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 )
mposii = { getElementPosition( markers [ thePlayer ] ) }
blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 12 )
addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup )
end
end
end
function pickmeup ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
destroyJob ( thePlayer )
local mx, my, mz = unpack ( mposi )
local mmx, mmy, mmz = unpack ( mposii )
local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy )
finalmoney = math.floor ( money )
if finalmoney then
setTimer( givePlayerMoney, 3000, 1, thePlayer, finalmoney )
setTimer( outputChatBox, 3000, 1, thePlayer, "Zarobi?e? ".. money .."PLN.", 255, 255, 255)
setTimer (
function ( )
if ( isElement ( peds [ thePlayer ] ) ) then
destroyElement ( peds [ thePlayer ] )
end
startJob ( thePlayer )
end
,3000, 1
)
end
end
end
function deleteOnExit ( thePlayer )
if ( isElement ( markers [ thePlayer ] ) ) then
destroyElement ( markers [ thePlayer ] )
end
if ( isElement ( blips [ thePlayer ] ) ) then
destroyElement ( blips [ thePlayer ] )
end
if ( isElement ( peds [ thePlayer ] ) ) then
destroyElement ( peds [ thePlayer ] )
end
end
addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit )
function destroyJob ( thePlayer )
if ( isElement ( markers [ thePlayer ] ) ) then
destroyElement ( markers [ thePlayer ] )
end
if ( isElement ( blips [ thePlayer ] ) ) then
destroyElement( blips [ thePlayer ] )
end
end
Szukam osoby ze znajomo?ci? j?zyka "LUA" do ma?ej pomocy przy pracy dorywczej.
Jeste? ch?tny, nudzisz si?, pisz pm z kontaktem do siebie z g?ry dzi?ki za ch?ci.
Prosz? o pomoc poszukuje osoby ktura mi zrobi sprintera policyjnego.Oferuje pieni?dze za zrobienie skryptu .Ale po wcze?niejszym ustaleniu .Adres e-mail : [email protected]
Witam. Szukam osoby kt?ra jest w stanie przerobi? mi model burrito na burrito z belk? i napisami dooko?a ca?ego samochodu.
Mniej wi?cej chodzi mi o burrito na kszta?t radiowozu SOK :
https://imgur.com/a/6VcmLaK
Jestem w stanie zap?aci? jak?? drobn? sum? za stworzenie takiego modelu.
W sprawie tej prosz? pisa? do mnie na email : [email protected]
Z g?ry dzi?kuj? i mam nadziej? ?e znajdzie si? kto? kto mi pomo?e
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach