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

Wysłany: 2017-02-19, 17:01


Hubio69

Mapper MTA






Wiek: 27
Na forum: 3586 dni
Posty: 99
Nick w MP: Hubio69

Piwa: 17

Respekt: 50

Prosi?bym o przerobienie skryptu, chodzi mi o to, ?e w tym skrypcie s? boty, kt?re po zrespieniu atakuj? graczy, a ja potrzebowa?bym ?eby tylko si? porusza?y bez atakowania:
http://www85.zippyshare.com/v/FyYsha4K/file.html

Podpis
Mapper MTA
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-22, 15:37


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8

Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-25, 09:09


Hubio69

Mapper MTA






Wiek: 27
Na forum: 3586 dni
Posty: 99
Nick w MP: Hubio69

Piwa: 17

Respekt: 50

Damian2511, niestety nie dzia?a :/

Podpis
Mapper MTA
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-14, 19:36


Sexior







Wiek: 30
Na forum: 3601 dni
Posty: 29

Piwa: 11

Respekt: 40

Siemanko, mam prosbe czy ktos by mi dorobil do ogrpg prawo jazdy licencje na ?odzie??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 17:32


RazerxD







Wiek: 25
Na forum: 3526 dni
Posty: 17
Nick w MP: SILV3R



Respekt: 50

Kod:

antiSpam = {}
function antiChatSpam()
if isTimer(antiSpam[source]) then
cancelEvent()
outputChatBox("#ffffff"..getPlayerName(source).." #ff6600Zosta? zmutowany za spam na chacie! ( 60 sekund )", getRootElement(), 255, 255, 0,true)
setPlayerMuted(source, true)
setTimer ( autoUnmute, 30000, 1, source)
else
antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 1000, 1, source)
end
end
addEventHandler("onPlayerChat", root, antiChatSpam)


function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox ("#FFFFFF"..getPlayerName ( player ).." #ff6600Zosta? odmutowany !",getRootElement(), 255, 255, 0,true )
end
end





Przer?bcie mi ten anti spam ?eby nie by? na say tylko pm

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-18, 23:47


Piasko







Wiek: 32
Na forum: 3426 dni
Posty: 6
Nick w MP: Piasko



Respekt: 50

Prosi?bym o przerobienie skryptu tak aby by? taki hud http://imgur.com/a/NfM7R .
http://hostuje.net/file.p...934eb7fd53305b3

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-24, 15:32


B-A-K-O-M-A







Wiek: 31
Na forum: 3378 dni
Posty: 4



Respekt: 50

Kod:

function startJob(thePlayer)
local theVehicle = getPedOccupiedVehicle (thePlayer)
if not theVehicle then
outputChatBox("Rozpoczynasz po??w ryb, poczekaj cierpliwie na jak?? ryb?", thePlayer)
setElementFrozen(thePlayer, true)
setPedAnimation (thePlayer, "SWORD", "sword_block", -1, false, false, true,true)
setTimer(function ()
setPedAnimation(thePlayer,false)
setElementFrozen(thePlayer, false)
local rand1 = math.random(1,2)
if rand1 == 1 then
local rand2 = math.random(12,50)
outputChatBox("Z?owi?e? ryb? zarabiaj?c PLN"..rand2, thePlayer)
givePlayerMoney(thePlayer, rand2)
else
outputChatBox("?y?ka zerwa?a si?", thePlayer)
end
end, 10000, 1)
else
outputChatBox("Najpierw wyjd? z pojazdu", thePlayer)
end
end


Witam pisz? w?asny skrypt i chcia?bym aby kto? mi to z
Kod:

outputChatBox("Rozpoczynasz po??w ryb, poczekaj cierpliwie na jak?? ryb?", thePlayer)

przerobi? mi pod funkcj? dxDrawText

Za pomoc stawiam piwko

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-24, 16:17


Bolek321







Wiek: 28
Na forum: 3362 dni
Posty: 1
Nick w MP: Bolek321



Respekt: 50

Witam mam problem z jednym skryptem z salonem bo jak kupuje si? pojazd to powin? si? respawnowa? jeszcze raz a si? nie respawni i nie wiem co z tym jest nie tak pomo?e kto?? :P

