-
Posts
175 -
Joined
-
Last visited
Everything posted by keymetaphore
-
[Scripting] Changing the programming language.
keymetaphore replied to Marcosha_'s topic in Suggestions
LUA is good and I am sure it's never gonna be changed. -
I can't press anything, I can't close it, none of the buttons are working.
-
Check if the vehicle entering is a Rhino ( event handler onvehicleenter ), and if it is, cancelEvent() my keyboard ain't workin correctly.
-
Sometimes when I alt tab and get back after some time, nothing is functional on that GUI. I have gridlist there. @thisdp
-
That's because MTA is running in fullscreen. Try setting it to borderless mode, for me that works just fine.
-
I have exactly the same router as you. You have to set port mapping not triggering.
-
Could not start HTTP server on interface '86.127.244.111' and port '22003'! Why?
keymetaphore replied to ShadowLoleris's question in Server
You have another server open. -
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
Remove the player loop. It's not needed.- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
You gotta log in, I guess.- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
That is probably caused due to that function getFixedName. See what happens if you remove it.- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
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 )- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
Is the resource running? Anything in /debugscript 3? Make sure that you are LOGGED IN- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
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?- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
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.- 26 replies
-
- 1
-
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
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.- 26 replies
-
- 1
-
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
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.- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
Forgot to mention, are there any errors in /debugscript 3?- 26 replies
-
- bug
- interesting
- (and 10 more)
-
[BUG] How to fix this interesting bug in this script?
keymetaphore replied to Tokio's topic in Scripting
Where is the table 'names' specified?- 26 replies
-
- bug
- interesting
- (and 10 more)
-
good one haha guess the UNIX time system loves him
-
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
-
No. Do you have a router? Why can't you access the router configuration panel? @willieisback