αвυ-wαleed Posted April 12, 2014 Posted April 12, 2014 local gate = createObject ( 3095, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) local marker2 = createMarker ( 2969.291015625,-700.45721435547,2.100, 'cylinder', 2, 255, 0, 0 ) Timer = { } addCommandHandler ( 'aaa', function ( player ) if isElementWithinMarker ( player,marker2 ) then if not isPedInVehicle ( player ) then if not isTimer ( Timer [player] ) then setElementFrozen ( player,true ) Timer [player] = setTimer ( function ( player ) setElementFrozen ( player,false ) givePlayerMoney ( player,10000 ) moveObject ( gate, 10000, 2970.1999511719, -691, 687.20001220703, 0, 0, 0 ) setTimer ( moveObject,40000,1,gate, 10000, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) triggerClientEvent ( player,'onShowMoney',player ) end,10000,1,player ) end end end end ) يتحرك الاوبجكت بكلمة aaa عدلت عليه وحاولت كم محاولة اخليه بزر التاب لكن يجي اخطاء يليت احد يعدل لي
ALw7sH Posted April 12, 2014 Posted April 12, 2014 local gate = createObject ( 3095, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) local marker2 = createMarker ( 2969.291015625,-700.45721435547,2.100, 'cylinder', 2, 255, 0, 0 ) Timer = { } function ALw7sH () bindKey ( source, "tab", "down", function ( player ) if isElementWithinMarker ( player,marker2 ) then if not isPedInVehicle ( player ) then if not isTimer ( Timer [player] ) then setElementFrozen ( player,true ) Timer [player] = setTimer ( function ( player ) setElementFrozen ( player,false ) givePlayerMoney ( player,10000 ) moveObject ( gate, 10000, 2970.1999511719, -691, 687.20001220703, 0, 0, 0 ) setTimer ( moveObject,40000,1,gate, 10000, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) triggerClientEvent ( player,'onShowMoney',player ) end,10000,1,player ) end end end end ) end addEventHandler ( "onResourceStart", resourceRoot, ALw7sH )
1REDBULL Posted April 12, 2014 Posted April 12, 2014 bindKey ( source, "tab", "down", جرب ذا انت حاط انك تكتب كلمه في اف 8 Level in Scripting : 10% Level in MTA : 100%
abu5lf Posted April 13, 2014 Posted April 13, 2014 حط ذا الكود كلنت bindKey( 'tab', 'down', 'aaa' ) اذا ماصلح bindKey( 'tab', 'down', 'aaa', localPlayer ) ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
The Killer Posted April 13, 2014 Posted April 13, 2014 (edited) .... Sorry Edited April 13, 2014 by Guest
αвυ-wαleed Posted April 13, 2014 Author Posted April 13, 2014 حطيت زي ماقال عاشق الشرق في الكلينت ومشى معي واشتغل ولا فيه خطا ثانيكو للجميع بس ابغى اذا ضغط التاب ماتشتغل الوظيفة لين يكون معه سلاح m4 يعني يكون السلاح ظاهر ويضغط تاب ويتحرك الاوبجكت
αвυ-wαleed Posted April 13, 2014 Author Posted April 13, 2014 مشكور الكوبرا طيب ابغى اذا دخل الكول شيب يعطيه سلاح مثلن m4 ومايقدر يغير السلاح دامة جوا الكول شيب يعني يعطية ويصير يقدر يقاتل بالرشاش m4 فقط
The Killer Posted April 13, 2014 Posted April 13, 2014 local timer = { } addEventHandler ("onColShapeHit", colName, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end )
αвυ-wαleed Posted April 13, 2014 Author Posted April 13, 2014 createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) كفوووو بس اذا طلعت من الكول شيب ماينسحب وتبقى نفس الحركة اللي جوا الكول شيب
The Killer Posted April 13, 2014 Posted April 13, 2014 createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) addEventHandler ("onColShapeLeave", abu, function (player) if isTimer (timer [player]) then killTimer (timer [player]) timer [player] = nil end end )
abu5lf Posted April 13, 2014 Posted April 13, 2014 createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) addEventHandler ("onColShapeLeave", abu, function (player) if isTimer (timer [player]) then killTimer (timer [player]) timer [player] = nil end end ) toggleControl 'next_weapon' -- Switch to the next weapon 'previous_weapon' -- Switch to the previous weapon ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
The Killer Posted April 13, 2014 Posted April 13, 2014 , ادري يا عاشق انا حبيت اسويها كذا اذا هو يبي يسويها بطريقتك خلها يسويها انا سويتها كذا Edit # abu-waled حياك الله
αвυ-wαleed Posted April 13, 2014 Author Posted April 13, 2014 طيب ابغاه يسحب السلاح اذا طلع من الكول شيب takeWeapon( Player, 31 ) وين احطها
The Killer Posted April 13, 2014 Posted April 13, 2014 createRadarArea ( -590, -207, 175, 180, 0, 255, 252, 150 ) abu = createColRectangle ( -590, -207, 175, 180) local timer = { } addEventHandler ("onColShapeHit", abu, function (player) if isTimer (timer[player]) then killTimer (timer[player]) timer [player] = nil end if getElementType (player) == "player" then giveWeapon (player, 31, 5000, true) timer [player] = setTimer (function () giveWeapon (player, 31, 0, true) end, 50, 0) end end ) addEventHandler ("onColShapeLeave", abu, function (player) if isTimer (timer [player]) then killTimer (timer [player]) timer [player] = nil end takeWeapon (player, 31) end )
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