الرجال قصده , زي سيرفر محترفين جراند حق المولتي
لما يضغط حرف M
يفتح له الماوس فقط .. واذا شاف لاعب يضغط عليه وتفتح نافذة
' طبعا لقروب الشرطي ويقدر يغيره '
تفضل
Server :
addEvent("check",true)
addEventHandler("check",root,
function()
local acc=getPlayerAccount(client)
if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then -- أسم القروب
triggerClientEvent(client,"openre",client)
end
end
)
addEventHandler( "onElementClicked",root,
function ( x, y, p )
triggerClientEvent ( p, "openGui",p)
end
)
Client :
function strong ( )
guiSetVisible (WndName, true)
showCursor (true)
end
addEvent( "openGui", true )
addEventHandler( "openGui",root,strong)
bindKey( "M", "down",
function()
triggerServerEvent ( "check", localPlayer )
guiSetVisible ( WndName, not guiGetVisible ( wndName ) )
showCursor ( guiGetVisible ( WndName ) )
end)