Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Check what Solidsnake14 said first.
  2. return --SOME_VALUE Explique melhor o seu problema.
  3. Now start your server and the resource. EDIT: Check what has been said below, I didn't look at pictures.
  4. Anderl

    Not Work This

    You didn't add what I said, and it won't work with only that code.
  5. Anderl

    Not Work This

    Show what you tried.
  6. Use removeWorldModel ( you should put the script in your server's resources folder, if you don't know how to create a resource, read here: https://wiki.multitheftauto.com/wiki/Resources ). I didn't understand well your question so if you meant remove the object in SA:MP.. well, go find it out by yourself.
  7. Anderl

    Not Work This

    You need to add the event "onClientMapStarting", it is an event from race gamemode, not a global one.
  8. Anderl

    Not Work This

    I'm pretty sure you need to add that event, it isn't a global one.
  9. Guess you should have searched a little more
  10. You can also use split function: local var = "test:110"; outputChatBox ( split ( var, ":" )[1] ); -- 'test' outputChatBox ( split ( var, ":" )[2] ); -- '110' Both outputChatBox and split are only available in MTA, you'll need to create the split function if you want to do this in any LUA interpreter ( like Lua Demo or Lua CMD Interpreter that comes with LuaForWindows package ).
  11. There is no software for doing such thing, the resource link is already on the main page - now, learn LUA and do the rest yourself.
  12. Yeah, agree - should add some more effort on videos.
  13. It's still wrong, there's no source.
  14. You did it other way then, your code is wrong.
  15. The code is wrong. The function has one parameter, but setTimer doesn't pass any to it.
  16. Anderl

    FPS lagggggg

    Simply run MTADiag again.
  17. Anderl

    crawling

    You can already croach.
  18. Anderl

    dxGUI

    Just like qaisjp, I didn't get it. What the hell does parameters have to do with that? It simply creates a function that calls the exported function with the params you pass to it, it's the exact same thing.
  19. Anderl

    dxGUI

    That has totally nothing to do, it looks like you didn't understand that code so I'm gonna explain what it does: "exports" is a global array which contains all resource exported functions, so we're looping through all the exported functions of 'dxGUI' resource. We then create a function that calls the exported function with the arguments passed by the user and returns what the function returned, which we save with the same name as the exported function. How the code actually looks like when being executed: function_name = exports.dxGUI:function_name ( args ); Basically, you just make a variable with the name of the function which calls the exported function.
  20. Anderl

    i need help

    Well, now you'll need to use the event onPlayerChat. It gets triggered when someone types something in the chat, there you should check if the player has been in the server less than 5 hours, if he does, you should do a for loop or whatever you want to find out the list of other players that also played for less than 5 hours and output the message ONLY for them - otherwise, output it to everybody ( simply do nothing ). You'll also need cancelEvent function to stop the message from being outputted for everybody if the guy played for less than 5 hours, otherwise it will output for everybody and for the ones who played less than 5 hours. Anyway, if you don't know LUA, even if this is too basic, you might not be able to start it, if you really don't know LUA, you can start here: viewtopic.php?f=148&t=40809
  21. Anderl

    i need help

    Do you already have anything that counts the time players play in the server?
  22. Anderl

    i need help

    "A chat for newbie" - and what does that mean? Nobody understands what is a "chat for newbies", you must explain what do you want to do.
  23. Anderl

    i need help

    What are you talking about? Explain it breefly. And we aren't going to give you any code, we'll only help you fixing errors that you might be having or give you a little help with what functions you should use to start.
×
×
  • Create New...