Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: podwójnie
1. Podwójnie myje, zabiera pieniądze oraz pokazuje notyfikacje
Witam ot?? mam problem z myjn? wszystko robi podw?jnie

client
[lua]
-- Myjnia pojazd?w.
createBlip(-2279.03, -175.91, 35.32, 55,2,0,0,0,0,0,275) -- TWORZYMY BLIP
local missionText=createElement("text")
setElementData(missionText, "name", "MyjnianKoszt: 50PLN")
setElementPosition(missionText, -2279.03, -175.91, 35.32+0.8)

shader = dxCreateShader( "tekstura.fx" )
local marker = createMarker ( -2279.03, -175.91, 35.32-0.5, "cylinder", 3, 0, 255, 0, 0 )

function myjnia (hitPlayer, matchingDimension)
local veh = getPlayerOccupiedVehicle ( hitPlayer )
if ( veh ) then
setElementData(hitPlayer, "umyjdupe", true)
engineApplyShaderToWorldTexture( shader, "vehiclegrunge256", veh )
engineApplyShaderToWorldTexture( shader, "?emap*", veh )
triggerServerEvent ("onserver", hitPlayer, onserver)
local ef = createEffect ( "waterfall_end", -2277.64, -175.72, 35.32, -0.00, 0.00, 271.51, 100, true )
local ef2 = createEffect ( "waterfall_end", -2281.13, -175.61, 34.73, 0.00, -0.00, 269.25, 100, true )
--
setTimer(function()
destroyElement(ef)
destroyElement(ef2)
end, 3000, 1)
end
end
addEventHandler("onClientMarkerHit", marker, myjnia)
[/lua]

server
[lua]
function onserver ()
takePlayerMoney (source, 50 )
fadeCamera ( source, false, 2.5, 0, 0, 0...
2. Podwójnie pisanie admintag
Po wgraniu admintaga, zaczynam podw?jnie pisa?. Jak to naprawi??
3. Za zamontowanie lampek bierze podwójnie
Hej mam problem w skrpytach your future (ogrpg) jak zamontuje lampki hajs bierze podw?jnie
Za pomoc daje zimne piwsko :piwo:




Dok?adam kod:[lua]
[[
Resource: OURGame
Developers: Split <[email protected]>
Copyright <[email protected]> 2015-2016
You have no right to use this code without my permission.
]]

local isVehicles=nil
local isColored={
-- Nazwa koloru, {r,g,b koloru}, cena
{"??wiat?‚a Czerwone", {255,0,0}, 45000},
{"??wiat?‚a Niebieskie", {0,45,110}, 40000},
{"??wiat?‚a ?»???‚te", {255,255,0}, 29500},
{"??wiat?‚a Zielone", {0,255,0}, 34500},
{"??wiat?‚a Jasno Niebieskie", {48,213,200}, 20000},
{"??wiat?‚a R????owe", {255,52,225}, 35000},
}

local wn={}
wn.window=guiCreateWindow(0.18, 0.19, 0.64, 0.62, "", true)
wn.grid=guiCreateGridList(0.03, 0.07, 0.62, 0.89, true, wn.window)
guiGridListAddColumn(wn.grid, "Kolor", 0.5)
guiGridListAddColumn(wn.grid, "Koszt", 0.5)
wn.btn_submit=guiCreateButton(0.67, 0.08, 0.31, 0.33, "Zamontuj", true, wn.window)
wn.btn_close=guiCreateButton(0.67, 0.63, 0.31, 0.33, "Zamknij", true, wn.window)
guiSetVisible(wn.window, false)

addEventHandler("onClientMarkerHit", resourceRoot, function(el,md)
if not md or ...