local pojazdy = {}
--pojazdy[id] = {x,y,z,rx,ry,rz,cena,przebieg} - pojazdy do kupienia
pojazdy[439] = { 100.391178.7118.34360.00.0138.9,17500,math.random(0,20)}
pojazdy[533] = { 106.541178.8218.34360.00.0140.0,17000,math.random(0,20)}
pojazdy[445] = { 108.241173.5718.340.00.094.8,14000,math.random(0,20)}
pojazdy[507] = { 105.511169.1818.34360.00.050.8,20000,math.random(0,20)}
pojazdy[526] = { 99.441168.5218.34360.00.055.4,13000,math.random(0,20)}
pojazdy[426] = { 92.861168.2218.34360.00.051.5,22000,math.random(0,20)}
pojazdy[551] = { 86.331167.9618.34360.00.048.2,22000,math.random(0,20)}
pojazdy[547] = { 80.621167.5418.340.10.047.7,30000,math.random(0,20)}
pojazdy[405] = { 77.591163.4618.340.0360.058.7,30000,math.random(0,20)}
pojazdy[550] = { 75.281159.1118.34360.0360.024.1,30000,math.random(0,20)}
pojazdy[421] = { 70.061158.8818.34360.00.020.6,30000,math.random(0,20)}
pojazdy[561] = { 64.271158.2918.34360.00.030.2,30000,math.random(0,20)}
pojazdy[542] = { 58.711162.2018.34360.00.0317.3,30000,math.random(0,20)}
pojazdy[527] = { 59.091168.6818.34360.00.0309.8,30000,math.random(0,20)}
pojazdy[492] = { 58.951174.7318.340.0360.0301.3,30000,math.random(0,20)}
-- TU DODAJESZ POJAZDY

for i,v in pairs(pojazdy) do
    local wystawa createVehicle(i,v[1],v[2],v[3],v[4],v[5],v[6])
    setVehicleDamageProof(wystawa,true)
    setElementFrozen(wystawa,true)
    setElementData(wystawa,"pojazd_przebieg",v[8])
    setElementData(wystawa,"dokupienia",true)
    setElementData(wystawa,"cena",v[7])
    setVehiclePlateText(wystawa"  Sell")
        setVehicleColor(wystawa0090909090 )
end

