EH10 Posted January 21, 2014 Author Share Posted January 21, 2014 مشكور ضبط بس انا ابي سياره محدده Link to comment
#DRAGON!FIRE Posted January 21, 2014 Share Posted January 21, 2014 مشكور ضبط بس انا ابي سياره محدده ايدي السيارة ذذ,, ID طيب هذي سيارة محددة .. حط مكان الـ Link to comment
K1NG Posted January 21, 2014 Share Posted January 21, 2014 مشكور ضبط بس انا ابي سياره محدده getElementModel Link to comment
#DRAGON!FIRE Posted January 21, 2014 Share Posted January 21, 2014 الحين فهمتك .. تقصد انه ما يقدر يصيد الا بسيار محددة مو اي سيار ؟ Link to comment
EH10 Posted January 21, 2014 Author Share Posted January 21, 2014 وين اضيف الكود هاذا if ( getElementModel ( source ) == 411 ) then Link to comment
#DRAGON!FIRE Posted January 21, 2014 Share Posted January 21, 2014 وين اضيف الكود هاذا if ( getElementModel ( source ) == 411 ) then Client Side ! 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 ) 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