Jump to content

مود اللفل سيستم


Recommended Posts

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

انا بسوي مود لفل سيستم

لكن اجتني مشكلة

سويت عند موت الاعب يعطي القاتل داتا الاكس بي

لكن ما عرفت اسوي ال guiSetVisible للفل + الاكس بي وتجدد عدد الاكس بي حسب الجدول

level = { 
     [1] = 40, 
     [2] = 80, 
     [3] = 100, 
     [4] = 120, 
     [5] = 150, 
     [6] = 180, 
     [7] = 200, 
     [8] = 230, 
     [9] = 280, 
    [10] = 300, 
    [11] = 340, 
    [12] = 370, 
    [13] = 400, 
    [14] = 430, 
    [15] = 450, 
    [16] = 480, 
    [17] = 500, 
    [18] = 550, 
    [19] = 600, 
    [20] = 700, 
    [21] = 780, 
    [21] = 900, 
    [22] = 1100, 
    [23] = 1500, 
    [24] = 2000, 
    [25] = 2500 
} 
  
local xp = math.random(15) 
  
addEventHandler( "onClientPlayerWasted", root, 
function( _, Killer ) 
    if ( Killer and Killer ~= source and getElementType( Killer ) == "player" ) then 
        setElementData(Killer,"xp",getElementData(Killer,"xp") or 0 + xp) 
  
    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...