انا طلبت كود و واحد عطاني هذا بس مش فاهمو ممكن شرح
addEventHandler ( "onClientClick", root,
function ( button, state, _, _, _, _, _, plr )
if button == "left" and state == "up" and plr then
if getElementType( plr ) == "player" then
if getPlayerName( plr ) == getPlayerName( localPlayer ) then
guiSetVisible ( wnd, not guiGetVisible(wnd) )
showCursor( guiGetVisible(wnd))
else
guiSetVisible ( secWnd, guiGetVisible(secWnd) )
showCursor( guiGetVisible(secWnd) )
end
else
outputChatBox( " ** Please click on the player !" )
end
end
end
)