function zrespponownie(id)
    if pojazdy[idthen
        local wystawa createVehicle(id,pojazdy[id][1],pojazdy[id][2],pojazdy[id][3],pojazdy[id][4],pojazdy[id][5],pojazdy[id][6])
        setVehicleDamageProof(wystawa,true)
        setElementFrozen(wystawa,true)
        setElementData(wystawa,"pojazd_przebieg",pojazdy[id][8])
        setElementData(wystawa,"dokupienia",true)
        setElementData(wystawa,"cena",pojazdy[id][7])
        setVehiclePlateText(wystawa"  SELL")
                setVehicleColor(wystawa0090909090 )
    end
end

function kup(plr)
    local v getPedOccupiedVehicle(plr)
    if getElementData(v,"dokupienia"then
        local id getElementModel(v)
        if pojazdy[idthen
            local cena pojazdy[id][7]
            if cena then
                if getPlayerMoney(plr) >= cena then
                    takePlayerMoney(plrcena)
                    local przebieg getElementData(v,"pojazd_przebieg")
                    local x,y,getElementPosition(v)
                    local rotx,roty,rotz getElementRotation(v)
                    local r1,g1,b1,r2,g2,b2,r3,g3,b3,r4,g4,b4 getVehicleColor(v,true)
                    local hr,hg,hb getVehicleHeadLightColor(v)
                    local account getPlayerAccount(plr)
                    local wlasciciel getAccountName(account)
                    --<<-->>
                    local query dbQuery(handler"INSERT INTO pojazdy (wlasciciel, model, x, y, z, rot, r1,g1,b1,r2,g2,b2,r3,g3,b3,r4,g4,b4, przebieg, paliwo) VALUES (?, ?, ?, ?, ?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"wlascicielidxyzrotxr1,g1,b1,r2,g2,b2,r3,g3,b3,r4,g4,b4przebieg60)
                    local resultnum_affected_rowslast_insert_id dbPoll(query, -1)
                    dbExec(handler"INSERT INTO tuning (id, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, paintjob, hr, hg, hb) VALUES (?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"last_insert_id"0""0""0""0""0""0""0""0""0""0""0""0""0""0""0""0""0""3"hr,hg,hb)
                    --<<-->>
                    destroyElement(v)
                    local pojazd createVehicle(id,x,y,z,rx,ry,rz)
                    warpPedIntoVehicle(plr,pojazd)
                    local query dbQuery(handler"SELECT * FROM pojazdy")
                    local resultnum_rowserrormsg dbPoll (query, -1)
                    for i,v in pairs(result) do
                        setElementRotation(pojazd,rotx,roty,rotz)
                        setElementData(pojazd"pojazdy_paliwo"v["paliwo"] or 100)
                        setElementData(pojazd"pojazdy_przebieg"v["przebieg"] or 0)
                        setVehicleColor(pojazdv["r1"],v["g1"],v["b1"],v["r2"],v["g2"],v["b2"],v["r3"],v["g3"],v["b3"],v["r4"],v["g4"],v["b4"])
                        setElementData(pojazd"car_id"v["id"])
                        setElementData(pojazd"car_owner"v["wlasciciel"])
                        setVehiclePlateText(pojazd"FC "..v["id"])
                                                setVehicleColor(pojazd1500000)
                    end
                    setTimer(function()
                        zrespponownie(id)
                    end,8000,1)
                else
                    outputChatBox("#c6c6c6Nie masz tyle pieni?dzy. Potrzebujesz PLN "..cena,plr,0,0,0,true)
                end
            end
        end
    end
end
addCommandHandler("kuppojazd",kup)


Komentarz FrosteR dodany 2017-03-24, 17:29Następnym razem cały kod daj w lua, tak jak ja zrobiłem to u Ciebie.
Ostatnio zmieniony przez FrosteR 2017-03-24, 17:27, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-29, 00:23


demoniskoxd







Wiek: 30
Na forum: 3989 dni
Posty: 79
Nick w MP: Francesco

Piwa: 1

Respekt: 50

Witam ponizej jest cos takiego

Kod:

p_lights = {}
p_timer = {}
p_lvar = {}
p_pvar = {}
p_lvar2 = {}
p_lvar3 = {}
p_lvar4 = {}



function toggleLights(thePlayer, cmd, level)
local level = tonumber(level)
if not(level) then outputChatBox("#FF0000 Wybierz /lampy![1-2]", thePlayer, 255, 255, 255, true) return end
if(level < 1) or (level > 2) then outputChatBox("#FF0000 /lampy 1-2!", thePlayer, 255, 255, 255, true) return end
local veh = getPedOccupiedVehicle(thePlayer)
local id = getElementModel(veh)
if (id == 598) or (id == 596) or (id == 597) or (id == 599) then
if(level == 1) then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_pvar[veh] = 1
p_lights[veh] = 1
outputChatBox("#FFFFFFW?aczy?es lampy", thePlayer, 0, 200, 100, true)
setVehicleOverrideLights ( veh, 2 )
p_timer[veh] = setTimer(
function()
if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then
p_lvar[veh] = 1
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 0, 0, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 0, 0)
p_lvar[veh] = 0
end
end, 500, 0)
else
p_lights[veh] = 0
outputChatBox("#FFFFFFWy?aczy?es lampy.", thePlayer, 0, 200, 100, true)
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 1 )
end
elseif(level == 2) then
if(p_lights[veh] == 0) or(p_lights[veh] == nil) then
p_lights[veh] = 1
outputChatBox("#FFFFFFW?aczy?es lampy #00FF00enabled.", thePlayer, 0, 200, 100, true)
setVehicleOverrideLights ( veh, 2 )
p_timer[veh] = setTimer(
function()
if(p_lvar3[veh] == 4) then
setTimer(function() p_lvar3[veh] = 0 end, 1000, 1)
setTimer(
function()
if(p_lvar4[veh] == 1)then
p_lvar4[veh] = 0
-- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 77, 77, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 77, 77)
p_lvar4[veh] = 1
end
end, 50, 5)
return end
if(p_lvar2[veh] == 0) or (p_lvar2[veh] == nil) then
p_lvar2[veh] = 1
-- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 0, 1)
setVehicleLightState ( veh, 3, 1)
setVehicleHeadLightColor(veh, 0, 0, 255)
else
setVehicleLightState ( veh, 3, 0)
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 1)
setVehicleLightState ( veh, 2, 1)
setVehicleHeadLightColor(veh, 255, 0, 0)
p_lvar2[veh] = 0
end
if(p_lvar3[veh] == nil) then p_lvar3[veh] = 0 end
p_lvar3[veh] = (p_lvar3[veh]+1)
end, 500, 0)
else
p_lights[veh] = 0
outputChatBox("#FFFFFFWy?aczy?es lampy.", thePlayer, 0, 200, 100, true)
killTimer(p_timer[veh])
setVehicleLightState ( veh, 0, 0)
setVehicleLightState ( veh, 1, 0)
setVehicleLightState ( veh, 2, 0)
setVehicleLightState ( veh, 3, 0)
setVehicleHeadLightColor(veh, 255, 255, 255)
setVehicleOverrideLights ( veh, 1 )
end
end
end
end
addCommandHandler("lampy", toggleLights)

