As7f-Nfsk Posted January 23, 2014 Posted January 23, 2014 ابي تعدل كودً يفتح اذا لمس ماركر مو اذا ضغط زر wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) bindKey ( "F2" , "down" , function() guiSetVisible(wnd, not guiGetVisible( wnd )) showCursor( not isCursorShowing( ) ) end ) addEventHandler("onClientGUIClick", getRootElement(), function ( ) if source == SsSs then triggerServerEvent( "createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if getElementData(getLocalPlayer(), "Hunt") then outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) else if isPedInVehicle(getLocalPlayer()) then if ( getElementModel ( Vehicle ) == 411 ) then outputChatBox("تم اصطياد سمكة", 0, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", true) end end end end ) addCommandHandler( "givt", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if not ( getElementModel ( Vehicle ) == 411 ) then return end if getElementData(getLocalPlayer(), "Hunt") == true then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", false) else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end )
shwaeki Posted January 23, 2014 Posted January 23, 2014 local marker = createMarker(x,y,z,'cylinder',2, 0,255, 0, 255) addEventHandler("onClientMarkerHit", marker, function(hitPlayer) if hitPlayer == localPlayer then guiSetVisible(اسم الوحة, true) showCursor(true) end end)
As7f-Nfsk Posted January 23, 2014 Author Posted January 23, 2014 ممكن تبدله بل كود لاني مش عارف بوش اعدله.
shwaeki Posted January 23, 2014 Posted January 23, 2014 استبدله بهاي bindKey ( "F2" , "down" , function() guiSetVisible(wnd, not guiGetVisible( wnd )) showCursor( not isCursorShowing( ) ) end )
#DRAGON!FIRE Posted January 23, 2014 Posted January 23, 2014 wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) local marker = createMarker ( ......... ) addEventHandler( "onClientMarkerHit", marker, function ( element ) if element == getLocalPlayer ( ) then if ( guiGetVisible ( wnd ) == false ) then guiSetVisible ( wnd, true) showCursor( true ) end end end ) addEventHandler("onClientGUIClick", getRootElement(), function ( ) if source == SsSs then triggerServerEvent( "createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if getElementData(getLocalPlayer(), "Hunt") then outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) else if isPedInVehicle(getLocalPlayer()) then if ( getElementModel ( Vehicle ) == 411 ) then outputChatBox("تم اصطياد سمكة", 0, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", true) end end end end ) addCommandHandler( "givt", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if not ( getElementModel ( Vehicle ) == 411 ) then return end if getElementData(getLocalPlayer(), "Hunt") == true then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", false) else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end ) To Contact Me at Skype : [email protected]
#DRAGON!FIRE Posted January 23, 2014 Posted January 23, 2014 حياك الله فـ اي وقت . To Contact Me at Skype : [email protected]
Recommended Posts