Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-06-20, 14:30


KucharSolo







Wiek: 35
Na forum: 3438 dni
Posty: 94
Nick w MP: Kuchar

Piwa: 2

Respekt: 31

Witam,m?cze sie z przerobieniem tego aby s?ysza? to kazdy gracz a nie tylko ja.Jak to zrobi??

function bindHoronkeykeyState ) 
    --if not getElementData(localPlayer"ekipa"then return end
    if isPedInVehiclelocalPlayer then 
        if ( keyState == 'down' then 
            sound playSound3D'Audio/sapd_horn.ogg'getElementPositionlocalPlayer ) ) 
            setSoundVolume(sound100.0)
        setSoundSpeed sound1.0 )
            attachElementssoundgetPedOccupiedVehiclelocalPlayer ) ) 
        elseif ( keyState == 'up' then 
            if isElementsound then  
                stopSoundsound )  
            end 
        end 
    end 
end 
bindKey'lalt''down'bindHoron bindKey'lalt''up'bindHoron 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-20, 22:57


JaKubek :#

Młody Gniewny






Wiek: 26
Na forum: 3004 dni
Posty: 14
Nick w MP: Kenichi

Piwa: 10

Respekt: 50

Witajcie.
Chcia? bym poprosi? o przerobienie systemu dom?w pod ogrpg, z racji takiej i? zaczynam przygod? z lua nie znam si? na tym za bardzo.

Link do systemu dom?w: http://www.mta-resource.ru/load/resource/id/4392

Podpis


Kontakt:
GG:65945725
Discord: Brak
Facebook: Brak
TeamSpeak3: Brak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-21, 18:47


Ziomek_)







Wiek: 30
Na forum: 3119 dni
Posty: 19
Nick w MP: Ziomek_)



Respekt: 50

Pomoze ktos ze skryptem? wchodze w marker jest na say'u cmd wpisuje j? i nic dalej sie nie dzieje za naprawe daje piwko kod:


dmr createMarker(-2717.86,-317.65,7.843'cylinder'2149253,0100) 

function wyrabianie(gracz,cmd,nick,wiek)
    if isElementWithinMarker(graczdmrthen
        exports.notification:showBox(gracz"info","Gratulacje. Wyrobi?‚e pozwolenie na bro?„! Aby sprawdzi?‡ widniej?…ce na nim dane, wpisz komend?™ /dokumenty")
        setElementData (gracz"ma_dowod"true)
        setElementData (gracz"nick"nick)
        setElementData (gracz"wiek"wiek)
      else
        exports.notification:showBox(gracz"error","Nie jeste?› w markerze do wyrabiania dokumentow.")
   end
  end
addCommandHandler("z.dokument"wyrabianie)

function sprd(gracz,cmd)
    if getElementData (gracz"ma_dowod") == true then
        local wiek getElementData (gracz"wiek")
        local nick getElementData (gracz"nick")
        exports.notification:showBox(gracz"info2","| Nick: "..nick.." | Wiek: "..wiek.." | | Pozwolenie na bron: tak |")
      else
        exports.notification:showBox(gracz"error","Nie posiadasz pozwolenia na bro?„.")
   end
  end
addCommandHandler("dokumenty"sprd)


function sprdk(gracz,cmdgracz)
      local pozwolenie getElementData (gracz"ma_dowod")
    if pozwolenie == true then
        local wiek getElementData (gracz"wiek")
        local nick getElementData (gracz"nick") 
        exports.notification:showBox(gracz"info2","| Nick: "..nick.." | Wiek: "..wiek.." | | Pozwolenie na bron: Tak |")
      else
        exports.notification:showBox(gracz"error","Gracz nie posiada pozwolenia na bro?„.")
   end
  end
addCommandHandler("dokumentygracza"sprdk)


function dinfo(plrmd)
   outputChatBox("* Aby wyrobi?&#8225; pozwolenie na bron, wprowadĹş komend?&#8482;: /z.dokument <nick> <wiek>"plr)
end
addEventHandler("onMarkerHit"dmrdinfo)


Komentarz Atroth dodany 2018-06-22, 17:39Stosuj znaczniki [lua][/lua].
Ostatnio zmieniony przez Atroth 2018-06-22, 17:39, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-21, 18:51


PatryKK.

Emeryt LUA






Wiek: 26
Na forum: 3061 dni
Posty: 1060
Nick w MP: PatryKK.

Piwa: 2322

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

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)

