Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. you can do like u showed, but i see you don't have real purpose to do so anymore, as you did all already serverside, but yes, u CAN addCommandHandler clientside anyway if you want trigger kick/ban from clientside be sure you do folowing check if this==source then kick ... end or kickPlayer(this,blabla) --not "source", but "this" since then player cant trigger to kick other player
  2. i warned its for scripts that have nothing to hack on...he asked, i made some... which exacly the example only does...(correct if im gettin' dumb) besides this resource is definitely BAD idea for scripts that have some numbers/strings that shouldn't be viewed clientside(eg. keywords/passwords)
  3. might xml file dont get rootnode? and u need specify parentnode for xmlcreatechild, not xml file itself i think try if not mission then xmlCreateFile("test.xml","rootnode") end
  4. ye interior would be best!
  5. yes, with this example you will sync all values what is in serverside script to clientside, and dont do it for resources that have some data serverside that shouldnt be seen clinetside --serverside addEvent("onRequest",true) addEventHandler("onRequest",getRootElement(),function() local vars={} local global=_G for name,value in pairs(global) do if type(value)=="string" or type(value)=="number" then --no need to send tables, userdatas, etc vars[name]=value end end triggerClientEvent(getRootElement(),"setVars",getRootElement(),vars) end) --clientside addEvent("setVars",true) addEventHandler("setVars",getRootElement(),function(vars) for key,value in pairs(vars) if not key then key=value else outputDebugString("\'"..key.."\' variable is already clientside, so it wont be overwritten from server",2) end end end) function onResourceStart() triggerServerEvent("onRequest",getRootElement()) ... end addEventHandler("onClientResourceStart",getRootElement(),onResouceStart) some1 say if something is wrong
  6. karlis

    I need help

    *SIGH! >>>>>>>>PRESS THIS<<<<<<<<
  7. get("name") is serverside function for such options in meta.xml : <settings> <setting name="*name" value="values in JSON" /> ... settings> for JSON info watch: https://forum.multitheftauto.com/viewtop ... 91&t=26845 ------- and i just say you should move all warnings system clientside, that would delete many pain in ass, btw if tis hard for you you could post whole code and if ill have time i could rewrite warings myself
  8. port forwarding requires time, and ip is changing soon after its done, so u haev small time of beging in internet tab
  9. karlis

    I need help

    just press on "this"
  10. karlis

    Is this a bug?

    i think you dont need blend weather as changing weather stlyle acording time is hardcoded in sa
  11. i dont get ur function syntax at line 170-174 and "open" at 176
  12. jsut do warings clientside...solves all problems, when need to kick-trigger server, but make check "if (source==this) then kick..." for security reasons
  13. is there no way to detect bugs automaticly via processLineOfSight or getElementMatrix?
  14. u gotta script it urself i guess
  15. gotta say default servers acl is not suitable for editor, that made me loose few maps
  16. karlis

    Hacking

    Yes, this is what the 'hacker' claimed to have done, to begin with, he said that he was doing it a different way when we called him up on it, he openly admitted that it was he that was doing it, and he seemed to get some kind of joy out of the fact that he was the only one who knew how to do it. He also claimed to have some form of serial generator, and we did ban him a few times (more than enough to hint that it wasn't a different comp each time) For a while this guy was a nuisance to us, but he then told us how to fix the resources with holes, freeroam and admin being the 2 biggest offenders, he even gave everyone one the server admin rights, so we had to stop the resource. here goes explanation of players geting admin back in secs
  17. try find something from here https://community.multitheftauto.com/index.php?p= ... ils&id=566
  18. try https://wiki.multitheftauto.com/wiki/Scr ... Tutorial_1
  19. karlis

    SA + MTA error!

    i smell cracks/mods
  20. 1)dont have clue why events dont trigger 2)130 ping is WAY too small to get kicked, it shoudl be 400 at minimum 3)for warings implend in script smthing like it: warnigs=0 function name(...) ... if warnings<=3 then outputchatbox(...) warnings=warinigs+1 else kick ... end
  21. sory i got it totally wrong! btw wouldnt frozing/unfrozing vehicle cause velocity poblems?
  22. well, i dotn agree with that it works only with 1.0: i have v1.0 with gta_sa.exe of 1.1, in menu is showing 1.1, tru i still can play mta
  23. when you finish making gui pres right click on clear screen and then pres "load gui", then click on gui u want to save, then right click again, and press "output to file", then if you are the owner of server go to server/resources/guieditor and find output.txd there
  24. https://community.multitheftauto.com/index.php?p= ... ils&id=141
  25. any errors?dont forget we are trying to help u, not u to us, do /debugscript 3 and see is there any bugs, othervise cant help
×
×
  • Create New...