Jump to content

MIKI785

Members
  • Posts

    1,131
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MIKI785

  1. Hello, I've got a problem with one of my servers, one particular server just isn't responding and it's impossible to connect to it (request times out) although all the other servers run fine. The UDP port isn't blocked in any way (it's open) and I didn't change any configurations, it just stopped working. I even tried restarting the whole VPS but it didn't help in any way. What is the issue then? I'm using Linux Debian 7
  2. string.sub would be the best one and MTA provides gettok function.
  3. MIKI785

    INV Sys

    I dont think this is right at all (but i might be wrong im no SQL expert), the way i do it is that i select the row and check if row count is 1, if it is update it or add it otherwise.
  4. MIKI785

    [Question]

    Approach this logically, connect/disconnect/reconnect/quit etc. are commands in the client itself (ie. they work even when not connnected to any server), they are not in the server itself or client scripts so you can't affect them in any way. Logout is server command so you can affect that one however you want. It might be clientside command and you're cancelling it on the server.
  5. Why would you do that? If you want all of them then just edit race (assuming it's default race) and you won't have to edit anything else afterwards.
  6. Can't you read? I guess you didn't provide value for admin_level and there's no default so it throws warning (although it's really error since it says it failed). Interesting it does this, it should just leave it blank I believe but I use MySQL and MySQL module to connect to it so maybe it works differently.
  7. That's because onMarkerHit triggers for any element, including vehicles. Try this: local marker = createMarker(1567.3, -1609.7, 12.6, "cylinder", 2, 53, 53, 255, 255) function spawn(player) if getElementType(player) ~= "player" then return end if isPedInVehicle (player) then outputChatBox ("You already are in a vehicle!") else local car1 = createVehicle(596, 1567.4, -1610.5, 14, 0, 0, 180) warpPedIntoVehicle(player, car1) end end addEventHandler("onMarkerHit", marker, spawn)
  8. If you're stretching the image then of course its quality will decrease.
  9. MIKI785

    Import Map

    You're replacing the same model 4 times but only the last one will take effect. That is: dff_floors = engineLoadDFF ( "edemhill3.dff", 0 ) engineReplaceModel ( dff_floors, 3781 ) Btw. model ID is missing in engineLoadDFF. - ignore that. it got changed.
  10. It's nice but if it's unable to stream video files than it's kind of useless since people would have to download the whole video before it could be played and some files can be very large unless it's just few seconds long.
  11. Np, If you want to use 'veh' you have to define it: veh = getPedOccupiedVehicle(getPlayerFromName("yournick")) And then use veh instead of that function.
  12. Why did you remove vehicle? And you didn't change the number to int... I asked if you had 'veh' defined... Try this: setVehicleHandling(getPedOccupiedVehicle(getPlayerFromName("yournick")), "mass", 2000) Replace yournick by your nick obviously..
  13. Simplest solution would be to check if he's in particular ACL group on onPlayerLogin and if so set some element data (eg. admin) to true. Then on the client just check if getElementData(localPlayer, "admin") then and that's it.
  14. MIKI785

    Import Map

    One model ID can only have one model (.dff file), so what you're doing is you replace it multiple times but only the last one is in effect.
  15. 2000 probably shouldn't be a string and do you have "veh" defined? Otherwise there's nothing wrong with it. Btw. i suggest using srun as that makes output invisible to other players.
  16. MIKI785

    XML Files

    Well, do you send the XML to the client? Because if you don't then it creates the empty file.
  17. MIKI785

    IP domain

    That's just DNS... mta will resolve the address as IP and connect to that server, that's all.
  18. MIKI785

    Banned Serial

    It's up to the server management who they ban, it's their banlist, not MTA's. And your serial is fixed, like everyone else's.
  19. If it's client-side you can calculate it using getElementMatrix, there's an example on wiki that's exactly what you need.
  20. MIKI785

    XML Files

    Is this server side?
  21. I ignored this for a while but now it's just annoying, i'm using mta_mysql module and need it for development on my local server. It worked fine with 1.3 but when I try to load it up with 1.4 server it magically doesn't work, saying the file isn't there although it is. It's the exact same server, same config, same module but it just doesn't work with 1.4 so I have to use 1.3 if I want to script something, what the hell? Even running the server as administrator doesn't resolve anything. Strange is that the linux version on public server works with no problems.
  22. memberlist.php&first_char=m#memberlist That's what you get when you try to filter member list by first letter of the nickname. The 404 is there cause the GET request is wrong since there's '&' after filename, should be '?' for first argument. memberlist.php?first_char=m#memberlist Works correctly.
×
×
  • Create New...