addEventHandler("onResourceStart",root,function()
for k,v in pairs(getElementsByType("player")) do
bindKey(v,"1", "down", "lampy")
end
end)

addEventHandler("onPlayerJoin",root,function()
bindKey(source,"1", "down", "lampy")
end)




addEventHandler ( "onVehicleExplode", getRootElement(),
function()
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end )

addEventHandler ( "onVehicleRespawn", getRootElement(),
function()
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end )

addEventHandler("onElementDestroy", getRootElement(),
function ()
if getElementType(source) == "vehicle" then
if(p_lights[source] == 1) then
killTimer(p_timer[source])
end
end
end)


Chcia?bym aby swiatelka uruchamialy sie pod dany klawisz *bind* lecz nie dziala mi cos co ja tu robie zle ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-29, 21:13


Sexior







Wiek: 30
Na forum: 3601 dni
Posty: 29

Piwa: 11

Respekt: 40

Witam, czy kto? by da? rade przerobic system samochodowd z pojemnascia silnika i rodzajami paliwa (lpg, benzyna, disel) z gamemode OwnWorld pod gamemode ogrpg

http://www115.zippyshare.com/v/PjDH2Q8t/file.html

prosze o odpowiedz czy dal by rade ktos zrobic to :)

daje :piwo: i respekt

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-04-04, 22:41


gg55







Wiek: 26
Na forum: 3602 dni
Posty: 55
Nick w MP: Kuba56

Piwa: 955

Respekt: 21

Powie ktos czy dobrze czy zle czy by mi ktos to zrobi? bo nie wiem czy dobrze za to :piwo: R* to jest ten SMSAPI ServerProject

Kod:

-- Variables
local premium = {
['api_key'] = '9e47224a4032b9779ba19c182',
}

-- Functions
function result(responseData, errno, playerToReceive)
if string.find(responseData, '"error":"bad_code"') then
outputChatBox('* Wprowadzony kod jest nieprawid?owy lub zosta? wykorzystany.', playerToReceive)
return
end

if string.find(responseData, '"status":"fail"') then
outputChatBox('* Wyst?pi? nieznany b??d podczas zakupu us?ugi.', playerToReceive)
return
end

--
-- Zabezpieczenie kt?re zabrania graczowi zakupu us?ugi na 30 dni z otrzymanym kodem us?ugi na 3 dni.
-- Gdy kwoty po stronie Clienta ulegn? zmianie, nale?y je uzupe?ni? tak?e tutaj.
--

local days = nil

if string.find(responseData, '"amount":"1"') then days = 1 end
if string.find(responseData, '"amount":"2"') then days = 7 end
if string.find(responseData, '"amount":"3"') then days = 30 end
if string.find(responseData, '"amount":"4"') then days = 45 end
if string.find(responseData, '"amount":"5"') then days = 55 end

if not days then return end

--
-- Koniec zabezpieczenia
--

--
-- Od tego momentu mo?na ustawi? co ma si? wykonywa? po prawid?owym wprowadzeniu kodu.
-- Je?eli chcemy pobra? ilo?? dni zakupionej us?ugi nale?y wprowadzi? w danym miejscu 'days'.
-- Przyk?ad u?ycia znajduje si? poni?ej.
--

outputChatBox('* Kod prawid?owy, zakupi?e?/a? na '.. days ..' dni us?ug? Premium.', playerToReceive)
end

addEvent('premium:checkCode', true)
addEventHandler('premium:checkCode', resourceRoot, function(code, netto)
if not code then return end

local string = string.format('https://admin.serverproject.eu/api/smsapi.php?key=%s&amount=%d&code=%s&desc=Premium', premium['api_key'], netto, code)
fetchRemote(string, result, "", false, client)
end)




