Jump to content

Varkis

Members
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Varkis

  1. Oops, I completely forgot about its existence, thanks.
  2. How can I disable chat messages when the player is connected and when the player has changed his name? * ewgwegdqw has joined the game * ewgwegdqw is now known as 1
  3. Thank
  4. I use this guiSetProperty function(edit, "ValidationString", "^[A-Za-z_0-9]+$") but there is a problem when I want to delete the entire string, I can't delete the first character entered in the string.
  5. Hello, I use this so that only the Latin alphabet and numbers can be entered in the input field. What should I do to be able to enter the underscore character "_"? addEventHandler("onClientGUIChanged", edit, function(element) guiSetText ( edit, string.gsub (guiGetText(edit), "%W", "")) end)
  6. Varkis

    DGS

    Thanks!
  7. Varkis

    DGS

    I don't understand how to round off certain elements with this. Can you explain?
  8. Varkis

    DGS

    How can I round off dgsCreateButton and dgsCreateEdit?
  9. Varkis

    Overwriting

    I don't have the code. I want to make it so that when a player logs into an account, the date and time of his login are recorded in the database (internal.db). I want the date to be recorded a certain number of times and then start being overwritten. Let's say a player logged in on 01.03.2022, then he logged in on 02.03.2022, then 03.03.2022, and when he logs in on 04.03.2022, the date 01.03.2022 is deleted
  10. Varkis

    Overwriting

    How to make 3 lines written to the database, and then they started to be overwritten Example: 06.03.2022\n 05.03.2022\n 04.03.2022 And then the bottom line was deleted and the previous one was written in its place Example: 07.03.2022\n 06.03.2022\n 05.03.2022
  11. Do I need to create a table with forbidden characters? If so, it will take a long time. Is it possible, on the contrary, to create a table with only allowed characters?
  12. How can I make it so that only English letters and numbers can be entered in the guiCreateEdit field?
  13. If I want the time to always be updated down to the second, I need to call the triggerServerevent event every second? Will there be a load on the server?
  14. How can I get real time on the client side from the server side?
  15. Varkis

    Timer

    Thanks
  16. Varkis

    Timer

    Thanks. How do I make it show a maximum of 23 hours and 59 minutes? https://imgur.com/a/ARAK9Fh
  17. Varkis

    Timer

    Hello, how can I make it so that when I enter the command /timer 3600, the timer is displayed for the players, and the time 1 hour 00 minutes 00 seconds is displayed on it, and then 59 minutes 59 seconds and so on. In short, I only need the remaining time to be displayed.
  18. Add the setServerName function. If I'm not mistaken, it was there before, but why was it removed?
  19. Well, how do I find out which client the player uses?
  20. How to prohibit logging in to the server from a custom client?
  21. Varkis

    Help please

    How to make sure that it does not fall into the ground?
  22. I do not understand. Can you please write all the code that should turn out in the end?
  23. Okay, thanks
  24. I save all my bank accounts to the database (internal.bd). I don't understand how to make it so that other players can't be given a number that is already recorded in the database function reg(player) local account = getPlayerAccount (player) local num_1 = math.random(0,9) local num_2 = math.random(0,9) local num_3 = math.random(0,9) local num_4 = math.random(0,9) local num_5 = math.random(0,9) local num_6 = math.random(0,9) local num_score = num_1..num_2..num_3..num_4..num_5..num_6 setAccountData(account, "bank", num_score) end addEvent("regbank",true) addEventHandler("regbank",getRootElement(),reg) Here is the code
  25. Hello, I want the player to be given a random 6-digit number when registering with the bank, and that this number does not fall to anyone else. How do I do this?
×
×
  • Create New...