Jump to content

طلب كود


Recommended Posts

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

هاذ كودي

marker = createMarker(1932, 530, 60.1,"cylinder",2,255,0,111,255,getRootElement()) 
  
function teleport (hitElement) 
    setElementPosition(hitElement,1937,592,11) 
end 
        addEventHandler("onMarkerHit", marker, teleport) 

ابي منكم يا شباب تخلوه لقروب معين مو تيم

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

واذا مو من القروب تجيه رسالة انه لازم يكون من القروب

والقروب يا شباب نفس قروبات حرب العصآبات

Link to comment

اضن كذا :D

local marker = createMarker ( 1932, 530, 60.1, "cylinder", 2, 255, 0, 111, 255) 
  
function teleport (thePlayer) 
    if (getElementData(thePlayer,"Group") == "Your Group") then 
    setElementPosition(thePlayer,1937,592,11) 
        outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("لا يمكنك الانتقال",thePlayer,255,255,255,true) 
    end 
end 
    addEventHandler("onMarkerHit", marker, teleport) 

Link to comment

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

هاذ كودي

marker = createMarker(1932, 530, 60.1,"cylinder",2,255,0,111,255,getRootElement())
 
function teleport (hitElement)
    setElementPosition(hitElement,1937,592,11)
end
        addEventHandler("onMarkerHit", marker, teleport)

ابي منكم يا شباب تخلوه لقروب معين مو تيم

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

واذا مو من القروب تجيه رسالة انه لازم يكون من القروب

والقروب يا شباب نفس قروبات حرب العصآبات

قروب إسل ,, أو لوحة عصابات ؟

Link to comment
اضن كذا :D
local marker = createMarker ( 1932, 530, 60.1, "cylinder", 2, 255, 0, 111, 255) 
  
function teleport (thePlayer) 
    if (getElementData(thePlayer,"Group") == "Your Group") then 
    setElementPosition(thePlayer,1937,592,11) 
        outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("لا يمكنك الانتقال",thePlayer,255,255,255,true) 
    end 
end 
    addEventHandler("onMarkerHit", marker, teleport) 

ماتحققت لالمنت اللي لمس الماركر وش هو :/

Link to comment
اضن كذا :D
local marker = createMarker ( 1932, 530, 60.1, "cylinder", 2, 255, 0, 111, 255) 
  
function teleport (thePlayer) 
    if (getElementData(thePlayer,"Group") == "Your Group") then 
    setElementPosition(thePlayer,1937,592,11) 
        outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
    else 
        outputChatBox("لا يمكنك الانتقال",thePlayer,255,255,255,true) 
    end 
end 
    addEventHandler("onMarkerHit", marker, teleport) 

ماتحققت لالمنت اللي لمس الماركر وش هو :/

ســؤال

ليش حطيت لوكال قبل كلمة ماركر فوق؟

وش الفرق ااذا حطيت لوكال او ما حطيت

Link to comment

طيب كذا

local marker = createMarker ( 1932, 530, 60.1, "cylinder", 2, 255, 0, 111, 255 ) 
  
function teleport (thePlayer) 
    if getElementType(thePlayer) == "player" then 
        if (getElementData(thePlayer,"Group") == "Your Group") then 
            setElementPosition(thePlayer,1937,592,11) 
                outputChatBox("تم نقلك",thePlayer,255,255,255,true) 
        else 
                outputChatBox("لا يمكنك الانتقال",thePlayer,255,255,255,true) 
        end 
    end 
end 
addEventHandler("onMarkerHit", marker, teleport) 

:wink: تم التعديل

Edited by Guest
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...