powinno tak zadzia?a?, cho? je?li chcesz, mo?esz u?y? mojego kodu, kt?ry tworzy?em na w?asne potrzeby. Modyfikuj do woli:)
skiny = {[275]=true, [276]=true, [277]=true, [278]=true, [279]=true, [280]=true, [281]=true, [282]=true, [283]=true, [284]=true, [285]=true, [286]=true, [287]=true, [288]=true}
function barier(plr)
if not skiny[getElementModel(plr)] then return end
if getPedOccupiedVehicle(plr) then return end
local x,y,z = getElementPosition(plr)
local rx,ry,rz = getElementRotation(plr)
local barierka = createObject(1459, x,y,z-0.32)
setElementData(barierka, "isBarierka", true)
setElementRotation(barierka, rx, ry, rz+90)
setElementFrozen(barierka, true)
setElementData(barierka, "isBarierka2", getPlayerName(plr))
end
addCommandHandler("pb",barier )
Tworzenie na komend?.
[ Dodano: 2016-08-25, 21:33 ]
Przetestuj sw?j, lub m?j kod, i daj zna? o b??dach, je?li s?:) to b?dziemy dzia?a?
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