Kod:

-- Variables
local options = {
{ service = 'Premium 1 dzien', content = 'AA.SP', number = '7136', cost = '1.23', cost_netto = 1, }, -- 1 dzien
{ service = 'Premium 7 dni', content = 'AA.SP', number = '7455', cost = '4.92', cost_netto = 2, }, -- 7 dni
{ service = 'Premium 30 dni', content = 'AA.SP', number = '7936', cost = '11.07', cost_netto = 3, }, -- 30 dni
{ service = 'Premium 45 dni', content = 'AA.SP', number = '91955', cost = '23.37', cost_netto = 4, }, -- 45 dni
{ service = 'Premium 55 dni', content = 'AA.SP', number = '92555', cost = '30.75', cost_netto = 5, }, -- 55 dni
}

-- Gui
local gui = {}
gui.window = guiCreateWindow(0.28, 0.24, 0.44, 0.53, 'Panel zakupu wirtualnej us?ugi na serwerze PSRPG.', true)
guiWindowSetSizable(gui.window, false)
guiSetVisible(gui.window, false)

gui.radio = guiCreateRadioButton(0.05, 0.10, 0.02, 0.03, '', true, gui.window)
guiRadioButtonSetSelected(gui.radio, false)
gui.label_rules = guiCreateLabel(0.13, 0.10, 0.81, 0.04, 'O?wiadczam i? zapozna?em/am si? z regulaminem us?ugi Premium.', true, gui.window)

gui.label_service = guiCreateLabel(0.05, 0.18, 0.14, 0.04, 'Wybierz us?ug?:', true, gui.window)
gui.gridlist = guiCreateGridList(0.05, 0.23, 0.88, 0.25, true, gui.window)
guiGridListAddColumn(gui.gridlist, 'Us?uga', 0.30)
guiGridListAddColumn(gui.gridlist, 'Numer', 0.20)
guiGridListAddColumn(gui.gridlist, 'Tre??', 0.20)
guiGridListAddColumn(gui.gridlist, 'Koszt', 0.30)

gui.label_code = guiCreateLabel(0.05, 0.52, 0.23, 0.04, 'Wprowad? otrzymany kod:', true, gui.window)
gui.edit = guiCreateEdit(0.05, 0.57, 0.35, 0.07, '', true, gui.window)

--gui.banner = guiCreateStaticImage(0.05, 0.85, 0.88, 0.08, 'i/banner.png', true, gui.window)

gui.button_buy = guiCreateButton(0.05, 0.69, 0.35, 0.10, 'Zakup us?ug?', true, gui.window)
gui.button_cancel = guiCreateButton(0.59, 0.69, 0.35, 0.10, 'Anuluj', true, gui.window)

-- Functions
addEventHandler('onClientGUIClick', resourceRoot, function(button)
if not guiGetVisible(gui.window) or button ~= 'left' then return end

if source == gui.button_buy then
local selectedRow = guiGridListGetSelectedItem(gui.gridlist)
if selectedRow < 0 then return end

local service = guiGridListGetItemText(gui.gridlist, selectedRow, 1)
local number = guiGridListGetItemText(gui.gridlist, selectedRow, 2)
local content = guiGridListGetItemText(gui.gridlist, selectedRow, 3)
local cost = guiGridListGetItemData(gui.gridlist, selectedRow, 4)

if service and number and content and cost then
local radio = guiRadioButtonGetSelected(gui.radio)
if not radio then
outputChatBox('* Nie zaakceptowa?e?/a? regulamin us?ugi.')
return
end

local code = guiGetText(gui.edit)
if not code or string.len(code) ~= 6 then
outputChatBox('* Tw?j kod musi zawiera? 6 znak?w.')
return
end

triggerServerEvent('premium:checkCode', resourceRoot, code, cost)
end
end

if source == gui.button_cancel then
showCursor(false)
guiSetVisible(gui.window, false)
end
end)