Podpis
GG:75080675
- ✔
- ✔
- ✔
- ✔

Aktualny projekt: BRAK
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-25, 09:52


dawidmajka

tfuj stary






Wiek: 22
Na forum: 3613 dni
Posty: 137
Nick w MP: kutas

Piwa: 13

Respekt: 40

Witam pomo?e mi ktos przerobic bane z nazwy Nice Life na My World RPG ?yczymy Mi?ej Gry



http://hostuje.net/file.p...76d6c350cef95a2

http://imgur.com/a/R6Fwy

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-10, 10:31


Atroth







Wiek: 23
Na forum: 3677 dni
Posty: 1089
Nick w MP: Atroth

Piwa: 4808

Respekt: 540
Respekt: 540

dawidmajka, Prawdopodobnie w pliku .txd, kt?ry mo?esz otworzy? za pomoc? np. txd workshop jest tekstura, kt?r? nale?y tylko edytowa?.

Podpis

Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-10, 13:06


OchIAch







Wiek: 26
Na forum: 3114 dni
Posty: 144
Nick w MP: OchIAch

Piwa: 1311

Respekt: 105,3
Respekt: 105,3

Ostrzeżeń: 100%
"JaKubek :#" napisał/a:

Witajcie.
Chcia? bym poprosi? o przerobienie systemu dom?w pod ogrpg, z racji takiej i? zaczynam przygod? z lua nie znam si? na tym za bardzo.

Link do systemu dom?w: http://www.mta-resource.ru/load/resource/id/4392


Napisz co chcesz zeby ciprzzerobic

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-10, 22:00


Lego1605
[Usunięty]









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?.

Link do pliku: https://www67.zippyshare.com/v/8EGn2QeM/file.html

Dzi?kuj? za odpowiedzi. :)

 

 
Wysłany: 2018-07-17, 19:14


turbonet

Kradnę kody uważaj :)






Wiek: 28
Na forum: 2903 dni
Posty: 30
Nick w MP: AJgorEx

Piwa: 464

Respekt: 50

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 -- (Promienlocal 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)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-18, 15:55


Rainbow_Flow

Programista






