Jump to content

loler

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by loler

  1. This is help forum not request forum Here is the deal Try to make by yourself if something goes wrong post the code here with the tag [lua] and [/lua] and we will say you what to do (or when isn't so much to work fix)
  2. This isnt a request section , its a help section Try first and than post hereyour problem
  3. loler

    Attach element

    Hello , momentanly im making a bar system (with beer , etc) I want only to ask when i can attach objects to bones and when yes with what function (maybe attachElement) ty
  4. You mean as : "Kills" , "Deaths" , "Ratio" (Dont works well) , "Ammo" , "Current weapon" ,"Health" , "Armour" (is it is) OR the functions?
  5. lol :DDDDDDDDDDDDDDDDDDDDDDDDDDD C00l hah? to copy links from scripting for saudi server: Learn from there links what i gived and put here your problems (after you tried)
  6. Here is scripting introduction : https://wiki.multitheftauto.com/wiki/Scripting_Introduction Here is gui introduction: https://wiki.multitheftauto.com/wiki/Introduction ... ng_the_GUI Here is debbuging tuturoial: https://wiki.multitheftauto.com/wiki/Debugging Here is resoruce introduction (includes : meta.xml , web acces , resource catalouge): https://wiki.multitheftauto.com/wiki/Resources And the last for you (there are 2 more but here you dont must to write a gamemode) : https://wiki.multitheftauto.com/wiki/Useful_Functions And when i read good you want to make top 10 , right? than you need to use : getElementData from : https://wiki.multitheftauto.com/wiki/GetElementData lol i found 1 more: http://lua-users.org/wiki/TutorialDirectory -- here all what kinda tuturoials do you want Good luck
  7. im not expert but setPedSkin Isnt depreceated? you should use setElementModel
  8. Yeah @[sTM]Metalhero please dont make your own functions and better search in wiki. and please use "getElementData" NOT "loadPlayerData"
  9. elseif (string.find(message,"!stats")) and not (string.find(message," !stats")) then local playerCash = getElementData (source,"cash") local playerPoints = getElementData (source,"points") local playerRank = getElementData (source,"Rank") setTimer(outputChatBox,50,1,getPlayerName (source) .. " #ffd700has " .. tostring(playerCash) .. "$ and " .. tostring(playerPoints) .. " points! He is Rank " .. tostring(playerRank) .. "!",getRootElement(),255,0,0,true) As i said its "getElementData" not "loadPlayerData" and this is the last time that i help you
  10. i gaved him a example lol
  11. function getPlayerRank (thePlayer) if (getElementData(getLocalPlayer(), "Points") <= 0 ) then setElementData(getLocalPlayer(), "Rank") "Newbie" ) elseif (getElementData(getLocalPlayer(), "Points") <= 100 ) then setElementData(getLocalPlayer(), "Rank") "Guest" ) elseif (getElementData(getLocalPlayer(), "Points") <=250 ) then setElementData(getLocalPlayer(), "Rank") "Player" ) elseif (getElementData(getLocalPlayer(), "Points") <= 500 ) then setElementData(getLocalPlayer(), "Rank") "Known" ) elseif (getElementData(getLocalPlayer(), "Points") <= 1000 ) then setElementData(getLocalPlayer(), "Rank") "Server friend" ) elseif (getElementData(getLocalPlayer(), "Points") <= 2500 ) then setElementData(getLocalPlayer(), "Rank") "V.I.P" ) elseif (getElementData(getLocalPlayer(), "Points") <= 5000 ) then setElementData(getLocalPlayer(), "Rank") "Faumos" ) elseif (getElementData(getLocalPlayer(), "Points") <= 10000 ) then setElementData(getLocalPlayer(), "Rank") "Pro" ) elseif (getElementData(getLocalPlayer(), "Points") <= 50000 ) then setElementData(getLocalPlayer(), "Rank") "Crazy" ) elseif (getElementData(getLocalPlayer(), "Points") <= 1000000 ) then setElementData(getLocalPlayer(), "Rank") "Insane" ) and for see the rank prepare some $$ and i dont know when there are good that "" from ranks (("Insane") , etc ) and Warning its untested
  12. 1. Its getElementData NOT loadElementData 2.Is this a script? no , i dont think so wait im making it in 5 min 3. it isnt "local r1" or " local r2" use insteand "r1" or "r2"
  13. Well Its correct and Delete the: end It's the last 1 why should he delete that line? thats the end of the script when if im not wrong the script must look same this: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3000, 3 ) -- you can set the time how much you want (1000-1sec)) end createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 ) end As i said 1000 - is a second so it must be 3000 not 3 Understand try my code and youre sure it didnt gives any bugs?
  14. tinnetju , you must delete the lines with X , Y ,Z you must have only the coordinates
  15. Hey , i have the anwanser for explosions , but on the fireworks i need to work a bit more Here it is : function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) -- you can add how many you want setTimer ( explosions1, 1000, 1 ) -- you can set the time how much you want (1000-1sec)) end end
  16. Why you dont try to make by yourself? check wiki out and learn lua Do you tryed? - NO Do you searched in MTA communityes? -NO Do youre intereset? -NO youre interesed only the gamemode why you dont try to make it by yourself and when youre blocked post the code on forum
  17. Do you try? TRY IT AND THAN PUT HERE THE CODE AND THAN SAY "help me please" So these are annoying me What do you think that a player stays 1 or 2 hours for you? ( it will stay when you put a code too!!!) In your best whisehes
  18. Ok , you want to replace cars , right? Try this: function ReplaceVehicle ( ) outputChatBox ( "> replacing the euros vehicle" ) txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) type replace veh in F8 and do you read from wiki? Forgot you need to make a folder in resource named "data" and there to put the .txd and .dff
  19. Salut , si eu sunt din romania vreau doar sa iti spun ca daca iti trebuie ceva sa imi ai un PM
  20. yep i think so too lol thehookerkiller First step:Make the gui with the gui editor 2.click left outside the gui and click the button "print code" or "output code"(somethink like that) -->print code -- copy that code in notepad or where you want to do it and make a meta.xml -->output code(or somethink like that)--It outputs the code where you find it in [serverfolder]/mods/deatchmatch/resources/guieditor(or how you called it)/GUIeditor_output P.S:for output code you must have the guieditor in a FOLDER not ZIPPED. ok when you have ready these steps you can add a button what to show the gui add this at end function onresourceStart () bindKey ("thekey", "state", showHowIsYourGuiCalled) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showHowIsYourGuiCalled() getVisible = guiGetVisible (HowIsYourGuiCalled) --etc etc etc Do i have right? AND post your code here
  21. say me when and where ( the coordinates) to teleport , to make a example
  22. loler

    Help please

    Anyone , please
  23. lol SHUT UP WITH YOUR PEDS WHEN YOU WANT PEDS USE THIS : https://community.multitheftauto.com/index.html?p ... ils&id=234 AND NOW SHUT UP WITH YOUR PEDS , WHEN YOU DONT LIKE 50p's script go and play GTA SA and leave MTA alone!!!!! and when you want to know how many peds has gta sa why you dont go and count them?? and leave MTA
  24. this is the error that gives me
×
×
  • Create New...