LOAM Posted April 11, 2017 Share Posted April 11, 2017 السلام عليكم شباب انا مش عارف اركب الكود الى فوق دا معا الكود فتح اللوحه الكود الاول عباره لما تلمس اللوحه تخرج كلمه تقولك اضغط حرف مثلا (H) لفتح اللوحه وشكرا ----------- الكود الاول ddEventHandler 'onClientMarkerHit','onClientMarkerLeave','onClientRender' removeEventHandler 'onClientRender' dxDrawText bindKey unbindKey -----------فتح اللوحه الكود showWindow = false --д”жн showWindow жд÷Џ Џбне« false function LOMA ( ) if (showWindow == false) then guiSetVisible(accept,true) guiSetVisible(Close,true) guiSetVisible(memo,true) showCursor(true) addEventHandler("onClientRender",root,DX) end end addEventHandler("onClientMarkerHit",Marker, LOMA ) addEventHandler("onClientMarkerHit",Marker1, LOMA ) addEventHandler("onClientMarkerHit",Marker2, LOMA ) addEventHandler("onClientMarkerHit",Marker3, LOMA ) addEventHandler("onClientMarkerHit",Marker4, LOMA ) addEventHandler("onClientMarkerHit",Marker5, LOMA ) addEventHandler("onClientMarkerHit",Marker6, LOMA ) addEventHandler("onClientMarkerHit",Marker7, LOMA ) addEventHandler("onClientMarkerHit",Marker8, LOMA ) ------------------------------------------- addEventHandler("onClientGUIClick",root, function() if source == accept then lLocal = getLocalPlayer() if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then outputChatBox ( " You are already in the team " ) else triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 ) outputChatBox("Now you Are A Ceiminal",255,0,0) removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end elseif (source == Close) then removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end end ) Link to comment
#BrosS Posted April 11, 2017 Share Posted April 11, 2017 showWindow = false function bindOpen() if (showWindow == false) then guiSetVisible(accept,true) guiSetVisible(Close,true) guiSetVisible(memo,true) showCursor(true) addEventHandler("onClientRender",root,DX) showWindow = true elseif (showWindow == true) then showWindow = false guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) removeEventHandler("onClientRender",root,DX) end end function LOMA () bindKey("H","down",bindOpen) outputChatBox("press H to open") end addEventHandler("onClientMarkerHit",Marker, LOMA ) addEventHandler("onClientMarkerHit",Marker1, LOMA ) addEventHandler("onClientMarkerHit",Marker2, LOMA ) addEventHandler("onClientMarkerHit",Marker3, LOMA ) addEventHandler("onClientMarkerHit",Marker4, LOMA ) addEventHandler("onClientMarkerHit",Marker5, LOMA ) addEventHandler("onClientMarkerHit",Marker6, LOMA ) addEventHandler("onClientMarkerHit",Marker7, LOMA ) addEventHandler("onClientMarkerHit",Marker8, LOMA ) function LOMA2 () unbindKey("H","down",bindOpen) end addEventHandler("onClientMarkerLeave",Marker, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker1, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker2, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker3, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker4, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker5, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker6, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker7, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker8, LOMA2 ) ------------------------------------------- addEventHandler("onClientGUIClick",root, function() if source == accept then lLocal = getLocalPlayer() if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then outputChatBox ( " You are already in the team " ) else triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 ) outputChatBox("Now you Are A Ceiminal",255,0,0) removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end elseif (source == Close) then removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end end ) 1 Link to comment
LOAM Posted April 11, 2017 Author Share Posted April 11, 2017 21 minutes ago, #BrosS said: showWindow = false function bindOpen() if (showWindow == false) then guiSetVisible(accept,true) guiSetVisible(Close,true) guiSetVisible(memo,true) showCursor(true) addEventHandler("onClientRender",root,DX) showWindow = true elseif (showWindow == true) then showWindow = false guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) removeEventHandler("onClientRender",root,DX) end end function LOMA () bindKey("H","down",bindOpen) outputChatBox("press H to open") end addEventHandler("onClientMarkerHit",Marker, LOMA ) addEventHandler("onClientMarkerHit",Marker1, LOMA ) addEventHandler("onClientMarkerHit",Marker2, LOMA ) addEventHandler("onClientMarkerHit",Marker3, LOMA ) addEventHandler("onClientMarkerHit",Marker4, LOMA ) addEventHandler("onClientMarkerHit",Marker5, LOMA ) addEventHandler("onClientMarkerHit",Marker6, LOMA ) addEventHandler("onClientMarkerHit",Marker7, LOMA ) addEventHandler("onClientMarkerHit",Marker8, LOMA ) function LOMA2 () unbindKey("H","down",bindOpen) end addEventHandler("onClientMarkerLeave",Marker, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker1, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker2, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker3, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker4, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker5, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker6, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker7, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker8, LOMA2 ) ------------------------------------------- addEventHandler("onClientGUIClick",root, function() if source == accept then lLocal = getLocalPlayer() if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then outputChatBox ( " You are already in the team " ) else triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 ) outputChatBox("Now you Are A Ceiminal",255,0,0) removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end elseif (source == Close) then removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end end ) يفنان يفنان Link to comment
AHMED MOSTAFA Posted April 11, 2017 Share Posted April 11, 2017 9 hours ago, #BrosS said: showWindow = false function bindOpen() if (showWindow == false) then guiSetVisible(accept,true) guiSetVisible(Close,true) guiSetVisible(memo,true) showCursor(true) addEventHandler("onClientRender",root,DX) showWindow = true elseif (showWindow == true) then showWindow = false guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) removeEventHandler("onClientRender",root,DX) end end function LOMA () bindKey("H","down",bindOpen) outputChatBox("press H to open") end addEventHandler("onClientMarkerHit",Marker, LOMA ) addEventHandler("onClientMarkerHit",Marker1, LOMA ) addEventHandler("onClientMarkerHit",Marker2, LOMA ) addEventHandler("onClientMarkerHit",Marker3, LOMA ) addEventHandler("onClientMarkerHit",Marker4, LOMA ) addEventHandler("onClientMarkerHit",Marker5, LOMA ) addEventHandler("onClientMarkerHit",Marker6, LOMA ) addEventHandler("onClientMarkerHit",Marker7, LOMA ) addEventHandler("onClientMarkerHit",Marker8, LOMA ) function LOMA2 () unbindKey("H","down",bindOpen) end addEventHandler("onClientMarkerLeave",Marker, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker1, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker2, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker3, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker4, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker5, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker6, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker7, LOMA2 ) addEventHandler("onClientMarkerLeave",Marker8, LOMA2 ) ------------------------------------------- addEventHandler("onClientGUIClick",root, function() if source == accept then lLocal = getLocalPlayer() if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then outputChatBox ( " You are already in the team " ) else triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 ) outputChatBox("Now you Are A Ceiminal",255,0,0) removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end elseif (source == Close) then removeEventHandler("onClientRender",root,DX) guiSetVisible(accept,false) guiSetVisible(Close,false) guiSetVisible(memo,false) showCursor(false) end end ) نوب ذذ لا تسوي اكواد جاهزة اتركه يجرب 1 Link to comment
LOAM Posted April 11, 2017 Author Share Posted April 11, 2017 ياخى ما انا عطيتو الاكواد عشان معرفتش اركبه Link to comment
AHMED MOSTAFA Posted April 11, 2017 Share Posted April 11, 2017 9 hours ago, LOAM said: ياخى ما انا عطيتو الاكواد عشان معرفتش اركبه لو رحت الويكي كنت هتعمله لو مش بتعرف تدخل الويكي فقط اضغط على الكود اللي اي شخص يساعدك به ورح ينقلك للويكي وبتشوف اكثر من مثال 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now