Sfa7 Posted February 15, 2013 Share Posted February 15, 2013 (edited) تمت الافاده Edited February 17, 2013 by Guest Link to comment
==>ҭᾄlᾄl Posted February 15, 2013 Share Posted February 15, 2013 دور في المنتدى بتلقى Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 isTransferBoxActive لم افهم ذذ ماتعطينا مثال ؟ Link to comment
PaiN^ Posted February 15, 2013 Share Posted February 15, 2013 (edited) تفضل الكود -- Server : marker = createMarker ( x, y, z, "cylinder", 8, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", root, function ( player ) if ( getElementType ( player ) == "player" ) then triggerClientEvent( "Check", getRootElement( ), player ) local Car = createVehicle ( 562, x, y, z ) warpPedIntoVehicle( player, Car ) end end ) -- Client : addEvent( "Check", true ) addEventHandler( "Check", root, function ( ) local see = isTransferBoxActive( ) if( see == false ) then cancelEvent( "onMarkerHit", true ) end end ) أرجو تصحيح أي أخطاء Edited February 15, 2013 by Guest Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 اخوي الم الكود غلط لنا الماركر مايطلع اصلن Link to comment
PaiN^ Posted February 15, 2013 Share Posted February 15, 2013 لووول غلطت في وظيفة بس ما عليه عدلته, جربه اللحين Link to comment
yazan Posted February 15, 2013 Share Posted February 15, 2013 يا انت حطه كلنت يا احداث غلط مع علم احداث لزم تعمل مارك في ادتور و تكبس مرتين و تخذ الاحداث لنه احداث الادمنيه تختلف اوقت Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 اخوي الم الكود حقك يعطي حتي الي مخلصص تحميله Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 وحبيت اوضحه حاجه للاخو Yazan ترا اسمه ماركر وليسا مارك للمعلومه يا انت حطه كلنت يا احداث غلط مع علم احداث لزم تعمل مارك في ادتور و تكبس مرتين و تخذ الاحداث لنه احداث الادمنيه تختلف اوقت Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 == Server Side == Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player == source and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) marker[source] = nil end end) == Client Side == addEventHandler("onClientResourceStart",resourceRoot, function () triggerServerEvent("onCheckDownload",localPlayer) end) اطلع من السيرفر وادخل وانت مخلص التحميل بتحصل الماركر مايعطي سيارة واذا فية تحميل بيعطيك سيارة ذذ Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 شووف اخوي برستيج انا جربت الكود + طلعت ودخلت وطلع الماركر بس ماجربته لنا التحميل مو راضي يطلع خخخخ اطفي مودات واشغل التحميل مايطلع وماادري بس الماركر طلع ويمكن شغال + مشكوووري ويعطيك العافيه Link to comment
PaiN^ Posted February 15, 2013 Share Posted February 15, 2013 وش سيرفرك, أنا أخش وأجرب ذذ Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 اضمن لك الكود شغال سويتة ساعه ض/ اكيد يشتغل / = Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 النتيجه = × لووول Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) ماركر مخفي ظاهر للي عنده تحميل بس وراح يعطية الموتر ذذ Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 الميتا "Sfa7" version="2" type="script" /> سيرفر Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) function make(player) if ( player == source and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 429, -3561.47046, -3002.50342, 45.00155 ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) marker[source] = nil end end) كلنت addEventHandler("onClientResourceStart",resourceRoot, function () triggerServerEvent("onCheckDownload",localPlayer) end) Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() marker[source] = createMarker ( x,y,z,"cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[source], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 شغال بس الكل يقدر يااخذ موتر منه مو بس الي عنده تحميل Link to comment
iPrestege Posted February 15, 2013 Share Posted February 15, 2013 == Client Side == function spawn() triggerServerEvent("onCheckDownload",localPlayer) end setTimer(spawn, 100, 1) == Server Side == Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() plr = source marker[plr] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) function make(player) if ( player == plr and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, x, y, z ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[plr], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) Link to comment
Sfa7 Posted February 15, 2013 Author Share Posted February 15, 2013 Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() plr = source marker[plr] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) function make(player) if ( player == plr and getElementType (player) == "player" ) then local x,y,z = getElementPosition (player) if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, -3561.47046, -3002.50342, 45.00155 ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[plr], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) Link to comment
iPrestege Posted February 16, 2013 Share Posted February 16, 2013 Car = {} marker = {} addEventHandler("onPlayerJoin",root, function() plr = source marker[plr] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) function make(player) if ( player == plr and getElementType (player) == "player" ) then if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end Car[player] = createVehicle ( 562, -3561.47046, -3002.50342, 45.00155 ) if Car[player] then warpPedIntoVehicle(player,Car[player]) end end end addEventHandler( "onMarkerHit", marker[plr], make) end) addEventHandler("onPlayerQuit",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) addEvent("onCheckDownload",true) addEventHandler("onCheckDownload",root, function() if Car[source] then destroyElement(Car[source]) Car[source] = nil end if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end end) Link to comment
Sfa7 Posted February 16, 2013 Author Share Posted February 16, 2013 اعذرني برستيج كل الاكواد غلط انا قلت ابيه يعطي الي عنده تحميل كودك يعطي الكل ! Link to comment
iPrestege Posted February 16, 2013 Share Posted February 16, 2013 -_-" شغال الكود ذذ وجربتة مع واحد . Link to comment
Sfa7 Posted February 16, 2013 Author Share Posted February 16, 2013 -_-" شغال الكود ذذ وجربتة مع واحد . من امس نجرب انا وياك وموشغال 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