Jump to content

تعديل كود


Recommended Posts

Posted
  
  
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

عدلت عليه وحاولت كم محاولة

اخليه بزر التاب

لكن يجي اخطاء يليت احد يعدل لي

Posted
  
  
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 ) 

Posted

حط ذا الكود كلنت

bindKey( 'tab', 'down', 'aaa' ) 

اذا ماصلح

bindKey( 'tab', 'down', 'aaa', localPlayer ) 

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted

حطيت زي ماقال عاشق الشرق في الكلينت ومشى معي واشتغل

ولا فيه خطا :mrgreen::mrgreen:

ثانيكو للجميع

بس ابغى اذا ضغط التاب ماتشتغل الوظيفة لين يكون معه سلاح

m4

يعني يكون السلاح ظاهر

ويضغط تاب ويتحرك الاوبجكت

Posted

مشكور الكوبرا

طيب ابغى اذا دخل الكول شيب

يعطيه سلاح مثلن

m4

ومايقدر يغير السلاح

دامة جوا الكول شيب

يعني يعطية ويصير يقدر يقاتل بالرشاش

m4

فقط

Posted

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 
) 
Posted
  
  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 
) 

كفوووو بس

اذا طلعت من الكول شيب ماينسحب

وتبقى نفس الحركة اللي جوا الكول شيب

Posted
  
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 
) 

Posted
  
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 : لتواصل سكايب

Posted

, ادري يا عاشق

انا حبيت اسويها كذا

اذا هو يبي يسويها بطريقتك خلها يسويها

انا سويتها كذا

Edit #

abu-waled

حياك الله

Posted

      
    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 
    ) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...