Jump to content

Search the Community

Showing results for tags 'rank'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. Good afternoon team, excuse me, my question is How can I create Teams for the next level system? example for rank 0 to rank 10, beginner, etc, i thank you in advance. addEventHandler("onElementDataChange",root, function() if getElementType(source) == "player" then local zombiekills = getAccountData(getPlayerAccount(source) ,"Zombie kills") or 0 if (zombiekills >= 0) and (zombiekills <= 10) then setElementData(source,"Rango","Rank/1.png") elseif (zombiekills >= 11) and (zombiekills <= 99) then setElementData(source,"Rango","Rank/2.png") elseif (zombiekills >= 100) and (zombiekills <= 299) then setElementData(source,"Rango","Rank/3.png") elseif (zombiekills >= 300) and (zombiekills <= 499) then setElementData(source,"Rango","Rank/4.png") elseif (zombiekills >= 500) and (zombiekills <= 699) then setElementData(source,"Rango","Rank/5.png") elseif (zombiekills >= 700) and (zombiekills <= 1299) then setElementData(source,"Rango","Rank/6.png") elseif (zombiekills >= 1300) and (zombiekills <= 1699) then setElementData(source,"Rango","Rank/7.png") elseif (zombiekills >= 1700) and (zombiekills <= 2099) then setElementData(source,"Rango","Rank/8.png") elseif (zombiekills >= 2100) and (zombiekills <= 4699) then setElementData(source,"Rango","Rank/9.png") elseif (zombiekills >= 4700) and (zombiekills <= 5399) then setElementData(source,"Rango","Rank/10.png") elseif (zombiekills >= 5400) and (zombiekills <= 6399) then setElementData(source,"Rango","Rank/11.png") elseif (zombiekills >= 6400) and (zombiekills <= 7399) then setElementData(source,"Rango","Rank/12.png") elseif (zombiekills >= 7400) and (zombiekills <= 8399) then setElementData(source,"Rango","Rank/13.png") elseif (zombiekills >= 8400) and (zombiekills <= 9399) then setElementData(source,"Rango","Rank/14.png") elseif (zombiekills >= 9400) and (zombiekills <= 10399) then setElementData(source,"Rango","Rank/15.png") elseif (zombiekills >= 10400) and (zombiekills <= 11399) then setElementData(source,"Rango","Rank/16.png") elseif (zombiekills >= 11400) and (zombiekills <= 13399) then setElementData(source,"Rango","Rank/17.png") elseif (zombiekills >= 13400) and (zombiekills <= 14399) then setElementData(source,"Rango","Rank/18.png") elseif (zombiekills >= 14400) and (zombiekills <= 15399) then setElementData(source,"Rango","Rank/19.png") elseif (zombiekills >= 15400) and (zombiekills <= 16399) then setElementData(source,"Rango","Rank/20.png") elseif (zombiekills >= 16400) and (zombiekills <= 17399) then setElementData(source,"Rango","Rank/21.png") elseif (zombiekills >= 17400) and (zombiekills <= 18399) then setElementData(source,"Rango","Rank/22.png") elseif (zombiekills >= 18400) and (zombiekills <= 18999) then setElementData(source,"Rango","Rank/23.png") elseif (zombiekills >= 19400) and (zombiekills <= 20399) then setElementData(source,"Rango","Rank/24.png") elseif (zombiekills >= 20400) and (zombiekills <= 20999) then setElementData(source,"Rango","Rank/25.png") elseif (zombiekills >= 21000) and (zombiekills <= 22999) then setElementData(source,"Rango","Rank/26.png") elseif (zombiekills >= 23000) and (zombiekills <= 24999) then setElementData(source,"Rango","Rank/27.png") elseif (zombiekills >= 25000) and (zombiekills <= 26999) then setElementData(source,"Rango","Rank/28.png") elseif (zombiekills >= 27000) and (zombiekills <= 28999) then setElementData(source,"Rango","Rank/29.png") elseif (zombiekills >= 29000) and (zombiekills <= 31999) then setElementData(source,"Rango","Rank/30.png") elseif (zombiekills >= 32000) and (zombiekills <= 36999) then setElementData(source,"Rango","Rank/31.png") elseif (zombiekills >= 37000) and (zombiekills <= 41999) then setElementData(source,"Rango","Rank/32.png") elseif (zombiekills >= 42000) and (zombiekills <= 46999) then setElementData(source,"Rango","Rank/33.png") elseif (zombiekills >= 47000) and (zombiekills <= 49999) then setElementData(source,"Rango","Rank/34.png") elseif (zombiekills >= 50000) and (zombiekills <= 64999) then setElementData(source,"Rango","Rank/35.png") elseif (zombiekills >= 65000) and (zombiekills <= 70999) then setElementData(source,"Rango","Rank/36.png") elseif (zombiekills >= 71000) and (zombiekills <= 76999) then setElementData(source,"Rango","Rank/37.png") elseif (zombiekills >= 77000) and (zombiekills <= 82999) then setElementData(source,"Rango","Rank/38.png") elseif (zombiekills >= 83000) and (zombiekills <= 88999) then setElementData(source,"Rango","Rank/39.png") elseif (zombiekills >= 89000) and (zombiekills <= 99899) then setElementData(source,"Rango","Rank/40.png") elseif (zombiekills >= 99900) and (zombiekills <= 99999) then setElementData(source,"Rango","Rank/41.png") elseif (zombiekills >= 100000) and (zombiekills <= 119999) then setElementData(source,"Rango","Rank/42.png") elseif (zombiekills >= 120000) and (zombiekills <= 149999) then setElementData(source,"Rango","Rank/43.png") elseif (zombiekills >= 150000) and (zombiekills <= 179999) then setElementData(source,"Rango","Rank/44.png") elseif (zombiekills >= 180000) and (zombiekills <= 199999) then setElementData(source,"Rango","Rank/45.png") elseif (zombiekills >= 200000) and (zombiekills <= 219999) then setElementData(source,"Rango","Rank/46.png") elseif (zombiekills >= 220000) and (zombiekills <= 239999) then setElementData(source,"Rango","Rank/47.png") elseif (zombiekills >= 240000) and (zombiekills <= 259999) then setElementData(source,"Rango","Rank/48.png") elseif (zombiekills >= 260000) and (zombiekills <= 289999) then setElementData(source,"Rango","Rank/49.png") elseif (zombiekills >= 290000) and (zombiekills <= 359999) then setElementData(source,"Rango","Rank/50.png") elseif (zombiekills >= 360000) and (zombiekills <= 10000000) then setElementData(source,"Rango","Rank/51.png") end end end )
  2. Oi, alguém sabe alguma resource de rank system mostrando kill/deaths/ratio e o nick de cada jogador se alguém souber por favor, me indique !
  3. Excuse me if my English is wrong I need to create a Rank but I do not get what I want, I managed to create a table and insert values in it, and with a command leaves them from the largest to the smallest, the problem is that I want to enter the name of the player beyond the values and do not know how to get the values and the name together List = {} function ShowRank (source) setElementData (source,"WalkinG",15) setElementData (source,"WG",10) setElementData (source,"AL-KinG",5) for _,player in ipairs (getElementsByType ("player")) do Value = getElementData (player,"WalkinG") Value2 = getElementData (player,"WG") Value3 = getElementData (player,"AL-KinG") table.insert (List,Value) table.insert (List,Value2) table.insert (List,Value3) end end addCommandHandler ("renk",ShowRank) function ShowList () for i=1,3 do ordenaLista (List) outputChatBox (List[i]) end end addCommandHandler ("rank",ShowList) function ordenaLista (lista) for rodada=1,#lista do for i,valor in ipairs (lista) do if lista[i]<lista[rodada] then local seguravalorantigo = lista[rodada] lista[rodada] = lista[i] lista[i] = seguravalorantigo end end end end
  4. local titles = { "AdminSegéd", "Moderátor", "SzuperModerátor", "Admin", "FőAdmin", "Tulajdonos", "Fejlesztő" } function getPlayerAdminTitle() local text = titles if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then text = "Tulajdonos" elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("FoAdmin")) then text = "FőAdmin" elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Adminseged")) then text = "AdminSegéd" elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KisAdmin")) then text = "Admin" elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Fejleszto")) then text = "Fejlesztő" elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then text = "Moderátor" end end function getFixedName(player) if isElement(player) then local hisName = getPlayerName(player) if hisName then result = string.gsub(hisName, '#%x%x%x%x%x%x', '') if result then return result end end end end function adminuzi(thePlayer, commandName, ...) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("FoAdmin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Adminseged")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("KisAdmin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Fejleszto")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Moderator")) then if not (...) then outputChatBox("#00FF7F[Használat]:#FFFFFF /".. commandName .." [üzenet]", thePlayer, 0, 206, 209,true) else local adminrang = getPlayerAdminTitle(thePlayer) message = table.concat({...}, " ") local playerName = getFixedName ( thePlayer ) outputChatBox("#0088FF[SUPERFUN-Admin]#d8001f "..playerName..": "..message,getRootElement(),0,0,0,true) end end end addCommandHandler("asay", adminuzi, false, false) i have this script, and i get this warnings/error: How to fix this?
×
×
  • Create New...