Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. Hi, I thought about making a script that allow ppl to create links to images with real-time MTA server status - for putting them on websites, forum signatures, forum posts and whereever you want. Something like these: (these examples are STATIC images, not actual server statuses) Anyone interested? Some infos: Image dimensions: whatever you want, Image style: whatever you design, Dynamic text font: any TTF file, Features (what can be written): - server name - server ip and port - status (online/offline), - players count, - players list (with ping for each), - average ping, - ping from my server to your server, - custom text, - current map name, - when 1.1 comes - probably many more - what you set with these and this If there will be much ppl interesed I can add: - server country detection (may not be perfect) - last 24h stats [like in game-monitor stats] (need much effort, so i will do it only if like 50 ppl will request that) - any ideas - what more? Oh, and if anyone is wondering - why use this when gamemonitor have the same? well - this allows you to design whatever you want (from dimensions, through any detail, to background image) waiting for comments
  2. standard scripter is scripting gates and/or some mp3 music on servers unfortunately (or sometimes they want also hunter top times, and afk killers) - nothing complicated. nothing that require to get/set rotation at all. advanced ones will be happy to see this implemented. and this extra parameter is very good idea
  3. dzek (varez)

    Joypad Help

    this is not possible to rip off mta features to single player/samp/whatever.
  4. .. https://community.multitheftauto.com/?p=resources ... ls&id=1217
  5. i cant help you anymore. i have seen around 5 topics about this - none of them seems to be solved unfortunately
  6. you can set it in router - but it can broke your internet if isp (internet service providor) disallow it. also this is "main" setup of router - it can remove saved username and password for asdl - watch out if you dont know them (some isps are delivering pre-configured routers and it's a trouble to find ASDL login data) the best way - contact your isp and ask them.
  7. on very big maps loading seems to fail (but some guys have no problem with VERY VERY big maps).. idk wtf is wrong and how to fix it.. is your map very big?
  8. it will be available only if you keep it 8-24h online (game-monitor don't want to add temporary servers to the list) - anyway, having dynamic ip will be a problem here - changed ip - and you will have to wait again (after successful adding your server will stay on the list for few days - after few days of inactivity - it will be removed)
  9. umm, well, thanks, being some kind of no-life makes my replies fast hope i'll get new job soon.. whatever.. glad i helped
  10. thanks, i noticed that there is something wrong with rotations, but worked it around with some help - this can be useful for the future
  11. hmm, by map - not possible with pure event, but possible with something like: -- server: function getPositionRelatedToVehicle(theVeh, x, y) local xx, yy, zz = getElementPosition(theVeh) local rx, ry, rot = getElementRotation(theVeh) local lx = xx + math.sin (math.rad(-rot)) * x local ly = yy + math.cos (math.rad(-rot)) * y return lx,ly end addEvent("onVehicleSpawn", false) addEventHandler("onVehicleSpawn", getRootElement() function() -- source = spawned vehicle if (getElementModel(source)== 514) then local x,y,z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) local lx, ly = getPositionRelatedToVehicle(source, -3, -3) local trailer = createVehicle(591, lx, ly, z) setElementRotation(trailer, 0, 0, rz) attachTrailerToVehicle(trailer, source) end end) setTimer(function() local vehs = getElementsByType('vehicle') for key,val in ipairs(vehs) do local ed = getElementData(val, "spawnedEventTriggered") if (ed ~= true) then setElementData(val, "spawnedEventTriggered") triggerEvent("onVehicleSpawn", val) end end end, 500, 0) not tested. there is no other way afaik but remember - this can be cpu consuming when there is a lot of cars around the map (but i think it will be fine anyway)
  12. i dont like this btw: /emul/ia32-linux/ where did you buy that vps? tried to copy that file from that topic mentioned to same folder as ./mta-server ? are you sure you chmoded it to let it run? dunno if it needs +x but..
  13. in your router settings there should be option to allow enter admin panel from the internet - enable it and let me in (send passwords through pm). dont forget to block it after. also i'll set your local ip to static 192.168.1.4, as it can change too with default config - causing server to be not working again after restart or something.
  14. looks like it doesnt work (btw: i cant run mta now, checked with game-monitor.com) edit: try to restart your router edit2: you can test your server connectivity here: http://mta.dzek.eu/test.php
  15. what is your current ip? http://whatismyip.com/
  16. your local ip: 192.168.1.4 try to set it instead of 94.111 .... on this: http://www.imagup.com/data/1289059165.html
  17. im not sure if you should use 1 as table index. try: if #alivePlayers == 1 then for key,val in ipairs(alivePlayers) do -- your stuff here -- val is player element end
  18. i see you did something like that before. but i think your private ip should be ip from your local network (probably 192.168.1.2, but better check it: press windows key+r, type "cmd", enter, type "ipconfig /all", copy and paste contents on the forum) also: are you sure your ip is static? isn't it dynamic? check your current ip http://whatismyip.com/
  19. you need to PROPERLY forward your ports now
  20. replace: 94.111.249.25 with you don't need this (just read description!)
  21. example not related to your script, just general one result = executeSqlQuery (..) if (result and #result>0) then triggerClientEvent(getRootElement(), "updateGuiWithData", getRootElement(), result) end -- client addEvent("updateGuiWithData", true) addEventHandler("updateGuiWithData", getRootElement(), function(result) for key,val in pairs(result) do outputChatBox(tostring(key).." => "..val['column_name']) end end)
  22. if i know how edf's are working - i would do it. but i dont know and im too busy to think about mta again..
  23. via scripting only. somebody should do edf for creating water in map editor, but noone seems to be interesed.. https://wiki.multitheftauto.com/wiki/CreateWater
×
×
  • Create New...