Jump to content

keymetaphore

Members
  • Posts

    175
  • Joined

  • Last visited

Everything posted by keymetaphore

  1. LUA is good and I am sure it's never gonna be changed.
  2. I can't press anything, I can't close it, none of the buttons are working.
  3. Check if the vehicle entering is a Rhino ( event handler onvehicleenter ), and if it is, cancelEvent() my keyboard ain't workin correctly.
  4. Sometimes when I alt tab and get back after some time, nothing is functional on that GUI. I have gridlist there. @thisdp
  5. That's because MTA is running in fullscreen. Try setting it to borderless mode, for me that works just fine.
  6. I have exactly the same router as you. You have to set port mapping not triggering.
  7. That is probably caused due to that function getFixedName. See what happens if you remove it.
  8. function adminuzi(thePlayer, commandName, ...) outputDebugString("function is working P1") for i,v in pairs(getElementsByType( "player" )) do for group, serverGroupName in pairs( names ) do if isGuestAccount( getPlayerAccount( v ) ) then return end if group then outputDebugString("P2") if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then outputDebugString("P3 - acl valid") message = table.concat({...}, " ") groupName = names[group] outputChatBox("#0088FF[SUPERFUN-Rangos]#d8001f "..groupName.." "..getFixedName(thePlayer)..": "..message,v,0,0,0,true) end end end end end addCommandHandler("asay", adminuzi) Try that and tell me what outputs in your /debugscript 3. Maybe something shows up when the resource starts? at debugscript 3 )
  9. Is the resource running? Anything in /debugscript 3? Make sure that you are LOGGED IN
  10. Man, are you sure that no one has access to your FTP and do you trust all admins? It can't just stop working. Have you edited anything? Please post the current code, meta.xml and server log where the resource could been restarted or interfered with. Maybe you have changed ACL?
  11. I'm pretty sure that I just changed the position of outputChatBox() and set it not to output to root but v - the player in that loop. This is not the most effective solution, but it works.
  12. local names = { ["Admin"] = "Tulajdonos", ["LathatatlanAdmin"] = "Tulajdonos", ["FoAdmin"] = "FőAdmin", ["LFoAdmin"] = "FőAdmin", ["Adminseged"] = "AdminSegéd", ["LathatatlanAdminseged"] = "AdminSegéd", ["KisAdmin"] = "Admin", ["Fejleszto"] = "Fejlesztő", ["Moderator"] = "Moderátor", ["LathatatlanModi"] = "Moderátor" } function adminuzi(thePlayer, commandName, ...) for i,v in pairs(getElementsByType( "player" )) do for group, serverGroupName in pairs( names ) do if isGuestAccount( getPlayerAccount( v ) ) then return end if group then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group ) then message = table.concat({...}, " ") groupName = names["group"] outputChatBox("#0088FF["..groupName.."]#d8001f "..getPlayerName(thePlayer)..": "..message,v,0,0,0,true) end end end end end addCommandHandler("asay", adminuzi) Should work.
  13. local names = { ["Admin"] = "Tulajdonos", ["LathatatlanAdmin"] = "Tulajdonos", ["FoAdmin"] = "FőAdmin", ["LFoAdmin"] = "FőAdmin", ["Adminseged"] = "AdminSegéd", ["LathatatlanAdminseged"] = "AdminSegéd", ["KisAdmin"] = "Admin", ["Fejleszto"] = "Fejlesztő", ["Moderator"] = "Moderátor", ["LathatatlanModi"] = "Moderátor" } function adminuzi(thePlayer, commandName, ...) for i,v in pairs(getElementsByType( "player" )) do for group, serverGroupName in pairs( names ) do if isGuestAccount( getPlayerAccount( v ) ) then return end if group then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group ) then message = table.concat({...}, " ") groupName = names["group"] outputChatBox("#0088FF["..groupName.."]#d8001f "..getPlayerName(thePlayer)..": "..message,getRootElement(),0,0,0,true) end end end end end addCommandHandler("asay", adminuzi) @50cent Not tested though.
  14. Forgot to mention, are there any errors in /debugscript 3?
  15. Can you check the permissions? Maybe they are not correct, but as they're correct as a default they should be.
  16. The log says it couldn't find some resources. Are they at the right place and not in a subfolder? Is there a correct meta.xml? (I assume there is as it worked on your Windows) Try to replace resources lines @ mtaserver.conf from your Windows server. Check if you have correct CHMOD permissions.
  17. good one haha guess the UNIX time system loves him
  18. The event must be called every five minutes. Or setTimer () function autoRespawn() -- changed the name because it was misleading local vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do if not getVehicleOccupant(v,0) and not getVehicleOccupant(v,1) and not getVehicleOccupant(v,2) and not getVehicleOccupant(v,3) then respawnVehicle (v) end end end setTimer(autoRespawn, 5000, 0) -- timer that runs every 5 mins all the time. If you want to keep the admin function, you'll have to get it into this one or just leave the last one and add this. @orcun99
  19. No. Do you have a router? Why can't you access the router configuration panel? @willieisback
×
×
  • Create New...