Jump to content

=|مساعدة في مود اللفل|=


Doffy

Recommended Posts

Just now, iMr.WiFi..! said:

عند مود اللفل

دور عن حدث

لما ياخذ لفل جديد

وحط الديي اكس حقك

وسويله تايمر

طيب هذا هو اول ما يجيب لفل
ٍسيرفر

if getPlayerAccount(plr) and not isGuestAccount(getPlayerAccount(plr)) then
setAccountData (getPlayerAccount(plr),"Level",v[1])
setAccountData (getPlayerAccount(plr),"exp",0)
setAccountData (getPlayerAccount(plr),"nexp",v[2])
triggerClientEvent("levelup",plr)


ومسوي ترايقر للكلنت وابي الرسالة تجيله لمدة 3 ثواني وتختفي
كلنت

addEvent("levelup",true)
addEventHandler("levelup",localPlayer,
function()
playSound ("Levelup.mp3")
exports["TopBarChat"]:sendClientMessage ("#FF0000*#FFFF00Congratulations Your Level is up ",255, 50, 0,true,5)
end)

 

وهذي الدي اكس
 

addEventHandler("onClientRender", root,
    function()
        dxDrawText("*Your Level is UP", 258 - 1, 336 - 1, 774 - 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 + 1, 336 - 1, 774 + 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 - 1, 336 + 1, 774 - 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 + 1, 336 + 1, 774 + 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258, 336, 774, 412, tocolor(255, 255, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
    end
)

 

Link to comment
1 minute ago, iMr.WiFi..! said:

حط هذا الفنكشن في المود في الكلينت :
 


messagelevelup = setTimer(function ()
    	-- حط كود الدي اكس هنا
  end,3000,1)
addEventHandler("onClientRender",root,messagelevelup)
  

وامسح السطر الخامس وبدله بهذا


messagelevelup()

 

شكرا يخوي دقيقة اجرب

Link to comment
39 minutes ago, KinG_Himoo12 said:

شكرا يخوي دقيقة اجرب

افضل طريقه لك يقلبي هي هذي

addEvent("levelup",true)
addEventHandler("levelup",localPlayer,
function()
playSound ("Levelup.mp3")
    addEventHandler("onClientRender", root,masteredit)
setTimer(function()
            removeEventHandler("onClientRender", root,masteredit)

        end,1000*7,1)
end)
    function masteredit()
        dxDrawText("*Your Level is UP", 258 - 1, 336 - 1, 774 - 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 + 1, 336 - 1, 774 + 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 - 1, 336 + 1, 774 - 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258 + 1, 336 + 1, 774 + 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
        dxDrawText("*Your Level is UP", 258, 336, 774, 412, tocolor(255, 255, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
    end

 

  • Like 1
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...