[center]Witam [you]!
Witam chcia?em zrobi? spawn w panelu logowania do domu ale i? mam taki problem ze nie wiem jak to zrobi? z tym systemem dom?w chodzi tu o co? takiego jak "player:house" na ya ist itp Je?li kto? wie jak to zrobi? lub mnie nakieruje z g?ry Dzi?kuje.[/center]
(system dom?w Aspera)
C:
[lua]
--[[
Autor: Asper
Skrypt: System domow
Dla: .newMode
]]
bindKey( 'i', 'both', function( key, keyState )
if keyState == 'down' then
for k, v in ipairs ( getElementsByType( 'colshape', resourceRoot ) ) do
local dom=getElementData(v,"dom")
if tonumber(dom.wlasciciel) then
createBlipAttachedTo( v, 32, 2, 255,0,0,255,100,500 );
else
createBlipAttachedTo( v, 31, 2, 255,0,0,255,100,500 );
end
end
else
for k, v in ipairs( getElementsByType( 'blip', getResourceRootElement() ) ) do
destroyElement(v)
end
end
end)
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
function mysz(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end
local ustawienia = nil
local panel = false
local edit = guiCreateEdit(0.786, 0.48, 0.159, 0.057, "1", true)
guiSetVisible(edit, false)
guiEditSetMaxLength(edit, 2)
guiSetAlpha(edit, 0.5)
loca... |