bindKey('F2', 'down', function()
if not guiGetVisible(gui.window) then
showCursor(true)
guiSetVisible(gui.window, true)

guiGridListClear(gui.gridlist)

for k,v in pairs(options) do
local row = guiGridListAddRow(gui.gridlist)
guiGridListSetItemText(gui.gridlist, row, 1, v['service'], false, false)
guiGridListSetItemText(gui.gridlist, row, 2, v['number'], false, false)
guiGridListSetItemText(gui.gridlist, row, 3, v['content'], false, false)
guiGridListSetItemText(gui.gridlist, row, 4, v['cost'] .. ' PLN', false, false)
guiGridListSetItemData(gui.gridlist, row, 4, v['cost_netto'])
end
end
end)

fileDelete('premium_c.lua')


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-04-05, 04:03


Hryspin

BlueBoy






Wiek: 36
Na forum: 3361 dni
Posty: 28
Nick w MP: Hryspin

Piwa: 6

Respekt: 50

gg55, wbij na ts3 do szerokiego i tam mozesz mnie spotkac jutro pod wiecz?r moge ci z tym pom?c gdyz bede ko?czy? gm ourFarm.
B?d? napisz do mnie na pw forum to sie dogadamy co do kontaktu .

Podpis
Młody twórca o wielkim sercu.
Zajmuję się:
Programistyka
Grafika
Map Editor
Teksturowanie obiektów.

Kontakt:
Forum
Moje strony:
http://smerfny-raj.com.pl/index.php
http://cs-blue.pl/index.php
http://forum.bluerp.pl/index.php
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-04-21, 13:45


Sexior







Wiek: 30
Na forum: 3601 dni
Posty: 29

Piwa: 11

Respekt: 40

Cze?c, jak to zrobi? ?eby przystosywa?o sie do rozdzielczo?ci, bo mi dziala normalnie przycisk a kolega ma inna rozdzielczosc i ma 2 duze kwadraty

Kod:

local marker=createMarker(2459.64, 2399.79, 3699.51-1, "cylinder", 1, 0,60,200, 100)
local text=createElement('text')
setElementPosition(text,2459.64, 2399.79, 3699.51+0.6)
setElementData(text,"text","Wyp?atomat Frakcyjny")

panelWyplaty = false
local screenW, screenH = guiGetScreenSize()
foNte = dxCreateFont(":Sg_Buttony/font.ttf",18) or "defaul-bold"
foNte2 = dxCreateFont(":Sg_Buttony/font.ttf",12) or "defaul-bold"

function PanelWyplata()
color = tocolor ( 0, 60, 200, 255 )
color2 = tocolor ( 0, 60, 200, 255 )
colorText = tocolor ( 255, 255, 255, 255 )
dxDrawAnimWindow ( "Wyp?aty Frakcyjne!", screenW * 0.348, screenH * 0.335, color, color2, colorText, "default-bold", "OutBack")
end

function PanelWyplataInfo()
local czaspraca = getElementData(localPlayer,"user:workmoney") or 0
dxDrawBorderedText("Wyp?atomat Frakcyjny!\n\nTutaj wyp?acisz swoje pieni?dz? za wykonan? s?u?b?\nw SAPD/SAMC/SAFD.\n\nCzas na s?u?bi?: #00DD00"..czaspraca.." minut.", screenW * 0.329, screenH * 0.341, screenW * 0.670, screenH * 0.586, tocolor(255, 255, 255, 255), 1.00, foNte2, "center", "center", false, false, false, false, false)
end


function uruchom(el,md)
if el~=localPlayer then return end
if panelWyplaty == false then
addEventHandler("onClientRender",root,PanelWyplata)
wyplata = createElement("dxButton")
zamknij = createElement("dxButton")
start = getTickCount()
panelWyplaty = true
showCursor(true)
setTimer(function ()
addEventHandler("onClientRender",root,PanelWyplataInfo)
end,1500,1)
end
end
addEventHandler('onClientMarkerHit',marker,uruchom)


function Zamknijokno(clickedButton)
if panelWyplaty == true then
if clickedButton then
if clickedButton == zamknij then
removeEventHandler("onClientRender",root,PanelWyplata)
removeEventHandler("onClientRender",root,PanelWyplataInfo)
destroyElement(zamknij)
destroyElement(wyplata)
showCursor(false)
panelWyplaty = false
end
end
end
end
addEvent("onDxLibButtonClick",true)
addEventHandler("onDxLibButtonClick",getRootElement(),Zamknijokno)

