Jump to content

طلب


Recommended Posts

function cl2(player,cmd)
  local accName = getAccountName ( getPlayerAccount ( player ) )
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then

الحين بعد then

ابي الرتبه اللي سويتها هي اللي تفتح الباب المتحرك بزر

وش اكتب بعد then???

 

Link to comment

function cl2(player,cmd)
  local accName = getAccountName ( getPlayerAccount ( player ) )
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then
        moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853  ) 
    end
end
bindKey ( source, "f1","down",cl2)

 

صح؟؟

 

Link to comment
9 hours ago, A7MEDENO said:

function cl2(player,cmd)
  local accName = getAccountName ( getPlayerAccount ( player ) )
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then
        moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853  ) 
    end
end
bindKey ( source, "f1","down",cl2)

 

صح؟؟

 

السورس ماهو معرف

Link to comment
1 minute ago, Killer Project said:

تقدر تسويها زي ما انت مسويها لكن سوي لوب يجيب اللاعبين وحط كود الزر في داخل اللوب


لاهنت انا مبتدأ برمجه

وش هو اللوب ضض؟؟

 

Link to comment
function move(player,key)
  local accName = getAccountName ( getPlayerAccount ( player ) )
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then
        moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853  ) 
    end
end
bindKey(player,"J","down",move)

 

Edited by #BrosS
Link to comment
9 hours ago, A7MEDENO said:

الى الان لم تتم افادتي

 

انا مسوي باب متحرك

ابي زر يفتح الباب

واللي يقدر يفتحه رتبه معينه انا احددها؟؟؟

 

 



 

yourObject = createObject ( ... )

function MoveObject1 ( )

moveObject ( yourObject, ... )

end

function MoveObject2 ( player )

-- if كود التحقق اللي تبيه then

MoveObject1 ( )

-- end

end

for id, player in ipairs(getElementsByType("player")) do

bindKey ( player, "F1", "down", MoveObject2 )

end

 

9 hours ago, #BrosS said:

function move(player,key)
  local accName = getAccountName ( getPlayerAccount ( player ) )
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Police" ) ) then
        moveObject (gate, 5000, 1542.900390625,-1627.599609375,14.89999961853  ) 
    end
end
bindKey(player,"J","down",move)

 


player ماهي معرفة

Link to comment
2 minutes ago, Killer Project said:



 


yourObject = createObject ( ... )

function MoveObject1 ( )

moveObject ( yourObject, ... )

end

function MoveObject2 ( player )

-- if كود التحقق اللي تبيه then

MoveObject1 ( )

-- end

end

for id, player in ipairs(getElementsByType("player")) do

bindKey ( player, "F1", "down", MoveObject2 )

end

 


player ماهي معرفة

البس نظارات يا اخي ض

function move(player,key)

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