Jump to content

x[ طــلــب ]x تمت الافاده


Sfa7

Recommended Posts

يعطيك العافيه تابل ذذ

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

يعني انا احدد الباب لـ اي قروب يفتح ان شالله فهمتني ذذ

Link to comment

اخوي تابل سولي مثاال ع هذا الكود بس بغيت اقولك انا سويت كذا

myGate1 = createObject ( 2990, 213.69999694824, 1875.9000244141, 13, 0, 0, 180 ) 
theMarker = createMarker ( 213.69999694824, 1875.9000244141, 13, "cylinder", 8, 0, 0, 0, 0 ) 
  
function openMyGate ( thePlayer ) 
if getElementModel(player) == 0 then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) 
    end 
end 
addEventHandler ( "onMarkerHit", theMarker, openMyGate, false ) 
  
function closeMyGate ( thePlayer ) 
if getElementModel(player) == 0 then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) 
    end 
end 
addEventHandler ( "onMarkerLeave", theMarker, closeMyGate, false ) 
  

وماضبط

+ ي ليت تسويلي طريقة اخليه يفتح لـ قروب ادمن

Link to comment

سويت كذا وماكو فايده

myGate1 = createObject ( 2990, 213.69999694824, 1875.9000244141, 13, 0, 0, 180 ) 
theMarker = createMarker ( 213.69999694824, 1875.9000244141, 13, "cylinder", 8, 0, 0, 0, 0 ) 
  
function openMyGate ( Player ) 
if getElementModel(player) == 0 then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) 
    end 
end 
addEventHandler ( "onMarkerHit", theMarker, openMyGate, false ) 
  
function closeMyGate ( Player ) 
if getElementModel(player) == 0 then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) 
    end 
end 
addEventHandler ( "onMarkerLeave", theMarker, closeMyGate, false ) 
  

Link to comment

لوول يب ضبطت ^

الحين شوف ذا صح ولا غلط

myGate1 = createObject ( 2990, 213.69999694824, 1875.9000244141, 13, 0, 0, 180 ) 
theMarker = createMarker ( 213.69999694824, 1875.9000244141, 13, "cylinder", 8, 0, 0, 0, 0 ) 
  
local accName = getAccountName(getPlayerAccount(player)) 
if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) 
    end 
end 
addEventHandler ( "onMarkerHit", theMarker, openMyGate, false ) 
  
local accName = getAccountName(getPlayerAccount(player)) 
if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) 
    end 
end 
addEventHandler ( "onMarkerLeave", theMarker, closeMyGate, false ) 
  

Link to comment
صح

بس وين راح ذا

function openMyGate ( player ) 

و ذا

function closeMyGate ( player ) 

:mrgreen::mrgreen::mrgreen:

طيب ذوول احطهم فوق

local accName = getAccountName(getPlayerAccount(player))

if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then

ولا تحته ؟

Link to comment

إذا تبيه إلى شخصية رقم 0

if getElementModel(player) == 0 then 

إذا تبيه لقروب كونسل

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

إذا تبيه لشخصية رقم 0 أو قروب كونسول

local accName = getAccountName(getPlayerAccount(player)) 
if getElementModel(player) == 0 or isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 

Link to comment
marker = createMarker( 228.08263, 1897.70776, 16.64806, "checkpoint", 1, 0, 0, 255, 255) 
  
function changeLocation(person) 
     if getElementModel(player) == 0 then 
        setElementPosition(person, 230.35773, 1913.13599, 17.64063) 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

انا قصدي زي كذا

جربت هذا الكود وماضبط

Link to comment
marker = createMarker( 228.08263, 1897.70776, 16.64806, "checkpoint", 1, 0, 0, 255, 255) 
  
function changeLocation(player) 
     if getElementModel(person) == 0 then 
     end 
        setElementPosition(person, 230.35773, 1913.13599, 17.64063) 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

ي ليت تساعدني ايند وين احطها؟

معليش تابل توني مبتدي بلبرمجه

:mrgreen:

Link to comment
marker = createMarker(228.08263, 1897.70776, 16.64806, "checkpoint", 1, 0, 0, 255, 255) 
  
function changeLocation(player) 
    if getElementModel(player) == 0 then 
        setElementPosition(player, 230.35773, 1913.13599, 17.64063) 
    end 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

Link to comment
marker = createMarker(228.08263, 1897.70776, 16.64806, "checkpoint", 1, 0, 0, 255, 255) 
  
function changeLocation(player) 
    if getElementModel(player) == 0 then 
        setElementPosition(player, 230.35773, 1913.13599, 17.64063) 
    end 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

لوول انا توني مسويها زيك بس الخطا منك مو مني تدري ليه ؟

لنك سويت كذا

setElementPosition(player

getElementModel(player)

hangeLocation(player)

انت حطيتهم كلهم بلير

وقلتلي لاتحطهم بلير ^

هنا الخطا بس يالله ماعليها كفوو ي مبدع ويعطيك العافيه

+

ادري تعبتك معي :roll:

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