As7f-Nfsk Posted January 23, 2014 Share Posted January 23, 2014 يروح يوخد وظيفه يكون في ماركر وبلب بس يوخد وظيفهً يعطيً شخصيه وقاربً واذا كتب بأف ٨ سمك يؤخذ 4 آلاف Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 (edited) لو ما اشتغل .. ما نقدر نساعدك اكثر من كذا 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 ) Server Side ! local vehicle = {} local ID = -- ايدي السيارة local x, y, z = -- احداثيات السيارة addEvent( "createTheVehicle", true ) addEventHandler( "createTheVehicle", root, function ( ) if ( isElement ( vehicle[source] ) ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle(ID, x, y, z) if ( vehicle[source] ) then warpPedIntoVehicle ( source, vehicle[source] ) end end ) addEvent ("giveMoney", true) addEventHandler("giveMoney", root, function ( ) givePlayerMoney( source, 40 ) end ) Edited January 23, 2014 by Guest Link to comment
As7f-Nfsk Posted January 23, 2014 Author Share Posted January 23, 2014 مو نفس الي ابيه Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 (edited) مو نفس الي ابيه createMarker createBlip #Event : 'onMarkerHit' setElementModel createVehicle warpPedIntoVehicle setElementData getElementData addCommandHandler givePlayerMoney Edited January 23, 2014 by Guest Link to comment
αвυ-wαleed Posted January 23, 2014 Share Posted January 23, 2014 حاول تراها سهلة مرة وانا بساعدك Link to comment
As7f-Nfsk Posted January 23, 2014 Author Share Posted January 23, 2014 لو ما اشتغل .. ما نقدر نساعدك اكثر من كذا 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 ) Server Side ! local vehicle = {} local ID = -- ايدي السيارة local x, y, z = -- احداثيات السيارة addEvent( "createTheVehicle", true ) addEventHandler( "createTheVehicle", root, function ( ) if ( isElement ( vehicle[source] ) ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle(ID, x, y, z) if ( vehicle[source] ) then warpPedIntoVehicle ( source, vehicle[source] ) end end ) addEvent ("giveMoney", true) addEventHandler("giveMoney", root, function ( ) givePlayerMoney( source, 40 ) end ) ذا مود كامل ؟ Link to comment
As7f-Nfsk Posted January 23, 2014 Author Share Posted January 23, 2014 طيب سوال ينفع أحط ماركر + بلب ب ملف واحد ؟ Link to comment
#DRAGON!FIRE Posted January 23, 2014 Share Posted January 23, 2014 طيب سوال ينفع أحط ماركر + بلب ب ملف واحد ؟ تقدر .. Link to comment
Recommended Posts