Jump to content

تعديل


xMr.SAAD

Recommended Posts

السلام عليكم

شباب مشكله كود

انا حاطه يوم يرسبن عالم يثبت كل ما انتحر يرجع

بس معي مشكله هي

انا حاط يرسبن مكان 2

يوم يضغظ زر 2

يضغظ زر 1

يجي نفس مكان ما يتغير

مثال

انا رسبنت في النخيل

يوم اموت روح هناك

طيب ضغظ زر ثاني

صرت بدايه

يوم يموت يرجع نخيل ><

ابي حل

addEventHandler('onClientGUIClick',K,function()

if not getElementData(resourceRoot,'Respawn') then setElementData(resourceRoot,'Respawn',true) end

setElementPosition(localPlayer,-3971.4719238281,-3001.4482421875,85.429931640625)

end,false

)

addEventHandler('onClientPlayerSpawn',localPlayer,function()

if getElementData(resourceRoot,'Respawnn') == true then

setElementPosition(localPlayer,-3971.4719238281,-3001.4482421875,85.429931640625)

end

end

)

addEventHandler('onClientGUIClick',B,function()

if not getElementData(resourceRoot,'Respawnn') then setElementData(resourceRoot,'Respawnn',true) end

setElementPosition(localPlayer,306.20425415039,-2039.3254394531,45.436496734619)

end,false

)

addEventHandler('onClientPlayerSpawn',localPlayer,function()

if getElementData(resourceRoot,'Respawnn') == true then

setElementPosition(localPlayer,306.20425415039,-2039.3254394531,45.436496734619)

end

end

)

Link to comment

انا

يوم اضغظ زر 1 في مود

يرسبن نخيل

يوم انتحر يرجع نخيل

يوم اضغظ زر 2 في مود

يرسبن في بدايه

يوم اموت يرجع نخيل

مفروض يقعد يرسبن في بدايه ><

انشاللهة فهمت

Link to comment
انا

يوم اضغظ زر 1 في مود

يرسبن نخيل

يوم انتحر يرجع نخيل

يوم اضغظ زر 2 في مود

يرسبن في بدايه

يوم اموت يرجع نخيل

مفروض يقعد يرسبن في بدايه ><

انشاللهة فهمت

يعني تبيه لو ضغط زر 1 او 2 .. وقت يموت يترسبن فـ البداية ؟

Link to comment

-- Client Side # 
addEventHandler('onClientGUIClick',root,function() 
    if source == K then 
        if not getElementData(resourceRoot,'Respawn') then setElementData(resourceRoot,'Respawn',true) end 
            setElementPosition(localPlayer,-3971.4719238281,-3001.4482421875,85.429931640625) 
    elseif source == Button2 then 
        if not getElementData(resourceRoot,'Respawn2') then setElementData(resourceRoot,'Respawn2',true) end 
            setElementPosition(localPlayer,x,y,z) 
        end 
    end 
) 
  
addEventHandler('onClientPlayerSpawn',localPlayer,function() 
    if getElementData(resourceRoot,'Respawn') == true then 
        setElementPosition(localPlayer,-3971.4719238281,-3001.4482421875,85.429931640625) 
    elseif getElementData(resourceRoot,'Respawn2') == true then 
        setElementPosition(localPlayer,x,y,z) 
        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...