Jump to content

مساعدة


ryan112

Recommended Posts

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

tor_avgate = createObject(16773, 1078.0999755859, 1251.0999755859, 12.60000038147, 0 ,0,90)
tor_s_avgate = "zu"


addCommandHandler("kog1", function (Player ) 
if getPlayerTeam (Player) == getTeamFromName ("King of Ghosts") then

       moveObject(tor_avgate, 2500, 1078.0999755859, 1251.0999755859, 5.4000000953674)
       tor_s_avgate = "auf"
 else
       moveObject(tor_avgate, 2500, 1078.1999511719, 1254.6999511719, 12.60000038147)
       tor_s_avgate = "zu"
end
end)

انا اريد تغتح بتيم وتغلق بتيم بكلمة وحدا

Edited by ryan112
Link to comment
tor_avgate = createObject(16773, 1078.0999755859, 1251.0999755859, 12.60000038147, 0 ,0,90)
tor_s_avgate = "zu"


addCommandHandler("kog1", function (Player ) 
if getPlayerTeam (Player) ~= getTeamFromName ("King of Ghosts") then return end
if tor_s_avgate == "zu" then
       moveObject(tor_avgate, 2500, 1078.0999755859, 1251.0999755859, 5.4000000953674)
       tor_s_avgate = "auf"
 else
       moveObject(tor_avgate, 2500, 1078.1999511719, 1254.6999511719, 12.60000038147)
       tor_s_avgate = "zu"
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...