Jump to content

طلب كود


Recommended Posts

Posted

السلام عليكم

طلب فنكشات

اذا كتبت باف8 كلمة وتجي الوظيفة واذا كتبت الكلمة مره ثانية ماتشتغل الكلمة الى بعد 6 ثواني

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted
addCommandHandler 
setTimer 

ممكن تصححيح

addCommandHandler("yfay", 
Stynofer = function () 
    local x, y, z = getElementPosition( playerSource ) 
    createMarker(..........) 
  end 
) 
  
setTimer( Stynofer, 1000, 2 ) 

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted

الي مافهم طلبي يعني

مثلا كتبت كلمة باف8 سياره تجيك السياره واذا كتبت مره ثانيه ماتجيك سياره ثانية الى بعد 2 ثانية يعني يمديك بعد 2 ثانية تكتب وتجيك

باختصار

ابي اذا كتبت كلمة ووصلتك الوظيفة ماتقدر تكتب باف8 ثاني مره وتخرج الوظيفة الى بعد 2 ثانية

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted
function allow() 
    i = 1 
end 
  
function alw7sh() 
    if i == 1 then 
        i = 0 
        setTimer(allow, 1000, 1) 
    end 
end 

Posted
work = false 
addCommandHandler ("car", 
 function (player) 
  if work == true then 
  return outputChatBox ("Wait 2 sec please", player, 255, 0, 0) 
  end 
  local x,y,z = getElementPosition (player) 
  local vehicle = createVehicle (411, x+2,y,z+2) 
  work = true 
  setTimer (function () work = false end, 2000, 1) 
 end 
) 

Posted

-- Server Side # 
local Timer = {} 
local vehicle = {} 
  
addCommandHandler('car',function(plr) 
    if not isTimer(Timer[plr]) then 
        if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end 
            vehicle[plr] = createVehicle(id,x,y,z) 
                Timer[plr] = setTimer(function() end,2000,1,plr) 
        end 
    end 
) 

Sha67 سابقاً

Posted
-- Server Side # 
local Timer = {} 
local vehicle = {} 
  
addCommandHandler('car',function(plr) 
    if not isTimer(Timer[plr]) then 
        if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end 
            vehicle[plr] = createVehicle(id,x,y,z) 
                Timer[plr] = setTimer(function() end,2000,1,plr) 
        end 
    end 
) 

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted
حبيبي كودي شغال -__-"

والله جربتة

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted
حبيبي كودي شغال -__-"

والله جربتة

تبي كل شي جاهز ؟

كيف تبي تتعلم تبرمج ؟

انا وريتك الطريقه

وانت سو لاتعتمد ع الجاهز

function allow() 
    i = 1 
end 
  
function alw7sh() 
    if i == 1 then 
        i = 0 
        setTimer(allow, 1000, 1) 
    end 
end 

Posted (edited)

حبيبي الكود شغال ما يحتاج تجريب ,

انا حطيت لك ثانيتين تقدر تعدل ,وبعدين ترا الثانيتين قصيره يعني تسوي السياره الاولى على طول تقدر تسوي مره ثانيه لأن ثانيتين قصيره جدآ

Edited by Guest

Sha67 سابقاً

Posted
حبيبي كودي شغال -__-"

والله جربتة

تبي كل شي جاهز ؟

كيف تبي تتعلم تبرمج ؟

انا وريتك الطريقه

وانت سو لاتعتمد ع الجاهز

function allow() 
    i = 1 
end 
  
function alw7sh() 
    if i == 1 then 
        i = 0 
        setTimer(allow, 1000, 1) 
    end 
end 

:cry::cry: انا ماطلب كثير حرام وش سويت لك :cry::cry::cry::cry:

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted
-- Server Side # 
local Timer = {} 
local vehicle = {} 
  
addCommandHandler('car',function(plr) 
    if not isTimer(Timer[plr]) then 
        if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end 
            vehicle[plr] = createVehicle(id,x,y,z) 
                Timer[plr] = setTimer(function() end,6000,1,plr) 
        end 
    end 
) 

Sha67 سابقاً

Posted
حطيت الايدي والاحداثيات؟

انعم

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

Posted

local Timer = {} 
local vehicle = {} 
  
addCommandHandler('car',function(plr) 
    if not isTimer(Timer[plr]) then 
        if isElement(vehicle[plr]) then destroyElement(vehicle[plr]) vehicle[plr] = nil end 
            vehicle[plr] = createVehicle(411,898.21223411234,1843.13597421,38921.23987321) 
                Timer[plr] = setTimer(function() end,6000,1,plr) 
        end 
    end 
) 

Old Nick : MaxUr

,

#Skype : maxurmaxur

BBM : 577287FC

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...