Jump to content

xeon17

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xeon17

  1. Error on line 1659 but the code even not have this line?
  2. Don't cry it's a game , why you just don't check it ingame? P.S it's good
  3. Just read the picture you posted .
  4. Better , now i know what's the problem so i can help you. This should work , Server.lua -- Copyright (c) 2008, Alberto Alonso -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright notice, this -- list of conditions and the following disclaimer in the documentation and/or other -- materials provided with the distribution. -- * Neither the name of the superman script nor the names of its contributors may be used -- to endorse or promote products derived from this software without specific prior -- written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. local groups = { "group1", "group2", "group3" } local Superman = {} -- Static global values local rootElement = getRootElement() local thisResource = getThisResource() -- Resource events addEvent("superman:start", true) addEvent("superman:stop", true) -- -- Start/stop functions -- function Superman.Start() local self = Superman addEventHandler("superman:start", rootElement, self.clientStart) addEventHandler("superman:stop", rootElement, self.clientStop) end addEventHandler("onResourceStart", getResourceRootElement(thisResource), Superman.Start, false) function Superman.clientStart() setElementData(client, "superman:flying", true) setElementData(client, "forcedanimation", true) end function Superman.clientStop() removeElementData(client, "superman:flying") removeElementData(client, "forcedanimation") end addEventHandler("onPlayerLogin", root, function ( _,account ) local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( groups ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then setElementData(source, "canFly", true) end end end) @EDIT , The command /debugscript 3 is only for ingame!
  5. (facepalm) local groups = { "Owner", "Co-Owner", "SuperModerator" , "you" , "need" , "to" , "learn" , "lua" } so hard? can you tell me what no work , why not work ? debugscript3 ? console bugs? I won't lose my time to check the script and solve bugs for you.
  6. Why you create two topics for the same thing? viewtopic.php?f=91&t=80367&start=15
  7. xeon17

    I need help

    setPedClothes dosen't exist , you can use this function https://wiki.multitheftauto.com/wiki/AddPedClothes , but will only work for skin (ID 0 ) CJ. If you want to change skin of a player you can use , https://wiki.multitheftauto.com/wiki/SetElementModel
  8. xeon17

    I need help

    You put client functions & server functions together. https://wiki.multitheftauto.com/wiki/Cli ... _Functions And what's this? setPedClothes(265, 17, 4)
  9. xeon17

    I need help

    One question , from where you have this script
  10. It kind of loads, if you right click and select "Open image in new tab" Oh , thanks working now @Topic Base looks nice , i'll sure download and check. Good Job.
  11. Thanks for the screenshots , admin panel & logs looks awesome!
  12. Looks cool , but can you show screenshots of some scripts , please?
  13. xeon17

    Internet Speed

    I'm better than TAPL :ddd
  14. Replace group1,group2,group3 with your acl groups..
  15. To make it easier i'll create a table with acl groups for you. line 29 -- Copyright (c) 2008, Alberto Alonso -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright notice, this -- list of conditions and the following disclaimer in the documentation and/or other -- materials provided with the distribution. -- * Neither the name of the superman script nor the names of its contributors may be used -- to endorse or promote products derived from this software without specific prior -- written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. local groups = { "group1", "group2", "group3" } local Superman = {} -- Static global values local rootElement = getRootElement() local thisResource = getThisResource() -- Resource events addEvent("superman:start", true) addEvent("superman:stop", true) -- -- Start/stop functions -- function Superman.Start() local self = Superman addEventHandler("superman:start", rootElement, self.clientStart) addEventHandler("superman:stop", rootElement, self.clientStop) end addEventHandler("onResourceStart", getResourceRootElement(thisResource), Superman.Start, false) function Superman.clientStart() setElementData(client, "superman:flying", true) setElementData(client, "forcedanimation", true) end function Superman.clientStop() removeElementData(client, "superman:flying") removeElementData(client, "forcedanimation") end addEventHandler("onPlayerLogin", root, function ( _,account ) local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( groups ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then setElementData(source, "canFly", true) end end end end)
  16. Just remove the following function from the ACL's then they can't use the admin panel. <right name="general.adminpanel" access="false"></right>
  17. Stop double posting , just edit your last post. You want to add a button in admin panel for superman? I really no understand you. use GuiCreateButton
×
×
  • Create New...