function WyplacGracza(clickedButton)
if panelWyplaty == true then
if clickedButton then
if clickedButton == wyplata then
triggerServerEvent("wyplata", root,localPlayer)
end
end
end
end
addEvent("onDxLibButtonClick",true)
addEventHandler("onDxLibButtonClick",getRootElement(),WyplacGracza)

function dxDrawAnimWindow(text,width,height,color,color2,colorText,font,anim)
local x,y = guiGetScreenSize()

btwidth = width
btheight = height/20

local now = getTickCount()
local elapsedTime = now - start
local endTime = start + 1500
local duration = endTime - start
local progress = elapsedTime / duration
local x1, y1, z1 = interpolateBetween ( 0, 0, 0, width, height, 255, progress, anim)
local x2, y2, z2 = interpolateBetween ( 0, 0, 0, btwidth, btheight+10, btheight/22, progress, anim)

posx = (x/2)-(x1/2)
posy = (y/2)-(y1/2)

exports.Sg_Buttony:dxDrawBluredRectangle (posx, posy, x1, y1, tocolor (255,255,255,255))
roundedRectangle ( posx, posy-y2, x2, y2, color, color2 )
roundedRectangle ( posx, posy, x1, y1, tocolor ( 0, 0, 0, 200 ), tocolor ( 0, 0, 0, 200 ))
exports.Sg_Buttony:dxLibCreateButton(wyplata,posx+screenW * 0.0060, posy+screenW * 0.1500, x1-screenW * 0.2100, y1-screenW * 0.1580,"Odbierz",1,7, 59, 194,255,255,255,255,false)
exports.Sg_Buttony:dxLibCreateButton(zamknij,posx+screenW * 0.2040, posy+screenW * 0.1500, x1-screenW * 0.2100, y1-screenW * 0.1580,"Zamknij okno",1,7, 59, 194,255,255,255,255,false)
dxDrawBorderedText ( text, 0, -(y1)-y2, x, y, colorText, z2,foNte,"center","center")

end

function roundedRectangle(x, y, w, h, borderColor, bgColor, postGUI)
if (x and y and w and h) then
if (not borderColor) then
borderColor = tocolor(0, 0, 0, 200);
end

if (not bgColor) then
bgColor = borderColor;
end

--> Background
dxDrawRectangle(x, y, w, h, bgColor, postGUI);

--> Border
dxDrawRectangle(x + 2, y - 1, w - 4, 1, borderColor, postGUI); -- top
dxDrawRectangle(x + 2, y + h, w - 4, 1, borderColor, postGUI); -- bottom
dxDrawRectangle(x - 1, y + 2, 1, h - 4, borderColor, postGUI); -- left
dxDrawRectangle(x + w, y + 2, 1, h - 4, borderColor, postGUI); -- right
end
end

function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x - 1, y - 1, w - 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x + 1, y - 1, w + 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x - 1, y + 1, w - 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x + 1, y + 1, w + 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x - 1, y, w - 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x + 1, y, w + 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x, y - 1, w, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text:gsub('#%x%x%x%x%x%x', ''), x, y + 1, w, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false )
dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, true )
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-04-28, 11:06


MagiK.

Lua :-)






Wiek: 26
Na forum: 3441 dni
Posty: 102

Piwa: 391

Respekt: 35,8

"Boski1234567891" napisał/a:

Witam prosi? bym tez jeszcze o przerobienie tego skryptu duty admin zeby po wpisaniu komendy /zpj nick czas jednostka powod nie mozna bylo wsiadac do pojazdu jak narazie mozna dodalem wszysto do acl ale i tak nie dzia?a :/

http://www15.zippyshare.com/v/GJMnqQXD/file.html


Musisz mie? podpi?ta baz? MySQL oraz wgrane modu?y. Oraz dodany resource.* do ACL.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-04-28, 22:47


Telsky







Wiek: 27
Na forum: 3390 dni
Posty: 8
Nick w MP: Telsky



Respekt: 50

Witam, znalaz?em dzisiaj na internecie skrypt na prywatne wiadomo?ci, kt?re mo?na wysy?a? za pomoc? komendy "/pm <nick<". Chcia?bym, aby kto? mi pom?g? przerobi?/dorobi? wstawk?, ?e mo?na te? wpisa? id i wy?le do gracza z podanym id. Mam skrypt "systemid" ze strony mta:sa, wi?c problemu chyba nie b?dzie.
LUA skryptu:





Bardzo prosz? o pomoc, jestem w tym zielony.

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