Jump to content

gytisan

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by gytisan

  1. Some Scripts info: Countdown: The numbers 1,2,3, passes from one side to the other screen, and when they occur in mid-GO and visual effect changes color briefly HunterTimes: Hunter Top Times With Image
  2. Picture Link: Somemaps http://www.mediafire.com/?umvxusab45xsba4
  3. Welcome. I am looking for my server user panel. I can give it for all kinds of map. I can give a lot of scripts. If someone interested contact me in skype: gytislt14 Skype name: GytisLT
  4. Hello. I need a user panel to cross DD server. in first tab (statistics) should write 1 you hawe won n/a times 2you have played n/a maps 3and big image 2 nd bar is shop buttons: 1.repair price 1000 2.nitro price 1000 3.flip price 1000 And when player win map he wins 100$ ScoreBoard Colum Money 3th bar 1 change name color 2. change chat color 3.change car color thats all. i will pay be paypal. first panel then money. no frauds! pm me or write in skype gytislt14 about price ? say me how mutch u need.
  5. But you know some maps are worth 5$
  6. I can give 100 Maps. Including all new maps.
  7. Hello i need user panel for my server i trade Race DM maps To panel Skype: gytislt14
  8. Hello i have a panel and i need to add image.. Help me.. Client.lua localPlayer = getLocalPlayer() rootElement = getRootElement() players = getElementsByType ( "player" ) playername = getPlayerName(localPlayer) GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} Mainwnd = guiCreateWindow(120,129,532,295,"Welcome ".. playername .." Stats Panel",false) guiSetVisible(Mainwnd,false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,19,408,267,false,Mainwnd) GUIEditor_Tab[1] = guiCreateTab("User",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(0.0147,0.0412,0.9608,0.0658,"You have N/A cash.",true,GUIEditor_Tab[1]) GUIEditor_Label[2] = guiCreateLabel(0.0147,0.1317,0.9608,0.0658,"Finished N/A Wins N/A, is N/A%",true,GUIEditor_Tab[1]) GUIEditor_Label[3] = guiCreateLabel(0.0147,0.2305,0.9608,0.0658,"You have N/A points",true,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(0.0172,0.3169,0.9608,0.0658,"Time in server (HH:MM) N/A:N/A",true,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Shop",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(10,9,384,24,"* use buttonts or command /buy [item]",false,GUIEditor_Tab[2]) GUIEditor_Label[7] = guiCreateLabel(105,51,86,17,"Nitro $50,000",false,GUIEditor_Tab[2]) GUIEditor_Label[8] = guiCreateLabel(105,84,86,17,"Fix $10,000",false,GUIEditor_Tab[2]) GUIEditor_Label[9] = guiCreateLabel(105,117,86,17,"God $800,000",false,GUIEditor_Tab[2]) GUIEditor_Label[10] = guiCreateLabel(105,150,95,17,"Ramp $500,000",false,GUIEditor_Tab[2]) GUIEditor_Label[11] = guiCreateLabel(298,51,107,17,"Flip $10,000",false,GUIEditor_Tab[2]) GUIEditor_Label[12] = guiCreateLabel(298,84,107,17,"Invis $100,000",false,GUIEditor_Tab[2]) GUIEditor_Label[13] = guiCreateLabel(298,117,107,17,"Mine $100,000",false,GUIEditor_Tab[2]) GUIEditor_Label[14] = guiCreateLabel(298,150,107,17,"Hay $100,000",false,GUIEditor_Tab[2]) Nitrobutton = guiCreateButton(9,49,92,22,"Nitro",false,GUIEditor_Tab[2]) Repairbutton = guiCreateButton(9,82,92,22,"Fix",false,GUIEditor_Tab[2]) Godbutton = guiCreateButton(9,115,92,22,"God",false,GUIEditor_Tab[2]) Rampbutton = guiCreateButton(9,148,92,22,"Ramp",false,GUIEditor_Tab[2]) Flipbutton = guiCreateButton(203,49,92,22,"Flip",false,GUIEditor_Tab[2]) Invbutton = guiCreateButton(203,82,92,22,"invicible",false,GUIEditor_Tab[2]) Minebutton = guiCreateButton(203,115,92,22,"Mine",false,GUIEditor_Tab[2]) Haybutton = guiCreateButton(203,148,92,22,"Hay",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Config",GUIEditor_TabPanel[1]) GUIEditor_Label[6] = guiCreateLabel(9,11,153,15,"Name Color Chat Color",false,GUIEditor_Tab[3]) nColorEdit1 = guiCreateEdit(6,34,77,26,"",false,GUIEditor_Tab[3]) guiEditSetMaxLength ( nColorEdit1, 6 ) GUIEditor_Label[7] = guiCreateLabel(9,69,59,19,"Color Auto",false,GUIEditor_Tab[3]) carColoredit = guiCreateEdit(6,89,77,26,"",false,GUIEditor_Tab[3]) skinsGrid = guiCreateGridList(0.5564,0.2963,0.424,0.6749,true,GUIEditor_Tab[3]) guiGridListAddColumn(skinsGrid,"Name",0.70) GUIEditor_Label[8] = guiCreateLabel(180,40,71,18," Skin",false,GUIEditor_Tab[3]) Skinedit = guiCreateEdit(253,37,77,26,"",false,GUIEditor_Tab[3]) nColorEdit2 = guiCreateEdit(87,34,77,26,"",false,GUIEditor_Tab[3]) guiEditSetMaxLength ( nColorEdit2, 6 ) ccbutton = guiCreateButton(87,89,75,26,"Color Car",false,GUIEditor_Tab[3]) GUIEditor_Label[9] = guiCreateLabel(10,122,92,20,"Login message",false,GUIEditor_Tab[3]) MessageEdit = guiCreateEdit(7,141,159,26,"",false,GUIEditor_Tab[3]) GUIEditor_Label[10] = guiCreateLabel(10,177,164,19,"Player Info Age/Sex",false,GUIEditor_Tab[3]) contactedit = guiCreateEdit(7,197,77,26,"",false,GUIEditor_Tab[3]) agesexedit = guiCreateEdit(88,197,77,26,"",false,GUIEditor_Tab[3]) GUIEditor_Button[2] = guiCreateButton(0.4191,0.6996,0.1152,0.107,"Update",true,GUIEditor_Tab[3]) GUIEditor_Button[3] = guiCreateButton(0.8309,0.1605,0.1373,0.0864,"Put",true,GUIEditor_Tab[3]) GUIEditor_Button[1] = guiCreateButton(425,253,98,33,"Close",false,Mainwnd) carColorWindow = guiCreateWindow(0.2871,0.2083,0.5205,0.4128,"Colors",true) guiWindowSetSizable(carColorWindow,false) guiSetVisible(carColorWindow,false) guiCreateStaticImage(0.0169,0.0694,0.9662,0.776,"images/Colors.png",true,carColorWindow) closeCarColor = guiCreateButton(0.3977,0.9054,0.2795,0.0631,"close",true,carColorWindow) function populateGridlist() local rootnode = xmlLoadFile("skins.xml") if rootnode then for _,group in ipairs">ipairs">ipairs(xmlNodeGetChildren(rootnode)) do local row = guiGridListAddRow(skinsGrid) local name = xmlNodeGetAttribute(group,"type">type") guiGridListSetItemText(skinsGrid,row,1,name,true,false) for _,skin in ipairs">ipairs(xmlNodeGetChildren(group)) do row = guiGridListAddRow(skinsGrid) name = xmlNodeGetAttribute(skin,"name") local id = xmlNodeGetAttribute(skin,"model") guiGridListSetItemText(skinsGrid,row,1,name,false,false) guiGridListSetItemData(skinsGrid,row,1,tostring">tostring">tostring(id)) end end xmlUnloadFile(rootnode) end end function createSkinHandler(button,state) if button == "left" and state == "up" then local row,col = guiGridListGetSelectedItem(skinsGrid) if row and col and row ~= -1 and col ~= -1 then local selected = guiGridListGetItemData(skinsGrid,row,col) skinid = tonumber">tonumber(selected) triggerServerEvent("setSkinFromGUI",localPlayer,localPlayer,skinid) outputChatBox ( "Skin changed to: ".. tostring">tostring">tostring ( skinid ) .. ".", 0,255,0 ) else outputChatBox("Invalid arguments.",255,12,15) end end end function makeVisible() get = guiGetVisible(Mainwnd) if get == true then guiSetVisible(Mainwnd,false) showCursor(false) guiGridListClear(skinsGrid) removeEventHandler( "onClientGUIDoubleClick", skinsGrid, createSkinHandler, false ); else guiSetVisible(Mainwnd,true) showCursor(true) populateGridlist() addEventHandler( "onClientGUIDoubleClick", skinsGrid, createSkinHandler, false ); triggerServerEvent("getPlayerDetails",localPlayer,localPlayer) contact = getElementData(localPlayer,"contact") ageNsex = getElementData(localPlayer,"ageNsex") message = getElementData(localPlayer,"message") skin = getElementData(localPlayer,"skin") nc = getElementData(localPlayer,"NC") cc = getElementData(localPlayer,"CC") carcolor = getElementData(localPlayer,"CarColor") if contact and ageNsex and message and skin and nc and cc and carcolor then guiSetText(contactedit,contact) guiSetText(agesexedit,ageNsex) guiSetText(MessageEdit,message) guiSetText(Skinedit,skin) guiSetText(nColorEdit1,nc) guiSetText(nColorEdit2,cc) guiSetText(carColoredit,carcolor) money = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[1],"Currently you have ".. money .." in cash.") end end end bindKey("F1","down",makeVisible) local KDR_DECIMAL_PLACES = 2 function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end addEvent("returnPlayerDetails",true) addEventHandler("returnPlayerDetails",root, function (h,m,wins,attempts,points) if h and m then guiSetText(GUIEditor_Label[4],"Time spent on server (".. tostring">tostring(h) ..":".. tostring">tostring">tostring(m) ..")") end if points then guiSetText(GUIEditor_Label[3],"You've earned ".. tostring">tostring(points) .." points") end if wins and attempts then local kdr = round(wins) / attempts, KDR_DECIMAL_PLACES guiSetText(GUIEditor_Label[2],"Played ".. tostring">tostring(attempts) .." matches and won ".. tostring">tostring(wins) .." which is ".. kdr .."%") end end) function isColorCode(str) if (string.find(str, "^[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]$")) then return true else return false end end addEventHandler("onClientGUIClick",rootElement, function () if source == GUIEditor_Button[1] then guiSetVisible(Mainwnd,false) showCursor(false) elseif source == GUIEditor_Button[2] then contact = guiGetText(contactedit) ageNsex = guiGetText(agesexedit) loginMsg = guiGetText(MessageEdit) NC = guiGetText(nColorEdit1) CC = guiGetText(nColorEdit2) color = guiGetText(carColoredit) if isColorCode(NC) == true or isColorCode(CC) == true then triggerServerEvent("setInfo",localPlayer,localPlayer,contact,ageNsex,loginMsg,NC,CC,color) else outputChatBox("Thats not a valid HEX color!",255,0,0) end elseif source == GUIEditor_Button[3] then skin = guiGetText(Skinedit) triggerServerEvent("setSkin",localPlayer,localPlayer,skin) elseif source == ccbutton then guiSetVisible(carColorWindow,true) guiBringToFront(carColorWindow,true) elseif source == closeCarColor then guiSetVisible(carColorWindow,false) end end) function onGuiClick (button, state, absoluteX, absoluteY) if (source == Flipbutton) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == Minebutton) then triggerServerEvent ("buymine", getLocalPlayer()) elseif (source == Haybutton) then triggerServerEvent ("buyHay", getLocalPlayer()) elseif (source == Rampbutton) then triggerServerEvent ("buyramp", getLocalPlayer()) elseif (source == Repairbutton) then triggerServerEvent ("buyfix", getLocalPlayer()) elseif (source == Nitrobutton) then triggerServerEvent ("buynitro", getLocalPlayer()) elseif (source == Godbutton) then triggerServerEvent ("buygod", getLocalPlayer()) elseif (source == Invbutton) then triggerServerEvent ("buyInvisible", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
  9. meta.xml "DD" type">type">type="script" version="3.7.0" /> >type="client"/> gui_client.lua I will dont post full code only where error toServer = {} theSkins = {} theTimers = {} theMessages = {} local cnt = 0 local boxW, boxH = 333, 111 local sW, sH = guiGetScreenSize() local boxX, boxY = sW/2 - 166, sH/2 - 50 local headX, headY = boxX + 60, boxY + 12 local headXb, headYb = boxX + 277, boxY + 40 local textX, textY = boxX + 13, boxY + 48 local textXb, textYb = boxX + 320, boxY + 98 local textF = 1.3 local headF = 2.5 local timeDeath = 1 local colorSet = "name" local nowPlaying = false local black = tocolor(0,0,0,255) local carcolor1, carcolor2
  10. I getting error: [2012-03-11 19:12:39] Starting panel [2012-03-11 19:12:39] ERROR: panel\gui_client.lua:7: attempt to call global 'guiGetScreenSize' (a nil value) And bind key to close/open panel F7 Dont work How to solve it ?
  11. gytisan

    Any panel ?

    I need a good race panel i can buy it. does someone know any ? race_starter_pack i good but alot servers has it.
  12. gytisan

    Nitro NFS

    I see alot in other servers have Nitro NFS when you click mouse only then Nos Turt on and when un-click turns off
  13. gytisan

    Nitro NFS

    Does someone know how to get NFS Nos Script ? I see alot in other servers have Nitro NFS when you click mouse only then Nos Turt on and when un-click turns off
  14. Kenix Give me 1 example for /brb please
  15. Hey MTA I need small help. I need two types of messages Type 1 player types /brb in chat Ant it writes PlayerName says Be Right Back Type 2 player writes /bb OtherPlayer like. /bb Simon And it writes in chat PlayerName Says Bye Bye to Simon Thanks
  16. This is Skotinka Vol 6 And what that black object ID ?
  17. New Countdown: The images 3,2,1 Goes from one side to other side. Try yourself script is mine. Download link: Removed due to being stolen (Solidsnake14) INSTALATION: Unzipp And copy files to yor race gamemode and replace it.
  18. gytisan

    anY help ???

    How can i delete this from TDMA (betterversion) GM. when player died. and kill counter
  19. gytisan

    Shoting Bots

    how can i add there strong bots witch ak47 gun. And the bots have 200HP. And when bots see players them start shoting to players very good. posX="5717.4067382813" posY="-1949.7611083984" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5717.4428710938" posY="-1804.0714111328" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5736.9287109375" posY="-1803.9096679688" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5827.013671875" posY="-1803.857421875" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5846.107421875" posY="-1803.8375244141" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5846.158203125" posY="-1949.8311767578" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5827.0522460938" posY="-1949.7807617188" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0"> posX="5736.9497070313" posY="-1949.8043212891" posZ="3.1942105293274" rotX="0" rotY="0" rotZ="0">
  20. can u shut up ? who want money make it.
  21. 5-10$ i think good scripter make it in 1-2 hours.
  22. addEvent( 'onPlayerRaceWasted',true ) addEvent( "stats", true ) exports[ 'scoreboard' ]:addScoreboardColumn( 'Wins' ) exports[ 'scoreboard' ]:addScoreboardColumn( 'Fails' ) exports[ 'scoreboard' ]:addScoreboardColumn( 'Skill' ) local restriction = { } function restrictionEnd( playerName ) restriction[ playerName ] = nil end function updateRatio ( thePlayer ) if isElement( thePlayer ) then local account = getPlayerAccount( theplayer ) if account then if isGuestAccount( account ) then return end local wins = getAccountData( account, "Wins" ) or 0 local loses = getAccountData( account, "Fails" ) or 0 if loses == 0 then setAccountData( account, "ratio", "-" ) setElementData( thePlayer,'ratio', '-' ) else local kdr = round( wins / loses, 2 ) setAccountData( account, "ratio", kdr ) setElementData( thePlayer,'ratio', kdr ) end end end end function publicstatsinfo( ) if isElement( source ) then local account = getPlayerAccount( source ) if account then if isGuestAccount( account ) then return end local askdname = getPlayerName( source ) local wins = getAccountData( account, "Wins" ) or 0 local loses = getAccountData( account, "Fails" ) or 0 local ratio = getAccountData( account, "Skill" ) or 0 if loses and wins then outputChatBox("#FFA824*" .. askdname .. " won " .. tostring( wins ) .. " times and he lost " ..tostring( loses ).. " times, his ratio is " .. tostring( ratio ) .. "%", root, 255, 12, 15, true) else outputChatBox("#FFA824*" .. askdname .. " doesen't losed or won " , root, 255, 12, 15, true) end end else outputChatBox( "Error source is not player" ) end end function checkCommand( message, messageType ) if messageType == 0 then if message == "!stats" then triggerEvent( "stats", source ) elseif message == "!st" then triggerEvent( "stats", source ) cancelEvent( ) end end end function getPlayerFromNamePart( thePlayerName ) local thePlayer = getPlayerFromName( thePlayerName ) if thePlayer then return thePlayer end for _,thePlayer in ipairs( getElementsByType 'player' ) do if string.find( string.gsub( getPlayerName( thePlayer ):lower( ),"#%x%x%x%x%x%x", "" ), thePlayerName:lower( ), 1, true ) then return thePlayer end end return false end function DestructionWin( vehicle ) local alivePlayers = getAlivePlayers( ) if #alivePlayers == 1 then if isElement( alivePlayers[1] ) then local account = getPlayerAccount( alivePlayers[1] ) if isGuestAccount( account ) then return end local count = tonumber( getAccountData( account,"Wins" ) or 0 ) + 1 setAccountData( account,"Wins",count ) setElementData( alivePlayers[1],'Wins', count ) outputChatBox ( "#FFA824The player " .. getPlayerName( alivePlayers[1] ) .. " won!", root, 255, 255, 255, true ) end else local account = getPlayerAccount( source ) if isGuestAccount( account ) then return end local loses = tonumber( getAccountData( account,"Fails" ) or 0 ) + 1 setAccountData( account,"Fails", loses ) setElementData( source,'Fails', loses ) end end addCommandHandler("stats", function ( thePlayer, cmd, whoToCheck ) local playerName = getPlayerName( thePlayer ) if restriction[ playerName ] then outputChatBox( "#FFA824You have to wait 30 seconds", thePlayer, 255, 0, 0, true ) else restriction[ playerName ] = true setTimer( restrictionEnd, 30000, 1, playerName ) local player = getPlayerFromNamePart( whoToCheck ) if player then local account = getPlayerAccount( player ) if account then if isGuestAccount( account ) then return end local wins = getAccountData( account, "Wins" ) or 0 local loses = getAccountData( account, "Fails" ) or 0 local ratio = math.max( 0, math.min( 100, math.floor( wins / ( loses + wins ) * 100 ) ) ) outputChatBox( "#FFA824*[sTATS] Player's "..tostring( getPlayerName( player ) ).." stats : " , root, 255, 12, 15, true ) outputChatBox( "#FFA824*Wins: "..tostring( wins ).."!", root, 255, 12, 15, true ) outputChatBox( "#FFA824*Loses: "..tostring( loses ).."!", root, 255, 12, 15, true ) outputChatBox( "#FFA824*Ratio: "..tostring( ratio ).."% !", root, 255, 12, 15, true ) end else outputChatBox( "Player not found!" ) end end end ) addEventHandler( 'onPlayerJoin',root, function( ) setElementData( source,'Wins', 0 ) setElementData( source,'Fails', 0 ) setElementData( source,'Skill', 0 ) end ) addEventHandler( "stats", root, publicstatsinfo ) addEventHandler( "onPlayerChat", root, checkCommand ) addEventHandler( "onPlayerRaceWasted", root,DestructionWin ) This script counts Wins,Fails,Skill-Ratio The script works very good But error there. Like: player have 6 wins player ReLog then join so server again and all stats wins 0 fail 0 skill 0 How to make to script save stats when player relog or exit server
×
×
  • Create New...