Jump to content

battlefield

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by battlefield

  1. Hi everyone. I got some kind a bug in server. When I go to mapping my server and save new map it deletes all resource data except meta.xml .map file and login script. If anyone had this promlem and got solution please help or otherwise this topic is just a warning for everyone to backup files before going mapping.
  2. I had same error but on server login I had to remove spaces in resource name and it worked.
  3. Thanks for that it works but i have problem at GUI. [2010-12-30 23:49:00] WARNING: Loading script failed: FunFlight1\client\gui4.lua:146: 'end' expected (to close 'function' at line 124) near '' function createKeypad() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 142,276 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) keypadWindow = guiCreateWindow(X,Y,Width,Height,"Keypad",false) guiWindowSetSizable(keypadWindow,false) keypadButton1 = guiCreateButton(13,68,37,36,"1",false,keypadWindow) keypadButton2 = guiCreateButton(53,68,37,36,"2",false,keypadWindow) keypadButton3 = guiCreateButton(93,68,37,36,"3",false,keypadWindow) keypadButton4 = guiCreateButton(13,108,37,36,"4",false,keypadWindow) keypadButton5 = guiCreateButton(53,108,37,36,"5",false,keypadWindow) keypadButton6 = guiCreateButton(93,108,37,36,"6",false,keypadWindow) keypadButton7 = guiCreateButton(13,148,37,36,"7",false,keypadWindow) keypadButton8 = guiCreateButton(53,148,37,36,"8",false,keypadWindow) keypadButton9 = guiCreateButton(93,148,37,36,"9",false,keypadWindow) keypadButtonAsterix = guiCreateButton(13,188,37,36,"*",false,keypadWindow) keypadButton0 = guiCreateButton(53,188,37,36,"0",false,keypadWindow) keypadButtonHash = guiCreateButton(93,188,37,36,"#",false,keypadWindow) keypadButtonExit = guiCreateButton(13,228,37,36,"Exit",false,keypadWindow) keypadButtonEnter = guiCreateButton(53,228,37,36,"Enter",false,keypadWindow) keypadButtonClear = guiCreateButton(93,228,37,36,"Clear",false,keypadWindow) addEventHandler("onClientGUIClick",keypadWindow,processKeypadClicks,true) keypadGridlistDisplay = guiCreateGridList(13,25,117,33,false,keypadWindow) guiGridListSetSelectionMode(keypadGridlistDisplay,2) guiSetAlpha(keypadGridlistDisplay,0.6) keypadLabelDisplay = guiCreateLabel(14,26,115,30,"Enter Keycode.",false,keypadWindow) guiLabelSetColor(keypadLabelDisplay,255,000,000) guiLabelSetVerticalAlign(keypadLabelDisplay,"center") guiLabelSetHorizontalAlign(keypadLabelDisplay,"center",false) guiSetVisible(keypadWindow,false) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),createKeypad) function updateDisplay(text) if text then if tonumber(text) or text == "*" or text == "#" then guiSetText(keypadLabelDisplay,guiGetText(keypadLabelDisplay) .. text) else guiSetText(keypadLabelDisplay,text) end else guiSetText(keypadLabelDisplay,"") end end function processKeypadClicks(button,state) if button == "left" and state == "up" then if getElementType(source) == "gui-button" then triggerEvent("onKeypadButtonClicked",source,getElementData(keypadWindow,"keypadID")) end end end addEvent("onKeypadButtonClicked",false) addEventHandler("onKeypadButtonClicked",root, function(keypadID) if guiGetText(keypadLabelDisplay) == "Enter Keycode." or guiGetText(keypadLabelDisplay) == "Invalid Keycode." then updateDisplay() end if guiGetText(source) == "Clear" then updateDisplay() elseif guiGetText(source) == "Enter" then local code = guiGetText(keypadLabelDisplay) if code then triggerServerEvent("verifyKeypadCode",getLocalPlayer(),code,keypadID) end elseif guiGetText(source) == "Exit" then guiSetVisible(keypadWindow,false) updateDisplay("Enter Keycode.") showCursor(false,false) else updateDisplay(guiGetText(source)) end end ) addEvent("onKeypadVerificationSuccessful",true) addEventHandler("onKeypadVerificationSuccessful",root, function() guiSetVisible(keypadWindow,false) updateDisplay("Enter Keycode.") showCursor(false,false) end ) addEvent("onKeypadVerificationFailed",true) addEventHandler("onKeypadVerificationFailed",root, function() updateDisplay("Enter Keycode.") guiSetVisibel(keypadWindow,false) showCursor(false,false) outputChatBox("Wrong code contact [FF]Battlefield for more inf or visit [url=http://www.funflightserver.co.nr]http://www.funflightserver.co.nr[/url]") end ) addCommandHandler("gate",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","a51MainGateKeypadCode") end) addCommandHandler("rescue",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","dtresc") end) addCommandHandler("tank",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","a51tank") end) addCommandHandler("jetroom",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","a51rescar") end) addCommandHandler("car",function() guiSetVisible(keypadWindow,true) showCursor(true,true) setElementData(keypadWindow,"keypadID","a51car") end) addEventHandler("onKeypadVerificationSuccessful",root, function(keypadID) local gate = getElementByID(keypadID) if gate then local x = tonumber(getElementData(gate,"newPosX")) local y = tonumber(getElementData(gate,"newPosY")) local z = tonumber(getElementData(gate,"newPosZ")) moveObject(gate,1500,x,y,z) x = tonumber(getElementData(gate,"posX")) y = tonumber(getElementData(gate,"posY")) z = tonumber(getElementData(gate,"posZ")) setTimer(moveObject,5000,1,gate,1500,x,y,z) end end ) Can you help me about this one too please? EDIT:Nvm I fixed it.
  4. Hi it happend something strange to me that I had server online and went mapping. When I finished all of my resource data except of meta.xml .map and login script was deleted. Then I restored all of the data but now I have next warnings [2010-12-30 22:51:11] WARNING: FunFlight1\script4.lua:2: Bad argument @ 'addEventHandler' here is script4 addEvent("clientKickInactivePlayer",true) addEventHandler("clientKickInactivePlayer",root,kickInactivePlayer) function kickInactivePlayer() kickPlayer(client,"Please accept our rules.") end [2010-12-30 22:51:11] WARNING: Loading script failed: FunFlight1\script7.lua:3: '}' expected (to close '{' at line 1) near '[' and script7 local keypadCodes = { ["a51MainGateKeypadCode"] = "0000" ["a51tank"] = "0000" ["a51car"] = "0000" ["a51rescar"] = "0000" ["dtresc"] = "0000" } addEvent("verifyKeypadCode",true) addEventHandler("verifyKeypadCode",root,function(code,keypadID) if code then if code == keypadCodes[keypadID] then triggerClientEvent(client,"onKeypadVerificationSuccessful",client,keypadID) else triggerClientEvent(client,"onKeypadVerificationFailed",client,keypadID) end end end) Untill I added all the other things except a51MainGateKeypatCode it worked fine but now crashes. Note:all the codes are different they are set to 0000 only for forum P.S. Can someone tell me how to put all of that codes in xml file because I have no idea how to do that.
  5. welll a69 button ans that popup works fine now but timer still isnt't working i tried to put thet in but it isnt working function createRulesWindow() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 445,445 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) rulesWindow = guiCreateWindow(X,Y,Width,Height,"Rules",false) guiWindowSetMovable(rulesWindow,false) guiWindowSetSizable(rulesWindow,false) rulesButton = guiCreateButton(137,394,158,37,"Accept",false,rulesWindow) rulesLabel = guiCreateLabel(10,25,425,359,[[ Welcome to Fun Flight Server! Please carefully read the rules before accepting. By accepting the rules, you are agreeing to play by them. Anyone caught breaking these rules will be kicked and/or banned from this server. If you do not accept the rules within 90 seconds, you will be kicked. 1: No cheating. 2: No bug abuse. 3: No mods to your game. 4: No flaming. 5: Respect other players. 6: Be nice! 7: No shooting! 8: No jacking!]],false,rulesWindow) guiLabelSetHorizontalAlign(rulesLabel,"center",true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createRulesWindow() addEventHandler("onClientGUIClick",rulesButton,acceptRules,false) showCursor(true,true) end ) function acceptRules(button,state) if button == "left" and state == "up" then guiSetVisible(rulesWindow, false) showCursor(false,false) outputChatBox("Thank you for accepting our rules. Have fun!") if rulesWarningTimer then killTimer(rulesWarningTimer) rulesWarningTimer = nil end end end rulesWarningTimer = setTimer(inactivePlayer,30000,1,1) function inactivePlayer(status) if status == 1 then outputChatBox("Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,2) elseif status == 2 then outputChatBox("FINAL WARNING: Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,3) elseif status == 3 then triggerServerEvent("clientKickInactivePlayer",getLocalPlayer()) end end addEvent("clientKickInactivePlayer",true) function kickInactivePlayer() kickPlayer(client,"Please accept our rules.") end addEventHandler("clientKickInactivePlayer",root,kickInactivePlayer)
  6. Anyways where is it coming from post reply's only if you have some kind of solution in your mind because I'm stuck in it.
  7. Hi I made teleport window from 3rd GUI tut but I want it to show only when player types /teleport in chat box not at startup and when I click one button on it cursor hides and rules window is still showing. Temporary solution was to open chatbox and click accept whith cursor. And I have allso problem whith a 69 button. When i click it nothing happens. Here are the scripts teleport function createTeleportWindow() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 231,308 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) teleportWindow = guiCreateWindow(X,Y,Width,Height,"City Teleporter",false) guiWindowSetSizable(teleportWindow,false) teleportLabel = guiCreateLabel(18,23,191,33,"Click a button to teleport to that location",false,teleportWindow) guiLabelSetHorizontalAlign(teleportLabel,"center",true) teleportButtonLS = guiCreateButton(18,63,195,35,"Los Santos Airport",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonLS, teleportPlayer, false) teleportButtonSF = guiCreateButton(18,103,195,35,"San Fierro Airport",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonSF, teleportPlayer, false) teleportButtonLV = guiCreateButton(18,143,195,35,"Las Venturas Airport",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonLV, teleportPlayer, false) teleportButtonA96 = guiCreateButton(18,183,195,35, "A69",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonA69, teleportPlayer, false) teleportButtonVMA = guiCreateButton(18,223,195,35, "Abandoned Airfield",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonVMA, teleportPlayer, false) teleportButtonLVT = guiCreateButton(18,263,195,35, "LVAP Tower",false,teleportWindow) addEventHandler("onClientGUIClick", teleportButtonLVT, teleportPlayer, false) guiSetVisible(teleportWindow,true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createTeleportWindow() end ) function openTeleportWindow() guiSetVisible(teleportWindow,true) showCursor(true,true) end addCommandHandler("teleport",openTeleportWindow) function teleportPlayer(button,state) if button == "left" and state == "up" then if source == teleportButtonLS then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),1514.0584716797,-2450.4548339844,13.16042137146,180) outputChatBox("Welcome to Los Santos Airport!") elseif source == teleportButtonSF then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),-1262.642578125,16.495651245117,13.754295349121,315) outputChatBox("Welcome to San Fierro Airport!") elseif source == teleportButtonLV then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),1318.1278076172,1264.7803955078,10.427061080933,0) outputChatBox("Welcome to Las Venturas Airport!") elseif source == telportButtonA69 then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),353.88186645508,2016.3455810547,22.246082305908,270) outputChatBox("Welcome to Area 69!") elseif source == teleportButtonVMA then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),414.01834106445,2532.2358398438,16.187467575073,180) outputChatBox("Welcome to Abandoned Airfield!") elseif source == teleportButtonLVT then triggerServerEvent("movePlayerToPosition",getLocalPlayer(),1291.3555908203,1579.6163330078,50.296875,90) outputChatBox("Welcome to LVAP Tower!") end guiSetVisible(teleportWindow, false) showCursor(false) end end rules function createRulesWindow() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 445,445 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) rulesWindow = guiCreateWindow(X,Y,Width,Height,"Rules",false) guiWindowSetMovable(rulesWindow,false) guiWindowSetSizable(rulesWindow,false) rulesButton = guiCreateButton(137,394,158,37,"Accept",false,rulesWindow) rulesLabel = guiCreateLabel(10,25,425,359,[[ Welcome to Fun Flight Server! Please carefully read the rules before accepting. By accepting the rules, you are agreeing to play by them. Anyone caught breaking these rules will be kicked and/or banned from this server. If you do not accept the rules within 90 seconds, you will be kicked. 1: No cheating. 2: No bug abuse. 3: No mods to your game. 4: No flaming. 5: Respect other players. 6: Be nice! 7: No jacking!]],false,rulesWindow) guiLabelSetHorizontalAlign(rulesLabel,"center",true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createRulesWindow() addEventHandler("onClientGUIClick",rulesButton,acceptRules,false) showCursor(true,true) end ) function acceptRules(button,state) if button == "left" and state == "up" then guiSetVisible(rulesWindow, false) showCursor(false,false) outputChatBox("Thank you for accepting our rules. Have fun!") if rulesWarningTimer then killTimer(rulesWarningTimer) rulesWarningTimer = nil end end end function inactivePlayer(status) if status == 1 then outputChatBox("Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,2) elseif status == 2 then outputChatBox("FINAL WARNING: Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,3) elseif status == 3 then triggerServerEvent("clientKickInactivePlayer",getLocalPlayer()) end end addEvent("clientKickInactivePlayer",true) function kickInactivePlayer() kickPlayer(client,"Please accept our rules.") end addEventHandler("clientKickInactivePlayer",root,kickInactivePlayer) lua function moveThePlayer(x,y,z,rotation) if x and y and z and rotation then local skin = getElementModel(client) spawnPlayer(client,x,y,z,rotation,skin) setCameraTarget(client,client) end end addEvent("movePlayerToPosition",true) addEventHandler("movePlayerToPosition",root,moveThePlayer) And could you please help me with timer at rules window it doesn't kicks or show warnings
  8. Thanks rules windown works now but what about the top first script because login button doesnt show and after new script i can't even write in username and password
  9. Thanks but i cant get to login window because i have accept rules button problem if i click it nothing happens and server doesnt say any errors.Here is the script function createRulesWindow() local sWidth, sHeight = guiGetScreenSize() local Width,Height = 445,445 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) rulesWindow = guiCreateWindow(X,Y,Width,Height,"Rules",false) guiWindowSetMovable(rulesWindow,false) guiWindowSetSizable(rulesWindow,false) rulesButton = guiCreateButton(137,394,158,37,"Accept",false,rulesWindow) rulesLabel = guiCreateLabel(10,25,425,359,[[ Welcome to Fun Flight Server! Please carefully read the rules before accepting. By accepting the rules, you are agreeing to play by them. Anyone caught breaking these rules will be kicked and/or banned from this server. If you do not accept the rules within 90 seconds, you will be kicked. 1: No cheating. 2: No bug abuse. 3: No mods to your game. 4: No flaming. 5: Respect other players. 6: Be nice!]],false,rulesWindow) guiLabelSetHorizontalAlign(rulesLabel,"center",true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createRulesWindow() showCursor(true,true) end ) function acceptRules(button,state) if button == "left" and state == "up" then guiSetVisible(rulesWindow, false) showCursor(false,false) outputChatBox("Thank you for accepting our rules. Have fun!") if rulesWarningTimer then killTimer(rulesWarningTimer) rulesWarningTimer = nil end end end function inactivePlayer(status) if status == 1 then outputChatBox("Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,2) elseif status == 2 then outputChatBox("FINAL WARNING: Please accept our rules or be kicked.") rulesWarningTimer = setTimer(inactivePlayer,30000,1,3) elseif status == 3 then triggerServerEvent("clientKickInactivePlayer",getLocalPlayer()) end end addEvent("clientKickInactivePlayer",true) function kickInactivePlayer() kickPlayer(client,"Please accept our rules.") end addEventHandler("clientKickInactivePlayer",root,kickInactivePlayer) EDIT:Few secs ago I removed rules window and try to login but cursor didnt show and login buton didnt show too.
  10. OMFG it works thanks man you helped a lot. Now it comes to another probem at login window I cant see Login button and whenever I press t it opens chatbox and in meanwhile I made second GUI script but when I press accept nothing happens.
  11. Hi! I have problem whith downloading client data. I start my server with MTA server.exe and go online to set resource. Then I go in MTA San Andreas and try to play on my own server but when it starts to download client data id says HTTP said error or something and throws me out of my server in main MTA menu. As the title says the script that I'm trying to download is login window. This is the script function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow (X, Y, Width, Height, "Please log in.", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLenght(edtUser, 50) guiEditSetMaxLenght(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.025 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log in.", true, wdwLogin) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() outputChatBox("Welcome to Fun Flight Server. Please log in.") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has ocurred. Please visit funflightserver.webs.com and report this error.") end showCursor(true) guiSetInputEnabled(true) end ) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function clientSubmitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter wanted username and password.") end end end Any ideas ?
  12. 1.When I do refresh it says four errors that are for resources that are WIP but it allso says something about couldn't parse met.xml file for editor_dump 2.,3. It works now thank you 4. check the whole topic for my script ( I don't have more scripts than that one yet ) And varez no you are not right i have meta file and one .map file and of course first script for making you spawn where you want.
  13. It says resource cannot be found but i have it there or should I just reinstall server data and keep my .map datas only? And if i can ask here I'd like to ask how to make that debugfile.log or that what is in debugging section?
  14. Lua function joinHandler() local x = 1315.84 local y = 1278.391 local z = 10.520 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to Fun Flight Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) meta <meta> <info author="Battlefield" type="aviation" name="Fun Fly" description="Fun Fly" /> <script src="script.lua" /> <map src="kr nek.map" /> </meta> I start server as usualy then i go to http://127.0.0.1:22005 enter my username and password. After that I click myserver and in right colum I press start and after that refresh but nothing changes and when I look in my server cmd it says Warning: Acess denied @ 'startresource' even if I try some other resource it does the same.
  15. OK here is the whole ACL <acl> <group name="Everyone"> <acl name="Default" /> <object name="user.*" /> <object name="resource.*" /> </group> <group name="Moderator"> <acl name="Moderator" /> <object name="resource.mapcycler" /> <object name="resource.mapmanager" /> <object name="resource.resourcemanager" /> <object name="resource.votemanager" /> </group> <group name="SuperModerator"> <acl name="Moderator" /> <acl name="SuperModerator" /> </group> <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="user.Battlefield" /> <object name="resource.webadmin" /> </group> <group name="Console"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="user.Console" /> </group> <group name="RPC"> <acl name="RPC" /> </group> <group name="MapEditor"> <acl name="Default" /> <acl name="MapEditor" /> <object name="resource.editor_main" /> <object name="resource.edf" /> </group> <group name="raceACLGroup"> <acl name="Default" /> <acl name="raceACL" /> <object name="resource.race" /> </group> <acl name="Default"> <right name="general.ModifyOtherObjects" access="false" /> <right name="general.http" access="false" /> <right name="command.start" access="false" /> <right name="command.stop" access="false" /> <right name="command.stopall" access="false" /> <right name="command.gamemode" access="false" /> <right name="command.changemode" access="false" /> <right name="command.changemap" access="false" /> <right name="command.stopmode" access="false" /> <right name="command.stopmap" access="false" /> <right name="command.skipmap" access="false" /> <right name="command.restart" access="false" /> <right name="command.refresh" access="false" /> <right name="command.refreshall" access="false" /> <right name="command.addaccount" access="false" /> <right name="command.delaccount" access="false" /> <right name="command.debugscript" access="false" /> <right name="command.chgpass" access="false" /> <right name="command.loadmodule" access="false" /> <right name="command.upgrade" access="false" /> <right name="command.mute" access="false" /> <right name="command.crun" access="false" /> <right name="command.srun" access="false" /> <right name="command.run" access="false" /> <right name="command.unmute" access="false" /> <right name="command.kick" access="false" /> <right name="command.ban" access="false" /> <right name="command.banip" access="false" /> <right name="command.unbanip" access="false" /> <right name="command.shutdown" access="false" /> <right name="command.install" access="false" /> <right name="command.aexec" access="false" /> <right name="command.whois" access="false" /> <right name="command.whowas" access="false" /> <right name="function.executeCommandHandler" access="false" /> <right name="function.setPlayerMuted" access="false" /> <right name="function.addAccount" access="false" /> <right name="function.addBan" access="false" /> <right name="function.removeBan" access="false" /> <right name="function.removeAccount" access="false" /> <right name="function.setAccountPassword" access="false" /> <right name="function.kickPlayer" access="false" /> <right name="function.banIP" access="false" /> <right name="function.banPlayer" access="false" /> <right name="function.banSerial" access="false" /> <right name="function.getBansXML" access="false" /> <right name="function.unbanIP" access="false" /> <right name="function.unbanSerial" access="false" /> <right name="function.getClientIP" access="false" /> <right name="function.setServerPassword" access="false" /> <right name="function.getServerPassword" access="false" /> <right name="function.callRemote" access="false" /> <right name="function.startResource" access="false" /> <right name="function.stopResource" access="false" /> <right name="function.restartResource" access="false" /> <right name="function.createResource" access="false" /> <right name="function.copyResource" access="false" /> <right name="function.addResourceMap" access="false" /> <right name="function.addResourceConfig" access="false" /> <right name="function.removeResourceFile" access="false" /> <right name="function.setResourceDefaultSetting" access="false" /> <right name="function.removeResourceDefaultSetting" access="false" /> <right name="function.redirectPlayer" access="false" /> <right name="function.aclReload" access="false" /> <right name="function.aclSave" access="false" /> <right name="function.aclCreate" access="false" /> <right name="function.aclDestroy" access="false" /> <right name="function.aclSetRight" access="false" /> <right name="function.aclRemoveRight" access="false" /> <right name="function.aclCreateGroup" access="false" /> <right name="function.aclDestroyGroup" access="false" /> <right name="function.aclGroupAddACL" access="false" /> <right name="function.aclGroupRemoveACL" access="false" /> <right name="function.aclGroupAddObject" access="false" /> <right name="function.aclGroupRemoveObject" access="false" /> <right name="general.adminpanel" access="false" /> <right name="general.tab_players" access="false" /> <right name="general.tab_resources" access="false" /> <right name="general.tab_server" access="false" /> <right name="general.tab_bans" access="false" /> <right name="general.tab_adminchat" access="false" /> <right name="command.freeze" access="false" /> <right name="command.shout" access="false" /> <right name="command.spectate" access="false" /> <right name="command.slap" access="false" /> <right name="command.setgroup" access="false" /> <right name="command.sethealth" access="false" /> <right name="command.setarmour" access="false" /> <right name="command.setmoney" access="false" /> <right name="command.setskin" access="false" /> <right name="command.setteam" access="false" /> <right name="command.giveweapon" access="false" /> <right name="command.setstat" access="false" /> <right name="command.jetpack" access="false" /> <right name="command.warp" access="false" /> <right name="command.setdimension" access="false" /> <right name="command.setinterior" access="false" /> <right name="command.givevehicle" access="false" /> <right name="command.repair" access="false" /> <right name="command.blow" access="false" /> <right name="command.destroy" access="false" /> <right name="command.customize" access="false" /> <right name="command.setcolor" access="false" /> <right name="command.setpaintjob" access="false" /> <right name="command.listmessages" access="false" /> <right name="command.readmessage" access="false" /> <right name="command.listresources" access="false" /> <right name="command.execute" access="false" /> <right name="command.setpassword" access="false" /> <right name="command.setwelcome" access="false" /> <right name="command.setgame" access="false" /> <right name="command.setmap" access="false" /> <right name="command.setweather" access="false" /> <right name="command.blendweather" access="false" /> <right name="command.setblurlevel" access="false" /> <right name="command.setwaveheight" access="false" /> <right name="command.setskygradient" access="false" /> <right name="command.setgamespeed" access="false" /> <right name="command.setgravity" access="false" /> <right name="command.settime" access="false" /> <right name="command.unban" access="false" /> <right name="command.banserial" access="false" /> <right name="command.unbanserial" access="false" /> <right name="command.listbans" access="false" /> </acl> <acl name="Moderator"> <right name="general.ModifyOtherObjects" access="false" /> <right name="command.gamemode" access="false" /> <right name="command.changemode" access="false" /> <right name="command.changemap" access="false" /> <right name="command.stopmode" access="false" /> <right name="command.stopmap" access="false" /> <right name="command.skipmap" access="false" /> <right name="command.mute" access="true" /> <right name="command.unmute" access="true" /> <right name="command.whois" access="true" /> <right name="command.whowas" access="true" /> <right name="function.setPlayerMuted" access="true" /> <right name="function.kickPlayer" access="true" /> <right name="function.banIP" access="true" /> <right name="function.banPlayer" access="true" /> <right name="function.banSerial" access="true" /> <right name="function.getBansXML" access="true" /> <right name="function.unbanIP" access="false" /> <right name="function.unbanSerial" access="false" /> <right name="function.getClientIP" access="true" /> <right name="function.startResource" access="false" /> <right name="function.stopResource" access="false" /> <right name="function.restartResource" access="true" /> <right name="function.redirectPlayer" access="false" /> <right name="general.adminpanel" access="true" /> <right name="general.tab_players" access="true" /> <right name="general.tab_resources" access="false" /> <right name="general.tab_server" access="false" /> <right name="general.tab_bans" access="true" /> <right name="general.tab_adminchat" access="true" /> <right name="command.kick" access="true" /> <right name="command.freeze" access="true" /> <right name="command.shout" access="true" /> <right name="command.spectate" access="true" /> <right name="command.slap" access="true" /> <right name="command.setgroup" access="false" /> <right name="command.sethealth" access="false" /> <right name="command.setarmour" access="false" /> <right name="command.setmoney" access="false" /> <right name="command.setskin" access="false" /> <right name="command.setteam" access="false" /> <right name="command.giveweapon" access="false" /> <right name="command.setstat" access="false" /> <right name="command.jetpack" access="false" /> <right name="command.warp" access="true" /> <right name="command.setdimension" access="true" /> <right name="command.setinterior" access="true" /> <right name="command.createteam" access="false" /> <right name="command.destroyteam" access="false" /> <right name="command.givevehicle" access="true" /> <right name="command.repair" access="true" /> <right name="command.blowvehicle" access="true" /> <right name="command.destroyvehicle" access="true" /> <right name="command.customize" access="true" /> <right name="command.setcolor" access="true" /> <right name="command.setpaintjob" access="true" /> <right name="command.listmessages" access="true" /> <right name="command.readmessage" access="true" /> <right name="command.listresources" access="true" /> <right name="command.start" access="false" /> <right name="command.stop" access="false" /> <right name="command.stopall" access="false" /> <right name="command.restart" access="false" /> <right name="command.execute" access="false" /> <right name="command.setpassword" access="false" /> <right name="command.setwelcome" access="false" /> <right name="command.setgame" access="false" /> <right name="command.setmap" access="false" /> <right name="command.setweather" access="false" /> <right name="command.blendweather" access="true" /> <right name="command.setblurlevel" access="true" /> <right name="command.setwaveheight" access="true" /> <right name="command.setskygradient" access="true" /> <right name="command.setgamespeed" access="true" /> <right name="command.setgravity" access="true" /> <right name="command.settime" access="true" /> <right name="command.ban" access="false" /> <right name="command.unban" access="false" /> <right name="command.banip" access="false" />
  16. well here is my code <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="user.Battlefield" /> <object name="resource.webadmin" /> </group> and varez i don't know what you mean whith that and i start my gamemodes from webserver and it makes that warning on server.
  17. Hello I have a problem. I was trying to make rules window but i fail and now i can't start my gamemode. I get WARNING: Acess denied @ 'start resource'. Please help me.
  18. Hello I'm new on these forums and in scripting. I have problem whith that 1st GUI tutorial when you make Login window. My code is function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() outputChatBox("Welcome to Fun Flight Server, please log in.") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has occurred please report this error in bugs article on funflightserver.webs.com .") end showCursor(true) guiSetInputEnabled(true) end ) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function clientSubmitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter username and password.") end end end I admit i copied it from that GUI tutorial but I don't know what is wrong when i start the server i go online and it does everything okay i enter my admin name and pass, but when I click on login button nothing happens. here is script.lua and meta too if it's nedded meta <meta> <info author="Battlefield" type="aviation" name="Fun Fly" description="Fun Fly" /> <script src="script.lua" /> <map src="kr nek.map" /> <script src="client/login window.lua" type="client" /> </meta> script.lua function loginHandler(username,password) if username == "user" and password == "apple" then if (client) then spawnPlayer(client, 1315,848, 1278,391, 10,520) fadeCamera(client, true) outputChatBox("Welcome to Fun Flight server.", client) end else outputChatBox("Invalid username and password. Please re-connect and try again choosing other username and password.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) the spawn cords are to spawn near Las Venturas Flight school on LVAP. I would ask you for some help whith mooving doors at LVAP where in single player AT-400 is in. I would wan't to make a script to open that doors. And there is another question is there any chace of making vechile private so noone can drive them only the person who "owns"them.
×
×
  • Create New...