slapz0r

Members
  • Content Count

    174
  • Joined

  • Last visited

Community Reputation

3 Neutral

About slapz0r

  • Rank
    Mark

Recent Profile Visitors

215 profile views
  1. slapz0r

    Ban player

    How to ban a player if he is not on the server? GetAccountByID I can ban a player by parameter "player" but how to ban by parameter "account" ?
  2. slapz0r

    map teleport

    The file is compiled
  3. @#,xiRocKyz local zifr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0} addEventHandler("onClientGUIChanged", editMoney, function(element) local chars = table.concat(zifr, ""):gsub("[%(%)%.%%%+%-%*%?%[%^%$]", "%%%1") local editText = guiGetText(editMoney) local replacedText = editText:gsub("["..chars.."]", "") if editText == replacedText then guiSetText(source, "") playSoundFrontEnd(2) end end) Used your example. If you type numbers(zifr) into the edit. numbers are displayed - fine If you use other characters, the characters will not be displayed and sound will be played. - fine BUT If you type "1A" , "213FSDFSFS" and etc - It will work. How to fix it? Other characters except "zifr" should not be displayed
  4. slapz0r

    Language layout

    I just tried to make for login panel, for input fields,label which would determine which language is selected in the Windows language bar
  5. How to do it when you write in guiEdit, for example, the character "A" and it is not written?
  6. slapz0r

    Language layout

    I just need to check the current language of the player in his windows(Language bar in windows) For example, initially the user has English - a message will appear - English As soon as you switch to another language, another message will appear
  7. slapz0r

    Language layout

    but how to get the current language in the user's language layout?
  8. How do i get player current language layout? For example, a player has an English layout: A message will appear in the chat - English layout If the player switches to another language layout, A message will appear in the chat - other layout
  9. slapz0r

    map teleport

    Still need help
  10. Used dgs tools and there is such an opportunity: https://wiki.multitheftauto.com/wiki/DgsEditSetWhiteList but how to use the same for gui edit ?
  11. solved my problem with the first option, thanks
  12. onClientPlayerVoiceStart how to ban this command if the player is not logged in (guest) ?
  13. How to create a command that will show getElementData(target, "name") by login? I mean if you type /find Alex Find a player with a login "Alex" and get he's elementData("name") and will appear message with he's nick But the player is not on the server UPDATE: I found this but how to use it on offline players? https://wiki.multitheftauto.com/wiki/GetPlayerFromAccountName
  14. slapz0r

    guiGetText

    Hello! How do I check for a character in edits? I mean, need to check if there is a sign "@" in this edit or no Example: type in edit "hello" - appear message - invalid type in edit "hello@" - appear message - complete
  15. @IIYAMA dbExec( dbSecurityConnection, ' CREATE TABLE if not exists `housing` (`houseID` INT PRIMARY KEY AUTOINCREMENT)' ) used this option, but got this error: Why? Indicated that it (INT PRIMARY KEY) The second option throws an error with syntax.