Jump to content

-RoCk-Alex

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by -RoCk-Alex

  1. thanks brother it worked
  2. still not changing the image GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) GUIEditor_Label[1] = guiCreateLabel(613,660,201,25,"MadeBy -RoCk-Alex",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],225,225,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/ar.png",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas\n/base [id] - for starting bases\n/end - for ending the round\n/add [id] - for adding the player to round\n/resetscore - restart all players and teams score\n/gunmenu [id] - for giving the gunmenu for the player\n/remove [id] - for removing the player from the round\n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player\n/vote [base/arena] [id/ids] - for start the voting\n/car [id] - for get the vehicle in main lobby\n/clean - for restart the rounds history\n/pause - for pausing/repausing the round\n/swap - for change the teams sides\n/tp [id1] [id2] - for teleport the player1 to the player2\n/heal [id] - for heal the player\n/healall - for heal all players\n/startmatch [base/tdm] [rounds] - for starting the match\n/endmatch - for ending the match\n/gun - re weapon select\n/rsp - for re-sync\n/view - for viewing the mapst\n[edit]\nDefault binds\nF1 - configuration panel\nF3 - client panel\nF4 - re-select team\nH - call help\nR - Realod the weapon",false,GUIEditor_Tab[3]) GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) function infoShow ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F1","down", infoShow ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[4], true ) guiSetVisible( GUIEditor_Image[2], false ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[2], true ) guiSetVisible( GUIEditor_Image[4], false ) end end )
  3. still double post function chatbox23(text, msgtype) if (msgtype == 0) then cancelEvent() end end addEventHandler("onPlayerChat",root, chatbox23) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local tag = getElementData(source, "ID") or 0 local r, g, b = getPlayerNametagColor(source) local hex = RGBToHex(r, g, b) if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then outputChatBox(" #cccccc[".. tag .."] #8B1A1A[HEADADMIN] ".. hex .."".. name ..": #FFFFFF".. text, root, 255, 255, 255, true) outputServerLog("CHAT: [HEADADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#cccccc[".. tag .."] #FF0000[ADMIN] ".. hex .."" .. name ..": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#cccccc[".. tag .."] #00FF00[MODERATOR] ".. hex .."" .. name .. ": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [MODERATOR] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then outputChatBox("#cccccc[".. tag .."] #FFFFFF".. hex .."" .. name .. ": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: " .. name .. ": " .. text) end end end addEventHandler("onPlayerChat", root, chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end
  4. why this script has double post function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local tag = getElementData(source, "ID") or 0 local r, g, b = getPlayerNametagColor(source) local hex = RGBToHex(r, g, b) if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then cancelEvent(true) outputChatBox(" #cccccc[".. tag .."] #8B1A1A[HEADADMIN] ".. hex .."".. name ..": #FFFFFF".. text, root, 255, 255, 255, true) outputServerLog("CHAT: [HEADADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then cancelEvent(true) outputChatBox("#cccccc[".. tag .."] #FF0000[ADMIN] ".. hex .."" .. name ..": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then cancelEvent(true) outputChatBox("#cccccc[".. tag .."] #00FF00[MODERATOR] ".. hex .."" .. name .. ": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [MODERATOR] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent(true) outputChatBox("#cccccc[".. tag .."] #FFFFFF".. hex .."" .. name .. ": #FFFFFF" .. text, root, 255, 255, 255, true) outputServerLog("CHAT: " .. name .. ": " .. text) end end end addEventHandler("onPlayerChat", root, chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end
  5. all good now but the image isn't changing when clicked on the respective buttons if ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[4], true ) guiSetVisible( GUIEditor_Image[2], false ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[2], true ) guiSetVisible( GUIEditor_Image[4], false ) end end )
  6. script isn't starting it says:- Script Error : s\done1.lua:25 unfinished string near ' "arena [id]
  7. can someone please tell what what i did wrong in this GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas \n/base [id] - for starting bases \n/end - for ending the round \n/add [id] - for adding the player to round \n/resetscore - restart all players and teams score \n/gunmenu [id] - for giving the gunmenu for the player \n/remove [id] - for removing the player from the round \n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player \n/vote [base/arena] [id/ids] - for start the voting \n/car [id] - for get the vehicle in main lobby \n/clean - for restart the rounds history \n/pause - for pausing/repausing the round \n/swap - for change the teams sides \n/tp [id1] [id2] - for teleport the player1 to the player2 \n/heal [id] - for heal the player \n/healall - for heal all players \n/startmatch [base/tdm] [rounds] - for starting the match \n/endmatch - for ending the match \n/gun - re weapon select \n/rsp - for re-sync \n/view - for viewing the maps t\n[edit] \nDefault binds \nF1 - configuration panel \nF3 - client panel \nF4 - re-select team \nH - call help \nR - Realod the weapon",false,GUIEditor_Tab[3]) GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) function infoShow ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F1","down", infoShow ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[4], true ) guiSetVisible( GUIEditor_Image[2], false ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[2], true ) guiSetVisible( GUIEditor_Image[4], false ) end end )
  8. it may be a bad copy paste but it did worked man
  9. yes man each file path is correct
  10. -RoCk-Alex

    [SOLVED]

    ----------------------solved-------------------------------
  11. simply put this under group console "user.Console"> if it not work then you might need to replace it with fresh acl.xml
  12. Jaysds1 is right you must ask mate and maybe he fix it in next version because this is the aspect bug we can't help as basemode files can't be changed or updated
  13. awesome fixed now suggestion:- admin right to delete closed tickets it would be better but all in one awesome version
  14. it should defiantly work or either you messed with console rights if so try typing this in ingame console with logged in as admin (10% chances it will work ingame) or just restore the acl.xml as it is the basic function of console it should work
  15. Its simple lol in console type aclrequest allow aspect and done
  16. can anyone tell how to create a DX text when player joins or quits the server which fade after few seconds?
  17. i found a bug:- if more than one tickets have same subject and one of them is locked then whole ticket of same subject gets locked
  18. maybe you should see the people reaction on this resource if its good will you fell more confident for future resource and f its bad you will get a push to make them better
  19. its like new in game mta server forum awesome
×
×
  • Create New...