Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. hmm, i once configured mta for debian lenny, it was a bit hard, but i succesfully passed all problems. too bad i dont have ready-to-go files anymore. try to do everything from scratch. try also contacting your dedi support (maybe they'll help, maybe not - it depens of their staff)
  2. there is no Multi Theft Auto for GTA IV. had the same on some broken VPS server. Is it your machine, or dedi/vps?
  3. they can't join or they can't download resources. these are two different things
  4. I suggest you to search before posting question like that - it was asked many times.
  5. dzek (varez)

    Variable

    there is NO recursion in my example..
  6. wtf? it's so random. teach yourself more, as i won't be doing everything for you. setPlayerNametagShowing to hide name tag. using this and a little wiki - you will make admin icon on admin head: https://forum.multitheftauto.com/viewtop ... 91&t=28836
  7. dzek (varez)

    Variable

    -- sending value from client to server, and back to client --[[ CLIENT SIDE SCRIPT ]]-- addEvent("sendToClient", true) addEventHandler("sendToClient", getRootElement(), function(var1) outputChatBox("got variable from server: ".. var1) end) myVar = "hello world!" triggerServerEvent("sendToServer", getLocalPlayer(), myVar) --[[ SERVER SIDE SCRIPT ]]-- addEvent("sendToServer", true) addEventHandler("sendToServer", getRootElement(), function(var1) varToSend = var1.." server says hello too!" triggerClientEvent(source, "sendToClient", source, varToSend) end) try this script, look on wiki pages for triggerServerEvent and triggerClientEvent (click on them in script above) I'm sure you will understand it
  8. you are mixing server-side (spawnPlayer) with client-side (onClientDownloadFinished). my modified play resource: function spawn(player) if getElementType(player)=="player" then local desiredSkin = getElementData(player, "skinID") if desiredSkin then skinID=desiredSkin else skinID= math.random(9,288) end spawnX = math.random(-691, -671) spawnY = math.random(962, 971) spawnZ = 20 repeat until spawnPlayer ( player, spawnX, spawnY, spawnZ, 180, skinID ) fadeCamera(player, true) setCameraTarget(player, player) end end addEventHandler("onPlayerJoin", root, function() setTimer(function(src) spawn(src) end, 5000, 1, source) end ) addEventHandler("onPlayerWasted", root, function() if getElementType(source)=="player" then local tmpID = getPedSkin(source) --outputChatBox(tmpID.."f") setElementData(source,"skinID",tmpID) setTimer(spawn, 5000, 1, source) end end )
  9. dzek (varez)

    Variable

    i dont understand what you mean
  10. same problem: https://forum.multitheftauto.com/viewtop ... 05&t=28825
  11. Settings? You can set your nickname there..
  12. dzek (varez)

    Variable

    i suggest not to use setElementData. triggerServerEvent, and after doing some actions triggerClientEvent back. waiting some ms in unreliable - sometimes server/client can get a lag..
  13. If you put this in correct folder - it should work. If you added map to running server - restart it, or type "refreshall" in server console. Also read this: https://forum.multitheftauto.com/viewtop ... 94&t=28849
  14. I hate when ppl don't read what I wrote, and asking same question just under answer I don't know where you installed MTA. %mta installation path% - By default it's C:\Program Files\MTA San Andreas So default path should be: C:\Program Files\MTA San Andreas\server\mods\deathmath\resources\ Eh.. Path can be different if you installed MTA to custom folder, or sometimes OS default Program Files path could be another (like C:\Program Files (x86), or maybe another drive letter than C)
  15. Something about stats: I'm actually working on such script, collecting all the data that was originally used plus some extras. It will be using mysql, and php website will be included in resource.
  16. afair in mta race you had to write only a part of nickname to votekick - much easier. its possible in mta:dm too, but its not by default so most servers wont have this feature anyway..
  17. illegal webhosting? Wtf are you talking about???
  18. https://wiki.multitheftauto.com/ Then click Server Manual. Path to resoures folder: %mta installation path%\server\mods\deathmath\resources\
  19. or https://wiki.multitheftauto.com/ And click SERVER MANUAL
  20. this is achieved with 4th argument (false) in addEventHandler. So again: Source check is unneeded
  21. Hey, theres few (two?) active topics. No need to bump. And when you reply to yourself, on topics list you get 1 in "reples" colums = less chance that somebody will open your topic than when it´s zero. Its better to wait a bit. About your problem: Post your xml example too.
  22. I think the best in your script is the IDEA I havent seen it in action, but i believe it's as cool as idea. Maybe you can post some youtube videos?
  23. Get a better translation. I can't uderstand what do you want.
  24. never seen any. after searching - i found one but private. so answer = no.
×
×
  • Create New...