RoMaNd! Posted December 29, 2013 Share Posted December 29, 2013 السلام عليكم ورحمة الله وبركاته ابي فنكشات لاهنتو .. :> ماركر كل 10 دقايق يشتغل والـ blip كمان والاعب اذا وقف على الماركر دقيقتين تجي فلوس " كل اشوي غير اعلى حد30 الف الفلووس Link to comment
TAPL Posted December 29, 2013 Share Posted December 29, 2013 createMarker createBlipAttachedTo setTimer givePlayerMoney math.random isTimer killTimer Event: "onMarkerHit" Event: "onMarkerLeave" Link to comment
RoMaNd! Posted December 29, 2013 Author Share Posted December 29, 2013 طيب وش الي اخذه ووش الي اخليه ^^ Link to comment
RoMaNd! Posted December 29, 2013 Author Share Posted December 29, 2013 كلهم اسستخدمهم !!! عارف بس وش اسوي اذا دخلت !,, فحطت هناكك لين شبعت Link to comment
AboShanab Posted December 29, 2013 Share Posted December 29, 2013 -- # Server Side ! local Timer = { } local marker = createMarker ( ....... ) addEventHandler("onMarkerHit",marker,function ( element ) if ( getElementType( element ) == "player" and not isPedInVehicle( element ) ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end Timer[element] = setTimer(givePlayerMoney,1000,0,element,math.random(100,500)) end end) addEventHandler("onMarkerLeave",marker,function ( element ) if ( getElementType( element ) == "player" ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end end end) جرب ورد لي خبر ! Link to comment
TAPL Posted December 31, 2013 Share Posted December 31, 2013 وش الي مو شغال فيه + /debugscript 3 Link to comment
EH10 Posted December 31, 2013 Share Posted December 31, 2013 (edited) جرب .. ورد .. خـبـر .. local Timer = { } local marker = createMarker ( ................. ) function Hit( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end Timer = setTimer(givePlayerMoney,99000,0,element,math.random(400,500)) end end addEventHandler( "onMarkerHit", marker, Hit ) function Leave( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end end end addEventHandler( "onMarkerLeave", marker, Leave ) Edited December 31, 2013 by Guest Link to comment
TAPL Posted December 31, 2013 Share Posted December 31, 2013 ^^ The source of this event is the marker that got hit by the element. Link to comment
AboShanab Posted January 1, 2014 Share Posted January 1, 2014 جرب .. ورد .. خـبـر .. local Timer = { } local marker = createMarker ( ................. ) function Hit( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end Timer = setTimer(givePlayerMoney,99000,0,element,math.random(400,500)) end end addEventHandler( "onMarkerHit", marker, Hit ) function Leave( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end end end addEventHandler( "onMarkerLeave", marker, Leave ) مدري وش اللي غيرت الا خربته انت Link to comment
EH10 Posted January 2, 2014 Share Posted January 2, 2014 جرب .. ورد .. خـبـر .. local Timer = { } local marker = createMarker ( ................. ) function Hit( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end Timer = setTimer(givePlayerMoney,99000,0,element,math.random(400,500)) end end addEventHandler( "onMarkerHit", marker, Hit ) function Leave( element ) if ( getElementType( element ) == "player" ) then if isTimer ( Timer[element] ) then killTimer ( Timer[element] ) end end end addEventHandler( "onMarkerLeave", marker, Leave ) مدري وش اللي غيرت الا خربته انت طيب هو قال كودك مو شغال انا بساعده وحتى لو اساعده بتطور خبرتي ولما اسوي يمكن اعرف شي افهم ياحبي واصلن ماعدلت على كودك Link to comment
AboShanab Posted January 2, 2014 Share Posted January 2, 2014 نصيحتي لك دام ما عندك خبرة لا تساعد Link to comment
EH10 Posted January 2, 2014 Share Posted January 2, 2014 نصيحتي لك دام ما عندك خبرة لا تساعد نصيحة لو كودك خطا لاترد ثاني مره Link to comment
RoMaNd! Posted January 2, 2014 Author Share Posted January 2, 2014 نصيحتي لك دام ما عندك خبرة لا تساعد نصيحة لو كودك خطا لاترد ثاني مره ي شيخ ليش ماتسوي كود تالي تتفلسف دامك سارق صورة بريستيج ... كل شي خربطة Link to comment
#DRAGON!FIRE Posted January 2, 2014 Share Posted January 2, 2014 الكود حق ابو شنب , اشتغل ؟ ولو ما اشتغل debugscript 3 Link to comment
aL.Kfo Posted January 3, 2014 Share Posted January 3, 2014 الكـود تبع ابو شنب اششوفةة شغال بـس مو نفـس طلب الرجأل ب الضبط الكـود ذأ بدون بلب و الفلوس تجي اول م تخش الماركر ع طول هـو كاتب كل دقيقتين Link to comment
The Killer Posted January 3, 2014 Share Posted January 3, 2014 ابو شنب ناقصك createBlipAttachedTo + التايمر انت مسويه ثانيه وهو يبيه دقيقتين ! صاحب الطلب جرب ! -- # Server Side ! local Timer = { } local marker = createMarker ( ....... ) createBlipAttachedTo(mrker, 21) addEventHandler("onMarkerHit",marker,function ( element ) if ( getElementType( element ) == "player" and not isPedInVehicle( element ) ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end Timer[element] = setTimer(givePlayerMoney,120000,0,element,math.random(100,500)) end end) addEventHandler("onMarkerLeave",marker,function ( element ) if ( getElementType( element ) == "player" ) then if ( isTimer(Timer[element]) ) then killTimer(Timer[element]) end end end) Link to comment
TAPL Posted January 3, 2014 Share Posted January 3, 2014 -- # Server Side ! local Timer = {} local marker = createMarker(...) createBlipAttachedTo(mrker, 21) addEventHandler("onMarkerHit", marker, function(element) if (getElementType(element) == "player" and not isPedInVehicle(element)) then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end Timer[element] = setTimer(function(element) if isElement(element) then givePlayerMoney(element, math.random(30000)) else killTimer(Timer[element]) Timer[element] = nil end 120000, 0, element) end end) addEventHandler("onMarkerLeave", marker, function(element) if (getElementType(element) == "player") then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end end end) Link to comment
RoMaNd! Posted January 3, 2014 Author Share Posted January 3, 2014 اشتغل معي الماركر بس Link to comment
#DRAGON!FIRE Posted January 3, 2014 Share Posted January 3, 2014 Server Side ! local Timer = {} local marker = createMarker(...) createBlipAttachedTo(marker, 21) addEventHandler("onMarkerHit", marker, function(element) if (getElementType(element) == "player" and not isPedInVehicle(element)) then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end Timer[element] = setTimer(function(element) if isElement(element) then givePlayerMoney(element, math.random(30000)) else killTimer(Timer[element]) Timer[element] = nil end 120000, 0, element) end end) addEventHandler("onMarkerLeave", marker, function(element) if (getElementType(element) == "player") then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end end end) # ولأ تنسى بـ سطر 2 تبدل الماركر بـ كل الارقمنات , Link to comment
TAPL Posted January 3, 2014 Share Posted January 3, 2014 اشتغل معي الماركر بس marker غيرها إلى mrker في سطر 4 في خطأ كلمة Link to comment
RoMaNd! Posted January 3, 2014 Author Share Posted January 3, 2014 local Timer = {50000} local marker = createMarker(727.57281,-1276.31909,14.9999,"arrow",2,255,0,0,155) createBlipAttachedTo(marker, 21) addEventHandler("onMarkerHit", marker, function(element) if (getElementType(element) == "player" and not isPedInVehicle(element)) then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end Timer[element] = setTimer(function(element) if isElement(element) then givePlayerMoney(element, math.random(30000)) else killTimer(Timer[element]) Timer[element] = nil end 120000, 0, element) end end) addEventHandler("onMarkerLeave", marker, function(element) if (getElementType(element) == "player") then if isTimer(Timer[element]) then killTimer(Timer[element]) Timer[element] = nil end end end) ماضبط Link to comment
RoMaNd! Posted January 3, 2014 Author Share Posted January 3, 2014 اصلا مدري وش فيه مايجي مع المودات !,, Link to comment
The Killer Posted January 4, 2014 Share Posted January 4, 2014 مايجي في المودات 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