Jump to content

[M]ister

Members
  • Posts

    444
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by [M]ister

  1. Hello, I created a dx window with dxgui: https://forum.multitheftauto.com/viewtopic.php?f=108&t=43639. But I need to make some gui elements in front of the dx window, but the gui elements always appear behind the dx window. Could you help me by telling how I could put the dx window behind the gui elements?
  2. Olá, Aqui está o fórum que você deseja: http://cit2.net/index.php?action=forum
  3. The script does not exist, he just wants to promote your site, not the first and not the second time this happens, I would like to ask you to banish his account. https://community.multitheftauto.com/ind ... ls&id=8820 and https://community.multitheftauto.com/ind ... ls&id=8812 (Not to mention that he publishes stolen resources on your site, and remove the true credits) DONE
  4. Creio que o nome do seu script ficou script.lua.txt e não script.lua, após você ler o tutorial que o DNL291 lhe passou, faça o que está nesta img, para você poder renomear seus arquivos sem que ocorra este problema novamente.
  5. addCommandHandler ("sfa", function() local kk = getLocalPlayer() local veh = getPedOccupiedVehicle(kk) if (veh) then setElementPosition(veh, -1501, -85, 15) else setElementPosition(kk, -1501, -85, 15) end outputChatBox (getPlayerName(kk) .."#FFFFFF Foi para o Aeroporto de SF", 0, 255, 0, true) end)
  6. Aqui o link para baixar: https://community.multitheftauto.com/ind ... ls&id=3667
  7. Legal, boa sorte com o projeto. Espero que os servidores de MTA sejam de qualidade, pois conte comigo como jogador
  8. Aposto que esses 35 servidores que aparecem, são todos gringos em máquinas boas. ( aqui de vez em quando some alguns servidores também )
  9. Does anyone have a table with all the clothes cj?, I'll do a math random, and I'm too lazy to be adding all clothes in table, because there are many
  10. Simple mode using the game-state.eu <?php //Script By:MaligNos $url = 'http://www.game-state.eu/94.23.251.227:22006/'; $site = file_get_contents($url); $name1 = explode('', $site); $name2 = explode('',$name1[1]); $name = $name2[0]; $data1 = explode('', $site); $data2 = explode('',$data1[1]); $data = $data2[0]; $cotacao1 = explode('', $site); $cotacao2 = explode('',$cotacao1[1]); $cotacao = $cotacao2[0]; print 'Server name: '.$name.' State: '.$data.' Players: '.$cotacao; ?> Edit: I always wanted to know how it prints the status of the game in a picture, anyone have any idea about this?
  11. Here is ToffBrown. Thanks Solid
  12. And now? local groupName = "Admin" local colShape = createColRectangle ( 2160.93921, 2160.93921, 10000, 10000 ) function colShapeEnter(thePlayer) local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup (groupName)) then outputChatBox ("You entered the base admin",thePlayer) else outputChatBox ("You are not admin, to enter this base",thePlayer) killPed ( thePlayer ) end end addEventHandler ( "onColShapeHit", colShape, colShapeEnter )
  13. Does it work? local groupName = "Admin" local colShape = createColRectangle ( 2160.93921, 2160.93921, 10000, 10000 ) function colShapeEnter() local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup (groupName)) then outputChatBox ("You entered the base admin",source) else outputChatBox ("You are not admin, to enter this base",source) killPed ( source ) end end addEventHandler ( "onColShapeHit", colShape, colShapeEnter )
  14. Now the panel does not open when I enter the marker!
  15. Does not work, if a player it is in maker, another player can enter and open the gui
  16. Thanks again Solidsnake14. To enjoy the post, just want to ask another question: How could be showing the name of the player with the colors (hidden code)
  17. this? It was the first thing I tried, and did not work, I will try again. Edit: LoL now picked up, I must have done something wrong before ... Label = guiCreateLabel(68, 83, 252, 15, "Your Name: ", false, window) function refreshStats() local name = string.gsub(getPlayerName(localPlayer), "#%x%x%x%x%x%x", "") if guiGetVisible(window,true) then guiSetText(Label,"Your Name: "..name) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ...
  18. Hello again, I added in a gui a label with the name of the player without the color code, and when any player open the gui the label name is updated, (more is not working) ... local name = string.gsub(getPlayerName(localPlayer), "#%x%x%x%x%x%x", "") Label = guiCreateLabel(68, 83, 252, 15, "Your Name: ", false, window) function refreshStats() if guiGetVisible(window,true) then guiSetText(Label,"Your Name: "..name) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ...
  19. Thanks friend, I'll soon be testing with two players
  20. It is complete the script or do I have to add anything else? why not have two people to test
  21. Please me more information ? Client: window = guiCreateWindow(400,400,400,264,"Panel Edit", false) guiSetVisible(window, false) Close = guiCreateButton(365, 10, 25, 25, "X", false, window) guiSetFont(Close, 'sans') addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Close ) then guiSetVisible ( window, false ) showCursor ( false ) end end) addEvent("enterMarker", true) addEventHandler("enterMarker", root, function () if not guiGetVisible(window) then guiSetVisible(window, true) showCursor(true) end end) Server: local marker = createMarker( -2625, 1380, 7, "cylinder", 0.8, 0, 0, 255, 150) addEventHandler( "onMarkerHit", marker, function(hitElement) if getElementType(hitElement) == "player" then triggerClientEvent(root, "enterMarker", source) end end)
  22. Hello, I created a script that when a player enter the marker one gui opens, I wanted if another player is trying to access window , it can not and a message appears saying that it can not because there is already a player with the window open local marker = createMarker( -2631, 1377, 6, "Cylinder", 0.8, 0, 0, 255, 150) window = guiCreateWindow(400,400,400,264,"Panel Edit", false) guiSetVisible(window, false) Close = guiCreateButton(365, 10, 25, 25, "X", false, window) guiSetFont(Close, 'sans') addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == Close ) then guiSetVisible ( window, false ) showCursor ( false ) end end) addEventHandler("onClientMarkerHit", marker, function (hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(window) then guiSetVisible(window, true) showCursor(true) end end end)
×
×
  • Create New...