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: barierka
1. Barierka
hejo, to znowu ja, pisze skrypt na barierke pod ogrpg bo jakis typek chcia?, a przez to ze s? korona-ferie to nudze sie i sie zgodzi?em, problem polega na tym ze ten typ chcia? ?eby sie respi?o jak na emsie czyli przed, a zrobi?em skrypt i nie wiem jak to dokonczyc
[lua]function barierke1(source,command)
if isPedInVehicle(source) then return end
if getElementData(source,'player:duty') and getElementData(source,'player:duty')=='SAPD' then
local barierke1 = getElementData(source,'player:barierke1') or {}
local nick = getPlayerName(source):gsub("#%x%x%x%x%x%x","")

local x,y,z = getElementPosition(source)

local rotX,rotY,rotZ = getElementRotation(source)
local obj = createObject(1228, x, y, z-0.45, 0,0,180)
setElementFrozen(obj,true)
setElementData(obj,"wlasciciel",nick)
local time = getRealTime()
if time.second >= 60 then time.second = time.second-60; time.minute=time.minute+1 end
if time.minute >= 60 then time.minute = time.minute-60; time.hour=time.hour+1 end
local datapostawienia = string.format("%02d:%02d:%02d",time.hour, time.minute, time.second)
setElementData(obj,"hour",datapostawienia)
triggerClientEvent("setObjectBreakable",obj)

table.insert(barierke1,obj )
setElementData(source,'player:barierke1',barierke1)

setElementInterior(obj, getElementInteri...
2. Barierka
Kod:

bariera = {}

addCommandHandler ( "barierka", function(plr)
team = getPlayerTeam ( plr )
if getTeamName ( team ) ~= "Policja" then return end
x,y,z = getElementPosition ( plr )
r1,r2,r3 = getElementRotation ( plr )
budowla = createObject ( 3578, x, y, z-0.5, r1, r2, r3 )
table.insert ( bariera, bariera )
end)


addCommandHandler ( "barierkadel", function(plr)
team = getPlayerTeam ( plr )
if getTeamName ( team ) ~= "Policja" then return end
for k,v in ipairs ( bariera ) do
destroyElement ( v )
end
end)


Wywala warning:
bad argument 'getTeamName'

Jakie? pomys?y ?
3. [INNE] Pacholek Barierka
Witam,
Potrzebuje kodu na to aby stworzy? pacho?ek. Oraz go usun??. Prosi?bym o to aby pacho?ki mo?na by?o robi? do 20 lub usun?? te >20

Leca browarki
4. [INNE] Barierka policja
Siema, mam pytani?... Poda mi kto? kod ze jak policja np wpisze /postawbar to ustawia w tym miejscu co stoi barierk? o id 3578 a potem wpisze /usunallbar to si? usuwaj? wszystki barierki jakie postawi? za pomoc oczywi?cie piwo!!