Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. Amm...just not from my gamemode, its problem on my race too, cause if someone activate hidde vehicles, the interiors are like invisible.
  2. Hey...i know now how to load map and that, put it have a problem, it create objects checkpoint and that, but doesnt play music, apply txd of the map,the more important, the weather and the hour!! Please someone help me
  3. Hi i have a question and its how to load a map including objects and interiors this is for a race gamemode please someone? and how to when the last player die's stop current map and load next one, like a random map :v
  4. function toggleGUI() if guiGetVisible(PanelAdmin) == false then guiSetVisible(window,false) showCursor(false) removeEventHandler("onClientRender", getRootElement(), CurrentColor) else guiSetVisible(window,true) showCursor(true) addEventHandler("onClientRender", root, CurrentColor) end end addEvent("Show",true) addEventHandler("Show",root,toggleGUI) Still not working
  5. @guiSetVisible thats the error, when i press 'o' doesnt open window, and draw rectangle,else i press again 'o' and appears that onClientRender is already handled so? No i dont gonna put backdoors would be a private script, i use hasObjectPermissionTo cause i tried with isObjectInACLGroup and doesn't work :c
  6. Mmm why you dont make a script go to area 51 and see your position on admin panel, and do a function with spawnPlayer and the event OnPlayerWasted
  7. I got a error, and only shows the rectangle why? whats wrong---
  8. Hi, i have a dude and its how to set the volume to 50% or less to play another sounds, and when that sound is finished. stop playing it and set the map music to 100 again, any one could help me?
  9. Thanks for all! now the last dude, im making a panel, that in one part theres a tab, in that tab is the interface management the you can change colors, i put it like 3 editboxes R: G: B: And if you change it and click on set button the interface and the sample rectangle should change to the inserted color of RGB How to change color like that, i know is guiGetText and what else y should use to set the color?
  10. Thanks but now...In the first tab theres a Rectangle And how to do dissapear if change to another tab, buti f returns to that tab how to appear again the rectangle?
  11. Hi! in this time i wanna ask how to know that cause im making a panel, and has a first tab with a dxRectangle and i wanna destroy that rectangle when the tab is switched some body help me?
  12. Hola tengo una duda es que tengo mi gamemode de race pero quiero hacer que los textos de Map, Nextmap Time left y eso se muevan y cosas asi alguien me ayuda?
  13. Hola, tengo una duda...la cual es como hacer boto es con las funciones dx como por ejemplo un boton con dxRectangle y tambien quisiera saber como hacer algo asi igual con dxDrawImage ayuda porfa y como haria para que al pasar el cursor por la imagen o el "boton" se ponga una animacion
  14. Is this ok? so i can get selected player an aply action of button? local selected = guiGridListGetSelectedItem local itemtext = guiGridListGetItemText Yes? and how to get selected on server-side? This is my full Code.. Client-Side: ---Admin Panel-------- function AdminPanel () admin_window = guiCreateWindow(384, 130, 263, 500, "Admin Panel", false) guiWindowSetSizable(admin_window, false) tab_adminpanel = guiCreateTabPanel(9, 25, 244, 465, false, admin_window) tab_players = guiCreateTab("Players", tab_adminpanel) blow = guiCreateButton(135, 29, 99, 32, "Blow", false, tab_players) kick = guiCreateButton(135, 112, 99, 32, "Kick", false, tab_players) mute = guiCreateButton(135, 70, 99, 32, "Mute", false, tab_players) ban = guiCreateButton(135, 154, 99, 32, "Ban", false, tab_players) label1 = guiCreateLabel(135, 196, 115, 19, "--------------------------", false, tab_players) guiLabelSetColor(label1, 255, 158, 0) rainbow = guiCreateButton(135, 225, 99, 32, "Rainbow", false, tab_players) proximamente = guiCreateButton(135, 267, 99, 32, "More Comming..", false, tab_players) tab_ranks = guiCreateTab("Ranks", tab_adminpanel) trial = guiCreateButton(135, 29, 99, 32, "Trial-Member", false, tab_ranks) member = guiCreateButton(135, 71, 99, 32, "Member", false, tab_ranks) moderator = guiCreateButton(135, 113, 99, 32, "Moderator", false, tab_ranks) mananger = guiCreateButton(135, 197, 99, 32, "Team-Manager", false, tab_ranks) admin = guiCreateButton(135, 155, 99, 32, "Administrator", false, tab_ranks) label2 = guiCreateLabel(130, 239, 107, 21, " ---------------------------", false, tab_ranks) guiLabelSetColor(label2, 255, 158, 0) vip = guiCreateButton(135, 270, 99, 32, "V.I.P", false, tab_ranks) tab_server = guiCreateTab("Server", tab_adminpanel) annedit = guiCreateEdit(7, 24, 227, 34, "", false, tab_server) announce = guiCreateButton(8, 67, 226, 31, "Announce", false, tab_server) teams = guiCreateButton(8, 137, 226, 31, "Team's Management", false, tab_server) label3 = guiCreateLabel(10, 112, 221, 15, "----------------------------------------------------------", false, tab_server) guiLabelSetColor(label3, 255, 158, 0) nametags = guiCreateButton(8, 183, 226, 31, "Nametag status: Show", false, tab_server) end ----Player's Grid's function PlayerList1 () local playerList1 = guiCreateGridList(10, 19, 120, 411, false, tab_players) local column = guiGridListAddColumn( playerList1, "Player", 0.85 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList1 ) guiGridListSetItemText ( playerList1, row, column, getPlayerName ( player ), false, false ) end end end function PlayerList2 () local playerList2 = guiCreateGridList(10, 19, 120, 411, false, tab_ranks) local column = guiGridListAddColumn( playerList2, "Player", 0.85 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList2 ) guiGridListSetItemText ( playerList2, row, column, getPlayerName ( player ), false, false ) end end end ---Selected player local selected = guiGridListGetSelectedItem local itemtext = guiGridListGetItemText --Open panel function toggleGUI() if guiGetVisible(window_panel) == true then guiSetVisible(window_panel,false) showCursor(false) else guiSetVisible(window_panel,true) showCursor(true) end end addEvent(":~",true) addEventHandler(":~",root,toggleGUI) Server-Side: addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"o","down",showGUI) --- key F3 to open it end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Owner") or ("Team-Mananger") or ("Admin") or ("Moderator") or ("Member") or ) then triggerClientEvent(thePlayer,":~",thePlayer) else outputChatBox("You must be an admin to do this",thePlayer,255,0,0) end end
×
×
  • Create New...