Wiek: 26
Na forum: 3653 dni
Posty: 15
Nick w MP: raRe`



Respekt: 50

przerobi mi kto? kajdanki tak ?eby posta? szk?a przed nami i po wej?ciu do radiowozu siedzia?a z ty?u

link do kaj: https://www48.zippyshare.com/v/7whPmwvk/file.html

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-08-14, 02:55


savek







Wiek: 32
Na forum: 3188 dni
Posty: 4
Nick w MP: savek



Respekt: 50

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==
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)


==ss==


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-08-20, 01:22


serigorro







Wiek: 28
Na forum: 2847 dni
Posty: 41
Nick w MP: Igorro

Piwa: 3

Respekt: 40

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:
Kod:



local pickups = {
[1]={ 1807.1888427734, -1908.5200195313, 13.573113441467 }
}

local dropoffss = {
[1]={ -1986.228515625, 138.9375, 27.6875 },
[2]={ -1562.2481689453, -456.53582763672, 6.155294418335 },
[3]={ -1903.8890380859, -569.21282958984, 24.59375 },
[4]={ -1996.3585205078, -858.75366210938, 32.171875 },
[5]={ -2416.1286621094, -605.57037353516, 132.5625 },
[6]={ 1361.9425048828, -1287.3038330078, 13.3828125 },
[7]={ 1922.0734863281, 2115.7900390625, 10.812517166138 },
[8]={ 1922.169921875, 2314.6831054688, 10.8203125 },
[9]={ 1702.130859375, 1965.0847167969, 10.8203125 },
[10]={ 1561.2308349609, 2345.8486328125, 10.8203125 },
[11]={ 1073.1889648438, 2058.15625, 10.671875 },
[12]={ 1000.5665283203, 1796.8177490234, 10.8203125 },
[13]={ 1014.9302368164, 2243.6354980469, 10.8203125 },
[14]={ 2300.1105957031, 1767.927734375, 10.8203125 },
[15]={ 2841.5278320313, 2175.0102539063, 10.8203125 },
[16]={ 2776.6647949219, 1467.7954101563, 10.865291595459 },
[17]={ 1981.8454589844, 726.57000732422, 10.8203125 },
[18]={ -1923.6427001953, -1780.5861816406, 30.799110412598 },
[19]={ -2192.373046875, -2267.8352050781, 30.625 },
[20]={ -280.87145996094, 1079.1763916016, 19.7421875 },
[21]={ -209.43840026855, 1203.9577636719, 19.7421875 },
[22]={ -742.12036132813, 2737.4794921875, 46.642303466797 },
[23]={ -221.20133972168, 2625.5185546875, 62.80171585083 },
[24]={ -859.56842041016, 1557.8071289063, 24.091316223145 },
[25]={ -1478.8869628906, 2664.3981933594, 55.8359375 },
[26]={ -2403.0100097656, 2333.8413085938, 4.984375 },
[27]={ 216.64915466309, -147.1502532959, 1.578125 },
[28]={ 761.61352539063, 316.87115478516, 20.234375 },
[29]={ 1340.4713134766, 348.72805786133, 19.5546875 },
[30]={ 2273.9736328125, -85.534622192383, 26.506616592407 },
[31]={ 657.02429199219, -585.83416748047, 16.3359375 }
}



local pedCus = {
[1]={ 1 },
[2]={ 2 },
[3]={ 7 },
[4]={ 9 },
[5]={ 10 },
[6]={ 11 },
[7]={ 12 },
[8]={ 13 },
[9]={ 14 },
[10]={ 15 },
[11]={ 17 },
[12]={ 21 },
[13]={ 22 },
[14]={ 24 },
[15]={ 25 },
[16]={ 31 },
[17]={ 56 },
[18]={ 201 },
[19]={ 298 },
[20]={ 306 }
}





Teame = createTeam("Kierowca Autobusu", 0, 255, 0)



taxiTeams = { [Teame] = true }
taxiVehs = { [437] = true }

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 )



markers = { }
blips = { }
peds = { }
mposi = { }
mposii = {}




function startJob ( thePlayer )
local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] )
markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 )
mposi = { getElementPosition( markers [ thePlayer ] ) }
local skins = unpack ( pedCus [ math.random ( #pedCus ) ] )
peds [ thePlayer ] = createPed( skins, x, y, z )
blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 12 )
addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit )
end

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

function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ )
setElementPosition ( source, posX, posY, posZ )
end
addCommandHandler ( "setpos", consoleSetPlayerPosition )



Z G?RY DZI?KUJE!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-20, 17:34


*-*CytrynQa*-*







Wiek: 28
Na forum: 2808 dni
Posty: 1
Nick w MP: CytrynQa



Respekt: 50

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-10-27, 12:56


dawfig







Wiek: 28
Na forum: 2883 dni
Posty: 27
Nick w MP: dawfex

Piwa: 505

Respekt: 45,3

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]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-26, 22:57


Szymeky







Wiek: 28
Na forum: 4028 dni
Posty: 1
Nick w MP: Szymeky



Respekt: 50

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 :)

Postaw piwo autorowi tego posta
 

 
Tagi: prośby :: przerobienie :: skryptu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zasoby do MTA » PROŚBY O PRZEROBIENIE SKRYPTU Odpowiedz do tematu

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
Dodaj temat do Ulubionych
Wersja do druku