Jump to content

'LinKin

Members
  • Posts

    636
  • Joined

  • Last visited

Everything posted by 'LinKin

  1. Hello, v1.3.1 of his Admin Panel has a feature to set the server's FPS limit. (which is very useful). BUT, it lossess its focus when you press T,Y,P, keys. If I'm not wrong there's a version that fixes this, but as far as I know, that version doesn't have the FPS limit feature. Can you tell me where to find this version? And if I can add the FPS feature to it
  2. Still don't like it. Do you know how the guy who made this script figured out that link?
  3. Hello, I've seen this script: https://community.multitheftauto.com/in ... ls&id=3035 And it works this way: It sends an URL (http://translate.google.com/translate_t ... =InputText) and a sound is reproduced once you click this URL. it's working fine to me, but the thing is that I want to use another 'tool' so another voice.. I found this http://text-to-speech.imtranslator.net/. I'd like to know if there exists a way to achieve the same but using this translator. I've tried to work it out, but still don't get a result. The most closest thing I could get was this link, made with a custom text by me: http://tts.imtranslator.net/RYnr But as you see, you must type the text you want in the website, and then create the link.. Any suggestions?
  4. This time, it doesn't even colour the text.. But good news, I looked throught the script and found the 'mistake' and corrected it. Now it works 200% - Colours the text - Strokes stay fine Thanks for your colaboration.
  5. Hello, As you know, it exists a script for making animations with an image. (i.e Hurry up! Image in Race) But I was wondering, if there's a way to apply animations like these to a text draw by dxDrawText. Seems impossible for me, but I want to make sure Thanks, LinKin.
  6. Thanks! Can you tell me what you modified in the textlib.lua? EDIT: Alright, I noticed 3 changes In lines; 249, 260, 262 You added an argument 'true'. Just one problem, when using strokes, even if you define it with black color, it takes the same colour that you put in g_dxGUI.mapdisplay:text("#990000"..g_MapInfo.name) Causing this: http://s27.postimg.org/v51ynibun/stroke.png
  7. That is very obvious. I meant to call it from another resource.
  8. By the way. How can I use the textlib.lua with other scripts? Anyway to call it from race resource?
  9. Alright. I did made a couple of changes in race_client.lua I didn't feel like touching the library. I'm still a beginner. Here's what I got http://s28.postimg.org/b5bachoj1/MTAQu.png Thanks for your colaboration.
  10. Where can I find this library?
  11. Hello, I've been giving some colors to things such as timeleft, etc.. I changed the color of this: http://s22.postimg.org/tqj1ra8al/MTAQ.png which is shown on the bottom left side of the screen. This is the line that is in race_client.lua g_dxGUI.mapdisplay:text("Map: "..g_MapInfo.name) And below that one, I added this to change the color of the whole text. g_dxGUI.mapdisplay:color(0,240,240) But I don't know how to color "Map:" and "mapName" with two different colors. I've seen this is possible.
  12. Solved. I was treating 'myTable' as a vector, not a matrice. So by the time it was making this condition; if getResourceInfo(myTable[1][1], "name") == mapSelected then It was trying to access a position that did not exist. As a vector, when trying to access a position you gotta do it like this; myTable[index] That's why the error was similar to what Java says when you try accessing to a non-existing position; ERROR: myscript\server.lua:145: attempt to index field '?' (a userdata value) Thank you guys for the interest. - Little mistakes that we commit
  13. Hello, I've a small trouble. local listMaps = exports.mapmanager:getMapsCompatibleWithGamemode(exports.mapmanager:getRunningGamemode() ) This is a complete list of the maps, in my case the gamemode is 'Race'. I created a table, and in it, I will insert some maps; Like this: local myTable = { } for i, map in ipairs (listMaps) do if getResourceInfo(map, "name") == mapName(*) then // custom code...Puts the map in myTable. end end So far works good. But when I want to remove a map from my custom table, I use the following: if getResourceInfo(myTable[1][1], "name") == mapSelected(*) then // custom code end But the in-game debugger tells me this error: ERROR: myscript\server.lua:145: attempt to index field '?' (a userdata value) The line 145 is if getResourceInfo(myTable[1][1], "name") == mapSelected then ______________________________________________________________________________________________________________ (*): mapName & mapSelected are strings that I give (i.e [DD] Cross)
  14. Hello, I've a custom function to return the a player by sending it a part of its nick. But, I was wondering if it is possible to return more than one argument in my function, I mean: Return the player, but, if there are more than one (1) players with the same part of the nick, I want to return false & the number of players who have that part of the nick. If this is not possible, Would it be right if I return different types of elements in the same function? Example: if matches == 0 then return false elseif matches == 1 then return thePlayer elseif matches > 1 then return matches (*) end (*): Would return a number
  15. No, that's not what I'm looking for. I remember it was something with World. Like when you use engineApplyShaderToWorldTexture
  16. Hello, I remember that somewhere I saw a function to set a special property to vehicles. For example, for being able to fly with it, and drive on the water. I'm trying to find it again, but without suceed. Can anyone help?
  17. 'LinKin

    onPlayerQuit

    I've tested it with more than 2 persons in the server.. And still: WARNING: @Bad Argument for getTeamName() If I try to get the Players name and print it on ChatBox, it works. But it just doesn't work with the getTeamName()
  18. 'LinKin

    onPlayerQuit

    The player who quits is in a team, but, since it quits, his team is 'gone' so this is why I cannot get the team where he was. But I really need to do this, can anyone help on solving it?
  19. 'LinKin

    onPlayerQuit

    It's something like this. As I said, It's like the function couldn't save the player's team who quits. I don't know...
  20. 'LinKin

    onPlayerQuit

    Doesn't work like this either
  21. 'LinKin

    onPlayerQuit

    function playerRaged() local selectedTeam = getTeamName(getPlayerTeam(source)) if selectedTeam then outputChatBox(selectedTeam.." quits") end end addEventHandler("onPlayerQuit", root, playerRaged) WARNING: @Bad Argument for getTeamName() It is because the player leaves before the script can take the Team where he was in. How can I achieve what I want?
  22. Hello, I'm looking for an event that gets triggered just after the countdown (3,2,1,go) of a Race map finishes. -- Another question: How can I use a timer to make a function be triggered after some time. Thanks
×
×
  • Create New...