Dlaczego GUI si? nie chce pokaza?? DebugScript ?adnego b??du nie pokazuje.
addEventHandler("onClientRender", root, dxRender)
function dxRender() dxDrawRectangle(0, 0, 1366, 768, tocolor(17, 17, 17, 200), false) end function hideGUI () removeEventHandler("onClientRender", root, dxRender) showCursor(false) end
addEventHandler("onClientRender", hideGUI)
function showGUI () addEventHandler("onClientRender", root, dxRender) showCursor(true) end function BindKey () bindKey("home", "down",showGUI) end
addEventHandler("bindme", BindKey)
[ Dodano: 2017-07-16, 13:17 ]
//Edit Wszystko jest w c-side
Witam, chc? aby pokaza?o si? GUI po wej?ciu w marker, wpisaniu komendy /pokaz oraz gracz musi by? w grupie ACL.
marker = createMarker (487.599609375, -0.900390625, 1001.4000244141, "cylinder", 0.60000002)
setElementInterior(marker, 17)
function praca(thePlayer)
PD=createTeam("PD", 214, 121, 22)
local playerName = getAccountName(getPlayerName(thePlayer))
if isObjectInACLGroup("user."..PlayerName,aclGetGroup("PD")) then
if isElementWithinMarker(thePlayer, marker) then
showCursor(true)
guiSetVisible(GUIEditor.window[1], true)
end
end
addCommandHandler("otworz", praca)
Po wej?ciu w marker i wpisaniu komendy gui nie chce si? pokaza?, je?li co? jest ?le to pisa?. Dodam ?e w grze doda?em siebie do grupy PD. [/code]