Jump to content

freudo

Members
  • Posts

    159
  • Joined

  • Last visited

Everything posted by freudo

  1. yes ı used triggerEvent("restoreClient",getLocalPlayer())
  2. I make a gui and ı click button and enabled roads but click again not disabled roads replaceyol event is working but replaceclient event not working codes: function replace() tekstura = engineLoadTXD("vgncarshade1.txd") engineImportTXD(tekstura, 3458 ) teksturac = engineLoadTXD("vgncarshade.txd") engineImportTXD(tekstura, 8838 ) teksturas = engineLoadTXD("vgshseing27.txd") engineImportTXD(tekstura, 8557 ) end addEvent("replaceyol",true) addEventHandler( "replaceyol",root,replace) function replacere() engineRestoreModel( 3458 ) engineRestoreModel( 8838 ) engineRestoreModel( 8557 ) end addEvent("replaceclient",true) addEventHandler( "replaceclient",root,replacere)
  3. Hi guys I write this code: addEventHandler("onClientResourceStart", resourceRoot, function() onoff = guiCreateStaticImage(578, 290, 138, 34, "img/off.png", false) showCursor(true) end ) function click() if (source == onoff) then guiStaticImageLoadImage(onoff, "img/on.png") elseif (source == onoff) then guiStaticImageLoadImage(onoff, "img/off.png") end end addEventHandler("onClientGUIClick",root,click) I click onoff button and load on button again ı want click and load on button pls help
  4. triggerClientEvent(getRootElement(), 'showPlayersOnRankingBoard', source, killer) to: triggerClientEvent('showPlayersOnRankingBoard', getRootElement(), killer) ?
  5. Hey guys, my new script
  6. Hi guys, Today I will show you my scripts -Special edit Multi Language Login panel Login Panel Screenshots 1 Login Panel Screenshots 2 -DD Top Map Wins/Kills [with Country Flag] Top Map Wins/Kills Screenshots -DD Bar Level/Experience system Bar level Screenshots -DD Kills scripts Exp. who killed who DD Kills script Screenshots skype:erdemkilic.sky
  7. ı try but dont work and lost data
  8. 1-Server name: -MDD- Modern Destruction Derby [TR/Turkey] 2-Website: www.racingmdd.tk 5-Screenshots:
  9. I need help This code its working but ı dont send clientside pls help me! İts work but Don't refresh gridlist server: local amountOfTopsToDisplay = 3 -- how many tops you need function ToplistServerClans(player, command) local file = xmlLoadFile("clans.xml") -- load file if file then -- if file exists local tableOrder = {} -- make a table local subTable = {} -- make a sub table for i,v in ipairs(xmlNodeGetChildren(file)) do -- get children from file subTable.name = xmlNodeGetAttribute(v, "isim") -- name goes in subTable subTable.data = xmlNodeGetAttribute(v, "ClanWin") -- data goes in subTable table.insert(tableOrder, subTable) -- subTable is inserted in bigger table subTable = {} -- empty subTable for next loop end table.sort(tableOrder, function(a,b) return tonumber(a.data) > tonumber(b.data) end) -- put data in order for i,v in ipairs(tableOrder) do -- loop the sorted table outputChatBox("#f4a460[TOP]#ffffffEn iyi #ff33333 #ffffffClan!",root,255,0,0,true) outputChatBox(i..". "..v.name.." - #ff3333"..v.data, player, 255,255,255,true) -- display in order if i == amountOfTopsToDisplay then break end -- when enough tops has been shown, break it end xmlUnloadFile(file) -- unload the file from memory triggerClientEvent("onServerTopClans",player,tableOrder) end end addCommandHandler("topclans",ToplistServerClans) client: addEvent("onServerTopClans", true) addEventHandler("onServerTopClans", getRootElement(), function(tableOrder) if (guiGridListClear) then local topList if tableOrder then for i=1,10 do if tableOrder[i] then local column = guiGridListAddColumn(clantopgrid, "Sıra", 0.15) local column1 = guiGridListAddColumn(clantopgrid, "Clanlist", 0.55) local column2 = guiGridListAddColumn(clantopgrid, "Puan", 0.30) local row = guiGridListAddRow(clantopgrid) guiGridListSetItemText(clantopgrid, row, column,i, false, false) guiGridListSetItemText(clantopgrid, row, column1,removeColorCoding(tableOrder[i].name), false, false) guiGridListSetItemText(clantopgrid, row, column2,tostring(tableOrder[i].data), false, false) local r, g, b local playerTeam = getPlayerTeam( source ) if ( playerTeam ) then r, g, b = getTeamColor ( playerTeam ) guiGridListSetItemColor ( clantopgrid, row, column1, r, g, b ) guiGridListSetItemColor ( clantopgrid, row, column2, r, g, b ) guiGridListSetItemColor ( clantopgrid, row, column, r, g, b ) end end end end end end) please open new tab this image
  10. nothing for id, player in ipairs(getElementsByType("player")) do local playerName = getPlayerName(player) local playerName = playerName:gsub("#%x%x%x%x%x%x", "") end for i, val in ipairs(players) do if val ~= playerName then table.insert(players, playerName) end end
  11. for id, player in ipairs(getElementsByType("player")) do local playerName = getPlayerName(player) local playerName = playerName:gsub("#%x%x%x%x%x%x", "") table.insert(players, playerName) end for i, val in ipairs(getElementsByType("player")) do if val ~= playerName then table.insert(players, playerName) end end
  12. yes work but have a problem lost button
  13. please give me code for id, player in ipairs(getElementsByType("player")) do if player ~= playerName then table.insert(players, playerName) end local playerName = getPlayerName(player) local playerName = playerName:gsub("#%x%x%x%x%x%x", "") end
  14. local players = getElementsByType("player") local playerName = getPlayerName(source) for i, val in ipairs(players) do if val ~= playerName then table.insert(players, playerName) end end nothing
  15. no, one player local players = {} dxDrawGridList( (screenW - 251) / 2, (screenH - 254) / 2, 251, 254, 8, 70, core.language.dxGui.gridlist, players, true, false) local playerlist = getElementData(core.language.dxGui.gridlist, "selected")[1] if playerlist then for id, player in ipairs(getElementsByType("player")) do local playerName = getPlayerName(player) local playerName = playerName:gsub("#%x%x%x%x%x%x", "") table.insert(players, playerName) end end
  16. ı want list playerlist okey but list bug .D if playerlist then for id, player in ipairs(getElementsByType("player")) do local playerName = getPlayerName(player) local playerName = playerName:gsub("#%x%x%x%x%x%x", "") table.insert(players, playerName) end end
  17. if ( source == statsGrid ) then row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( source, row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) this?
×
×
  • Create New...