Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. Check: SetWorldSoundEnabled and setDevelopmentMode and showSound.
  2. Bonsai

    Checking Files

    I spend a little time on trying to get this done, and now it works perfectly. I used md5 and so far no problems occurred. Thank you guys.
  3. Why you u multiply 10*playerHeight, which is also 10? Just do y+(playerHeight*index). (amt in your code) Then firstplayer gets 1*10, second 2*10, which puts them into an order.
  4. +2? I don't understand what u mean, or what u tried yet.
  5. Bonsai

    Hello.

    Why don't you start with something more simple? If you are a beginner, this is pretty hard stuff. And if you don't understand the wiki....
  6. Bonsai

    Another Q

    AddCommandHandler doesn't have a source. You gotta use the player parameter. function checkRank ( player ) local rankss = getElementData(player, "Rank")
  7. It does not, but its not helpful anyway sadly. Problem is the chatbox input stays active even if the chatbox gets disabled while you are typing. You can't see it. You will notice as soon as the chatbox appears again, because every character you hit before will be in the input field. Also, you can't open the console and the cursor is shown. I'm just wondering if you can force the input to be disabled.
  8. Maybe you could just use toggleControl on Horn when a player is in a police car. Then you bind your custom sound to that control. That way the original sounds wont be played
  9. Bonsai

    Checking Files

    Alright, thank you. I'll think if it's worth the effort. Current situation isn't that bad, just people with high pings get problems. Bonsai
  10. Hey Peeps, I noticed when you disable the chatbox while the input is active, everything you write will go to the chatbox input. Also you can't use F8 as long as the chatbox isn't enabled again, since escape doesn't do anything. Is there something you can do about this? It starts being really annoying.. Bonsai
  11. Hey, I created a pretty good working map loader, but at the moment players have to download the whole map on map start, even if they already have the required files. I want players only to download the files they really need. But to prevent broken or manipulated files, I need to check if the file in the clients cache is actually the same as on server. I thought about using fileExists and if its existing, hashing the content and check if the hash is equal to the one of the servers file. Is that a good way to get this done, or is there any better option? Bonsai
  12. That way you have to use windows.window1[Mp] and so on instead of windows.window1.Mp in your loop.
  13. That would be where you create your buttons for each window.
  14. Bonsai

    please read

    Try dynDNS. But afaik, its not for free anymore.
  15. You could use a table to store all window and their button. Like this: windows = {} windows.window1 = {} windows.window1.button1 = ... Then you use a for loop to find out which button equals the source. for i, window in ipairs(windows) do if source == window.button1 then
  16. hmm, like this maybe: F6 calls a function that unbinds the panel, adds an EventHandler onClientKey, binds the first key that is pressed to the panel and removes the EventHandler again.
  17. Bonsai

    onPlayerChat

    First you remove all spaces, then you check the string length, if its 0 you use cancelEvent()
  18. Bonsai

    Bugs :x

    I think you don't understand how this board works. You can't just post your stolen code, some debuglog and expect others to fix it without even writing one sentence. And what about using normal topic names?
  19. I guess that function is only available server side. About this other thing, you could check the alive players in the teams. Some function where u set the max alive players, then it checks onPlayerWasted how many people are still alive in each team. If its good they get unfrozen.
  20. Bonsai

    Bug

    addEventHandler("onResourceStart", resourceRoot, function() outputDebugString("Villa do Colete", 3, 0, 255, 0) end )
  21. I once made an AFK Detector. This is the important part: afkTimer = setTimer(checkafk, 1000, 0) function checkafk() if exports.race:getTimePassed() > (30000) then -- >0 is what you need I guess --do something end end You could make that timer checking every 100 ms or something how much time has passed. I'm not sure what that functions returns when round didn't start, I guess just 0. So the worst case is map was running for 100 ms (depending on your Timer) before your players are frozen again.
  22. You can check if its not isPedOnGround.
  23. Actually, if you got a decent lobby system, you can offer the best experience for the players, since they can all be on the same server, talk to each other, and still can play in completely different gamemodes. Also, this might save money for hosting, depends on the way you do it. And its hardly FFS cloning, its evolution, more or less.
  24. Of course you did. That's why you are depending on leaked scripts.
×
×
  • Create New...