Jump to content

John Smith

Members
  • Posts

    656
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by John Smith

  1. Check out wiki.multitheftauto.com for scripting introduction and read about it, and check out on google..there are many Lua tutorials out there, and you can't just learn it over the night. It requires some time and dedication. (If you got money though you can always pay a scripter to do work for you)
  2. Read original files and store hash of their content somewhere Then when checking if client has files,if he has, read those files that client has and turn the content into hash and compare this hash with your stored one. If hashes are different, client has tried to load his own mod.
  3. John Smith

    Solved

    Use setCameraTarget(localPlayer) to 'fix' setCameraMatrix
  4. can you post the file path from your pc where this is located? e.g C:\Program Files (x86)\MTA San Andreas 1.4\server\mods\deathmatch\resources\resource-name\etc (also code where downloadFile is would be useful)
  5. find mtaserver.conf file in your server36 to 60
  6. ":" is used to load a file from another resource; resource which isnt the one you're currently running you could use downloadFile(":[3D]/object/Skins/dead.col") or if you're currently in 3D resource's script then use downloadFile("object/Skins/dead.col")
  7. addEventHandler("onPlayerChat",root,function() cancelEvent() end) -- cancels every message a player makes -- you can also try this (but i didn't try to do it before) addEventHandler("onChatMessage",root,function() cancelEvent() end) -- disables every single message of a player or used with outputChatBox
  8. @Roots [quote name=..&G:..]Looks like a mta admin hack https://community.multitheftauto.com/index.php?p= ... s&id=11683
  9. You know, there are plenty of Lua tutorials out there, browse around scripting board of the forum and look for the "sticky" topics, you will find in there bunch of links where you can learn Lua. You can also use Google(or is that too hard?) to look for lua tutorials. Also check mta sa wiki (wiki.multitheftauto.com) and check out some functions and look into scripting introduction, and try using some wiki examples and start the script in your server. If you need help with anything in scripting feel free to contact me on Skype (name: thegtasolutions)
  10. https://www.virustotal.com/en/file/a568 ... 435519487/ ^ virustotal results of that resource mta team should GLOBAL BAN the author who uploaded this (if possible)
  11. most of the client cheating programs are blocked by MTA. If not, report it to MTA Team. On wiki it clearly says "Don't trust the client" which means, you should verify the data(if it's sensitive) on server side or just make it from server side and send to client
  12. This is easy man, just practice it a bit. it works for infinite number of rectangles(if your calculation is right) try out the script, change numbers and learn from it. (I have done that 29321013 times when learning how to script, and learned many things)
  13. With texts it will work for sure, but i suggest using allign arguments(it makes things easier) and you should make font's scale also calculated for resolution e.g local scaleX,scaleY = 1/1920*sw, 1/1080*sh -- but can slightly decrease font quality because size usually ends up being a decimal number and rectangles, you need to use some calculations depending how big rectangle is e.g -- makes rectangle on middle of screen local sw,sh = guiGetScreenSize(); local rectangleWidth,rectangleHeight = 500/1920*sw, 180/1080*sh; local rectangleX,rectangleY = sw/2 - rectangleWidth/2, sh/2 - rectangleHeight/2; function draw() dxDrawRectangle(rectangleX,rectangleY,rectangleWidth,rectangleHeight,tocolor(0,0,0,180)); end; addEventHandler("onClientRender",root,draw);
  14. i use it this way local sw,sh = guiGetScreenSize() local x = 500/1920*sw -- position number / your resolution width * sw[screen-width] local y = 750/1080*sh -- position number / your resolution height * sh[screen-height] dxDrawText("text",x,y) -- draw text
  15. Oh, sorry. I kept writing minimized instead of windowed.
  16. you should post your serial and show us the picture where it says why you were banned
  17. mta can't do anything about this. if you can prove and trace the ddos attack, you can report it to legal authorities.
  18. Hi, I don't know whether this is a bug or not, but when i have mta opened with full screen, my screen is brighter than usual(it should be like that since brightness option in settings is set to 100%) but however problem is when i put minimized mode. when i have minimozed mode, it's like all that brightness is set to 0%, and in settings its still at 100% so basically when it gets dark in the game, i can barely see anything while on full screen i can see completely fine in dark also when i'm in full screen and i take screenshots, all screenshots are darker, and not bright as my mta looks like to me. please help
  19. Same happens to me. I can only access youtube.com and other sites all request to be whitelisted by the player, and when they do, they still don't work(google search,google images, any other site than youtube or mtasa.com)
  20. xml would make server lag if a lot of things are inside a simple file would do fine in my opinion. [ you can e.g make a table and when u want to save a table to file use toJSON and save it, and when loading it use fromJSON ]
  21. haha lmao i didn't notice that it was : instead of ; (my notepad++ font makes : and ; look almost the same so didn't see it) , thanks and yes semicolon cant be at each of every line but it can be after function calls,ends, and variables and in tables
×
×
  • Create New...