Jump to content

مساعدة في كود


Recommended Posts

السلام عليكم و رحمة الله و بركاته

عملت تايمر 5 ثواني بعدين المهمة تقفل

لاكن الفريز مش بيتشال من علي اللاعبين الي في المهمة

كودي

addEvent("RunData",true)
addEventHandler("RunData",root,
function ()
setElementData(racegate,"satus",false)
setElementData(rungate,"satus",true)
OutPut(" [  Run Mission ] تم افتتاح مهمة",root,255,255,0,true)
setTimer(
function()
    OutPut("[ Run Mission ] تم بدا مهمة",root,255,0,0,true)
	setElementData (rungate,"satus",false)
	local players = getElementsByType("player")
for k,v in ipairs(players) do
if getElementDimension(v,69) then
setElementFrozen(v,false)

end, 5000, 1)
end
end
end
)

 

Edited by MR.NaiF-MTA
Link to comment
addEvent("RunData",true)
addEventHandler("RunData",root,
function ()
setElementData(racegate,"satus",false)
setElementData(rungate,"satus",true)
OutPut(" [  Run Mission ] تم افتتاح مهمة",root,255,255,0,true)
setTimer(
function()
    OutPut("[ Run Mission ] تم بدا مهمة",root,255,0,0,true)
	setElementData (rungate,"satus",false)
		
end, 5000, 1)
local players = getElementsByType("player")
	for k,v in ipairs(players) do
	if ( getElementDimension ( v ) == 6 ) then 
	setElementFrozen(v,false)
end
end
end

)

ما اشتغل

Link to comment

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