Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/01/18 in Posts

  1. It can't be sorted because the indexes of the array are strings. The indexes are now: "player1", "player2", "player3", "player4", "player5" Because: { player1 = {points = 25, playerName = "RandomNick1"} } -- is them same as { ["player1"] = {points = 25, playerName = "RandomNick1"} } Before you can sort them , you need the indexes to be the ones of an array: 1, 2, 3, 4, 5 So you need to transform the keys from one form to another. simpleTable = { player1 = {points = 25, playerName = "RandomNick1"}, -- < item player2 = {points = 1, playerName = "RandomNick2"}, player3 = {points = 13, playerName = "RandomNick3"}, player4 = {points = 27, playerName = "RandomNick4"}, player5 = {points = 7, playerName = "RandomNick5"} } -- Make a new empty table. newSimpleTable = {} -- Use the pairs loop. (not the ipairs loop, because that one can't read the items with custom keys) for key, data in pairs(simpleTable) do -- Insert all items into the new table. newSimpleTable[#newSimpleTable + 1] = data end -- Now you can sort them. table.sort (newSimpleTable, function (a, b) return a.points > b.points end)
    2 points
  2. I can't code you now iam with mobile Use this At line 3 and create a team staff and now its done if ( getTeamName(getPlayerTeam(thePlayer)) == "Staff" ) then And remove get element model(player)217 then
    2 points
  3. Use the modloader resource from MTA community will be easy without using code ,just put the GTA skin if id 217(wymclot)txd and dff in skins folder of modloader and run it and its there For code wise use this https://wiki.multitheftauto.com/wiki/EngineLoadDFF
    2 points
  4. First convert gta skin to MTA skin ,then for staff1 use 217 skin id For staff 2 use another skid id you want make a separate folder for both of them staff and staff2
    2 points
  5. بنحرف شوية عن الموضوع .. عندنا هنا مثال جيد .. : الآخ هنا كتب : ( " اخوس " ) فماذا كان يقصد ؟ اذا كان تفكيرك سلبي راح تقرأها: أخرس واذا كان تفكيرك إيجابي راح تقرأها: أخوي وبس والله xDDDDDD
    2 points
  6. I am out now when I reach home I will pass out you code You must use Setskin :https://wiki.multitheftauto.com/wiki/SetPlayerSkin
    2 points
  7. Then you must use 2 different ids like this /staff for skin 217 /staff1 skin 0 or your choice of skin you want to Use set skin functions or search community there is already a resources name staff skin !
    2 points
  8. Like this ?/staff will give skin 217 /staff will give skin 0?
    2 points
  9. 2 points
  10. Welcome To RuthLess! (funi neim ik xd) UN SCURT ISTORIC: Serverul a fost infiintat pe data de 23.09.2016 din lipsa serverelor de calitate si de faptul ca scripting-ul este hobby-ul meu. La inceput serverul trebuia sa fie unul de Race, dar, vazand cat de jucat este acel gamemode (practic mort) mi-am schimbat parerea facand unul de Freeroam si incercand sa fac cel mai frumos server de Freeroam din Romania! De ce l-am numit 'RuthLess'? Este un cuvant ce ma reprezinta (sunt nemilos la DM/shooter sau alt GM cu arme) si mi s-a parut un cuvant potrivit pentru acest server. FEATURES: [⇉] Aproape toata interfata serverului este in ENGLEZA! [⇉] Resurse originale facute doar de fondator pentru un gameplay neasemanator cu celelalte servere! [⇉] Mape de tip DM Racing, Shooter, Drift, Jumps si arene de Deathmatch! [⇉] Panou Mod Manager (/mods) pentru activarea/dezactivarea masinilor, skin-urilor sau armelor modificate! [⇉] O tona de comenzi pentru modificarea masinii sau a caracterului! (Handling Editor, Upgrades, Paintjobs cu link-uri directe, Blinking Lights/Neons, Clothes, Walking/Fighting Styles etc.) [⇉] HUD si Scoreboard realizat in dx + animat pentru informatiile caracterului/masinii si panouri (Freeroam, Guide, Gang Panel etc.) pentru a ghida jucatorii noi! [⇉] Shadere (reflect, contrast, bloom), noi texturi aduse mapei cat si a masinilor (Taillights) pentru o grafica de mare calitate! [⇉] Serverul este actualizat zilnic cu noi comenzi/bugfix-uri si altele! [⇉] Alte resurse: Panou VIP, Speaker Manager cu Bass Effect (/sound), Anti-Spawnkill, Peacemode, Warps List (/warps), Level System, SpeedBooster, Drift System. [⇉] Comenzi pentru antilag destinate jucatorilor cu calculatoare vechi! CONECTARE + ALTE INFORMATII: Owner: chris1384 (skype: theidnx1384) Momentan serverul duce lipsa de host din cauza problemelor financiare. [⇉] IP ADDRESS: mtasa://85.186.215.104:22003 (localhost) [⇉] RECORD JUCATORI: 28 (27 - 29 dec. 2016) Totusi, cu primul server (Romania Minecraft Server realizat in 2011) am reusit sa strang 32/32 jucatori, printre acestia se numarau si vreo 12 admini! :)) WALKTHROUGH (PHOTOS): Cam atat. See you there!
    1 point
  11. Ofcourse I'm judging someone for using publicly released scripts ON TOP of a not so publicly released but rather leaked script (valhalla Gaming, owl Gaming, both versions were leaked without owner's permissions). I see absolutely no originality in your script considering you had to add other people's work to make it look more appealing to your playerbase, which is rather sad and funny at the same time. Thanks for enlightening me that scripters put hard work in their scripts and the systems, did not know that, guess that's something you learned while editing other people's work, congratulations mate. And to answer your question, yes I do script.
    1 point
  12. Use this https://wiki.multitheftauto.com/wiki/SetVehiclePlateText
    1 point
  13. Go to freeroam folder/vehicles XML edit vehicle.XML rename the infernus to your choice name
    1 point
  14. What do you mean by "shop"? It's a script? You can make something like this to get a modified vehicle name: vehicleNames = { ["Infernus"] = "Infernus custom name", ["Jester"] = "Jester custom name" } function getCustomVehicleName( veh ) if veh and isElement(veh) then return vehicleNames[getVehicleName(veh)] or false end return false end
    1 point
  15. I think he mean skin mod how to install it
    1 point
  16. What do you mean by "custom skin"?
    1 point
  17. addCommandHandler("staff",root, function(player) if not getElementModel(player) == 217 then setElementModel(player,217) else setElementModel(player,0) end end )
    1 point
  18. -Your name on fourm: Fighter -Your real name:Eslam -Which Script i want: i need all scripts server -Your SkyBe Id: i dont heve skype just i heve facebook [[email protected]] -Any Extra info: N/A
    1 point
  19. Hello I also use mod, I changed a lot of things in it, added skins. If you want help, contact: skype riddik1232 and //vk.com/no4name
    1 point
×
×
  • Create New...