Jump to content

Bleidex

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Bleidex

  1. Hey everyone, i've got a big problem. Stats are working normally if you do login. But you need to reconnect if you are first time logged in otherwise stats dont save. also if someone neters the server noone get the win. how to fix that? addEvent("onMapStarting", true) IsRespawn = false function MapStarting(mapInfo, mapOptions, gameOptions) IsRespawn = (tostring(mapOptions["respawn"]) == "timelimit") end addEventHandler("onMapStarting", getRootElement(), MapStarting) function PlayerWasted( ammo, attacker, weapon, bodypart ) local alivePlayers = getAlivePlayers() if not IsRespawn then if #alivePlayers == 1 then if not isGuestAccount( getPlayerAccount ( alivePlayers[1] ) ) then local PlayerName = getPlayerName(alivePlayers[1]) local getPlayerAcc = getPlayerAccount ( alivePlayers[1] ) if (getPlayerAcc) then local Losers = getAccountData(getPlayerAcc, "Losers") local Wins1 = getAccountData(getPlayerAcc, "Wins") local Wins2 = tonumber(Wins1) + 1 setAccountData ( getPlayerAcc, "Wins", Wins2 ) setElementData(alivePlayers[1] ,"data.wins", Wins2) outputChatBox("* #FFFFFF" .. PlayerName .. "#0fc0fc won as last player alive! Totals DM/DD won: #FFFFFF" .. Wins2 .. " #0fc0fcof #FFFFFF" .. Losers .. "#0fc0fc.", getRootElement(), 255, 255, 255, true) -- Cash -- local getPlayerCash = getPlayerAccount ( alivePlayers[1] ) local Cash1 = getAccountData(getPlayerCash, "Cash") local Cash2 = 250 * getPlayerCount() setAccountData ( getPlayerCash, "Cash", Cash1 + Cash2 ) setElementData ( alivePlayers[1], "data.cash", Cash1 + Cash2 ) outputChatBox("* #FFFFFF" .. PlayerName .. "#0fc0fc got #FFFFFF" .. Cash2 .. "#0fc0fc$ for surviving!", getRootElement(), 255, 255, 255, true) -- Points -- local getPlayerPoints = getPlayerAccount ( alivePlayers[1] ) local Points1 = getAccountData(getPlayerCash, "Points") local Points2 = 4 * getPlayerCount() setAccountData ( getPlayerPoints, "Points", Points1 + Points2 ) setElementData ( alivePlayers[1], "data.points", Points1 + Points2 ) outputChatBox("* #FFFFFF" .. PlayerName .. "#0fc0fc got #FFFFFF" .. Points2 .. "#0fc0fc points! now has #FFFFFF" .. Points1 + Points2 .. "#0fc0fc!", getRootElement(), 255, 255, 255, true) end else outputChatBox("* #FFFFFF" .. getPlayerName( alivePlayers[1] ) .. "#0fc0fc won as last player alive!", getRootElement(), 255, 255, 255, true) end else local getPlayerAcc = getPlayerAccount ( source ) if not isGuestAccount( getPlayerAccount ( source ) ) then local Losers1 = getAccountData(getPlayerAcc, "Losers") local Losers2 = tonumber(Losers1) + 1 setAccountData ( getPlayerAcc, "Losers", Losers2 ) setElementData ( source, "data.lost", Losers1 + 1 ) end end end end addEventHandler ( "onPlayerWasted", getRootElement(), PlayerWasted ) function Logged() local getPlayerAcc = getPlayerAccount ( source ) local FalseAddSQL = getAccountData(getPlayerAcc, "AddSQL") local AddsSQL = getAccountData(getPlayerAcc, "AddSQL") if AddsSQL == "2.5" then outputChatBox("* #FFFFFF" .. getPlayerName( source ) .. "#0fc0fc has logged in and and he's ready to play!", getRootElement(), 255, 255, 255, true) else local Rank = "Beginner" local Wins = 0 local Losers = 0 local Points = 0 local Cash = 0 local Exp = 0 setAccountData(getPlayerAcc, "Rank", Rank) setAccountData(getPlayerAcc, "Wins", Wins) setAccountData(getPlayerAcc, "Losers", Losers) setAccountData(getPlayerAcc, "Points", Points) setAccountData(getPlayerAcc, "Cash", Cash) setAccountData(getPlayerAcc, "Exp", Exp) -- NO ANYMORE SET STATS ANYMORE setAccountData(getPlayerAcc, "AddSQL", "2.5") outputChatBox("* #FFFFFF" .. getPlayerName( source ) .. "#0fc0fc has logged in and he's ready to play for the first time!", getRootElement(), 255, 255, 255, true) end end addEventHandler("onPlayerLogin", getRootElement(), Logged) function stats(source) local playeracc = getPlayerAccount ( source ) local playercash = getAccountData(playeracc, "Cash") or 0 local playerpoints = getAccountData(playeracc, "Points") or 0 local playerwins = getAccountData(playeracc, "Wins") or 0 local playerlooses = getAccountData(playeracc, "Losers") or 0 if ( playeracc ) then outputChatBox ( "*" .. getPlayerName ( source ) .. " 's Stats: ", root, 0, 252, 255, false ) outputChatBox ( "* Cash Earned: " .. tonumber ( playercash ) .. " $ ", root, 0, 252, 255, false ) outputChatBox ( "* Points Earned: " .. tonumber ( playerpoints ) .. " Points", root, 0, 252, 255, false ) outputChatBox ( "* Wins: " .. tonumber ( playerwins ), root, 0, 252, 255, false) outputChatBox ( "* Looses: " .. tonumber ( playerlooses ), root, 0, 252, 255, false) end end addCommandHandler ( "stats", stats )
  2. ant VPS laikysiu. Kolkas niekuom bet po to ziuresim...
  3. Now it sets next map, but it doesnt take the cash. I think i placed it in wrong place, but cant get where to place it. Can you help me?
  4. I implemented it into race resource. addCommandHandler('bm', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox(getPlayerName( player ) .. 'bought' .. getMapName( g_ForcedNextMap ), g_Root, 0, 240, 0) takePlayerMoney ( player, 5000) end ) Now if you are admin it buys the map, but it doesnt take the money and also it can do it when ur admin only. How to make that maps could be bought if you are just normal player and whats wrong with taking money function?
  5. Doesnt work ;/ Lots of errors: Idk what to do.
  6. Pasireiskit kas esat lietuviai cia
  7. Hey, im making buy map script, as i thought it shouldnt be hard but i failed somewhere and i can't understand what i did wrong. Heres whole code: addCommandHandler('bm', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.everyone) then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox(getPlayerName( player ) .. 'bought' .. getMapName( g_ForcedNextMap ), g_Root, 0, 240, 0) end takePlayerMoney ( player, tonumber(5000) ) end ) With debugscript 3 it says that unexpected symbol near '..' in line 25. Thats this line: outputChatBox(getPlayerName( player ) .. 'bought' .. getMapName( g_ForcedNextMap ), g_Root, 0, 240, 0) Also, I dont know if I made takePlayercash function right(It needs to take 5k), could you guy check that? P.S. I donk know what to do with this line: if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.everyone) then I need that Everyone could use this command.
  8. i tried script that posted solidsnake. with debug script 3 it shows - ERROR: call: failled to call 'scoreboard:scoreboardAddColumn' [string "?"]
  9. omfg dude what happened to you... You released your map for public... Strange..
  10. As i mentioned theese maps are from 2008. Then they were original...
  11. Hey, this is thread of my maps. I decided to realse my [DM], [DD] maps. They are really old (Made in 2008 autumn, but still good). Sorry no pics, im too lazy ;D. My v20.0 My special b-day map. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1321 My v15.0 MP becomes MI map.(Everyone is asking what the fuck that means. It means - Mission possible becomes mission impossible.) https://community.multitheftauto.com/index.php?p=resources&s=details&id=1324 My v13.0 A.K.A. Bleidex DD v1.0 map. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1322 My v16 Cross DD, Dune fight. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1323 My and LowRyder map. BLOW means Bleidex and LowRyder. Lowryder quitted ages ago i think.(If ur here write me ) https://community.multitheftauto.com/index.php?p=resources&s=details&id=1325 Feel free to use these maps in your server
  12. I had the same problem. Get old version of "admin" resource and its working there.
  13. I think noone does care here. The link wont be deleted.... Now dont read what im saying: Lukkie blet trink naxuj sita map packa pasiemei mapus is EPG map packo hackinto ir blet vaidini kad cia tawo.
  14. Dude. Im good friend of Martyz. I see that here are mine and Martyz maps. We know that these maps were stollen from MTA Race EPG server by DyG. But we still dont want that our maps would be published here. Please remove this pack.
  15. Need help with it. There is auto Ghostmode script. its good for DM maps, but when it comes to dd it doesnt turn off it at map start and it says voting for ghostmode passed so ghostmode is activated. Could anyone help me?
  16. also i think taht in your meta.xml file there should be not "gamemode" but "script"
  17. Bleidex

    Rules gui

    tried to fix something, but still need help. and also idk how to make that if they click cancel, they would be kicked. any ideas? function CreateRulesWindow() GUIEditor_Window[1] = guiCreateWindow(204,151,618,464,"Rules",false) guiSetVisible( GUIEditor_Window[1], false ) guiWindowSetMovable( GUIEditor_Window[1], false ) guiWindowSetSizable( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(118,419,97,24,"Accept",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(370,418,110,24,"Cancel",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(57,51,506,344,"Rules:",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(1,28,141,19,"-No Cheating",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(1,50,72,19,"-No Swearing",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(1,73,70,16,"-English Only",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(5,115,495,225,true,GUIEditor_Label[1]) GUIEditor_Tab[1] = guiCreateTab("Exceptions",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(10,13,469,177,"Exeptions:",true,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(1,22,267,19,"-You can talk other language if You are in -GTD-",true,GUIEditor_Label[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Tab[2] = guiCreateTab("-GTD-Members",GUIEditor_TabPanel[1]) GUIEditor_Label[7] = guiCreateLabel(18,16,118,18,"Leaders:",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Label[8] = guiCreateLabel(69,17,77,17,"Bleidex",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false) GUIEditor_Label[9] = guiCreateLabel(16,43,455,20,"Co-Leaders: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false) GUIEditor_Label[10] = guiCreateLabel(18,73,444,20,"Full Members: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[10],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",false) GUIEditor_Label[11] = guiCreateLabel(17,107,462,22,"Trial members: Anna Denon",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[11],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",false) GUIEditor_Label[12] = guiCreateLabel(149,23,326,80,"www.gtd.wu.lt",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[12],0,50,255) guiLabelSetVerticalAlign(GUIEditor_Label[12],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[12],"left",false) guiSetFont(GUIEditor_Label[12],"sa-header") addEventHandler( "onClientGUIClick", Cancel, CloseLoginWindow, false ) openLoginWindow() end function openRulesWindow() guiSetVisible( GUIEditor_Window[1], true ) showCursor( true ) end function closeRulesWindow() guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) end addEventHandler("onClientResourceStart",getResourceRootElement(),CreateRulesWindow)
  18. Bleidex

    Rules gui

    function CreateRulesWindow() GUIEditor_Window[1] = guiCreateWindow(204,151,618,464,"Rules",false) guiSetVisible( GUIEditor_Window[1], false ) guiWindowSetMovable( GUIEditor_Window[1], false ) guiWindowSetSizable( GUIEditor_Window[1], false ) GUIEditor_Button[1] = guiCreateButton(118,419,97,24,"Accept",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(370,418,110,24,"Cancel",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(57,51,506,344,"Rules:",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) GUIEditor_Label[2] = guiCreateLabel(1,28,141,19,"-No Cheating",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",true) GUIEditor_Label[3] = guiCreateLabel(1,50,72,19,"-No Swearing",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",true) GUIEditor_Label[4] = guiCreateLabel(1,73,70,16,"-English Only",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(5,115,495,225,true,GUIEditor_Label[1]) GUIEditor_Tab[1] = guiCreateTab("Exceptions",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(10,13,469,177,"Exeptions:",true,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",true) GUIEditor_Label[6] = guiCreateLabel(1,22,267,19,"-You can talk other language if You are in -GTD-",true,GUIEditor_Label[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",true) GUIEditor_Tab[2] = guiCreateTab("-GTD-Members",GUIEditor_TabPanel[1]) GUIEditor_Label[7] = guiCreateLabel(18,16,118,18,"Leaders:",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",true) GUIEditor_Label[8] = guiCreateLabel(69,17,77,17,"Bleidex",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",true) GUIEditor_Label[9] = guiCreateLabel(16,43,455,20,"Co-Leaders: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",true) GUIEditor_Label[10] = guiCreateLabel(18,73,444,20,"Full Members: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[10],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",true) GUIEditor_Label[11] = guiCreateLabel(17,107,462,22,"Trial members: Anna Denon",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[11],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",true) GUIEditor_Label[12] = guiCreateLabel(149,23,326,80,"www.gtd.wu.lt",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[12],0,50,255) guiLabelSetVerticalAlign(GUIEditor_Label[12],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[12],"left",true) guiSetFont(GUIEditor_Label[12],"sa-header") addEventHandler( "onClientGUIClick", Cancel, CloseLoginWindow, false ) openLoginWindow() end function openLoginWindow() guiSetVisible( wdwLogin, true ) showCursor( true ) end function closeLoginWindow() guiSetVisible( wdwLogin, false ) showCursor( false ) end addEventHandler("onClientResourceStart",getResourceRootElement(),CreateRulesWindow) end I tried this, but i still doesnt work. Any help please?
  19. Bleidex

    Rules gui

    so what i should do?
  20. Bleidex

    Rules gui

    Hey, I wanted to make Rules gui. I want that it would start after login_register script, but with my script it shoudl start in same time. But it doesnt start. What I made wrong? function CreateRulesWindow() GUIEditor_Window[1] = guiCreateWindow(204,151,618,464,"Rules",false) guiSetVisible( wdwLogin, false ) guiWindowSetMovable( wdwLogin, false ) guiWindowSetSizable( wdwLogin, false ) GUIEditor_Button[1] = guiCreateButton(118,419,97,24,"Accept",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(370,418,110,24,"Cancel",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(57,51,506,344,"Rules:",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) GUIEditor_Label[2] = guiCreateLabel(1,28,141,19,"-No Cheating",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",true) GUIEditor_Label[3] = guiCreateLabel(1,50,72,19,"-No Swearing",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",true) GUIEditor_Label[4] = guiCreateLabel(1,73,70,16,"-English Only",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(5,115,495,225,true,GUIEditor_Label[1]) GUIEditor_Tab[1] = guiCreateTab("Exceptions",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(10,13,469,177,"Exeptions:",true,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",true) GUIEditor_Label[6] = guiCreateLabel(1,22,267,19,"-You can talk other language if You are in -GTD-",true,GUIEditor_Label[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",true) GUIEditor_Tab[2] = guiCreateTab("-GTD-Members",GUIEditor_TabPanel[1]) GUIEditor_Label[7] = guiCreateLabel(18,16,118,18,"Leaders:",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",true) GUIEditor_Label[8] = guiCreateLabel(69,17,77,17,"Bleidex",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",true) GUIEditor_Label[9] = guiCreateLabel(16,43,455,20,"Co-Leaders: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",true) GUIEditor_Label[10] = guiCreateLabel(18,73,444,20,"Full Members: -",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[10],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",true) GUIEditor_Label[11] = guiCreateLabel(17,107,462,22,"Trial members: Anna Denon",true,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[11],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",true) GUIEditor_Label[12] = guiCreateLabel(149,23,326,80,"www.gtd.wu.lt",true,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[12],0,50,255) guiLabelSetVerticalAlign(GUIEditor_Label[12],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[12],"left",true) guiSetFont(GUIEditor_Label[12],"sa-header") addEventHandler( "onClientGUIClick", Cancel, CloseLoginWindow, false ) end function openLoginWindow() guiSetVisible( wdwLogin, true ) showCursor( true ) addEventHandler("onClientResourceStart",getResourceRootElement(),GUIEditor_Window[1]) end function closeLoginWindow() guiSetVisible( wdwLogin, false ) showCursor( false ) end
  21. hey i was just wondering how i should put this as resource. i got "Rules" code: GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(204,151,618,464,"Rules",false) guiSetProperty(GUIEditor_Window[1],"AlwaysOnTop","") GUIEditor_Button[1] = guiCreateButton(118,419,97,24,"Accept",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(370,418,110,24,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(57,51,506,344,"Rules:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Label[2] = guiCreateLabel(1,28,141,19,"-No Cheating",false,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Label[3] = guiCreateLabel(1,50,72,19,"-No Swearing",false,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(1,73,70,16,"-English Only",false,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(5,115,495,225,false,GUIEditor_Label[1]) GUIEditor_Tab[1] = guiCreateTab("Exceptions",GUIEditor_TabPanel[1]) GUIEditor_Label[5] = guiCreateLabel(10,13,469,177,"Exeptions:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Label[6] = guiCreateLabel(1,22,267,19,"-You can talk other language if You are in -GTD-",false,GUIEditor_Label[5]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",false) GUIEditor_Tab[2] = guiCreateTab("-GTD-Members",GUIEditor_TabPanel[1]) GUIEditor_Label[7] = guiCreateLabel(18,16,118,18,"Leaders:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[7],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[7],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[7],"left",false) GUIEditor_Label[8] = guiCreateLabel(69,17,77,17,"Bleidex",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[8],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[8],"left",false) GUIEditor_Label[9] = guiCreateLabel(16,43,455,20,"Co-Leaders: -",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[9],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[9],"left",false) GUIEditor_Label[10] = guiCreateLabel(18,73,444,20,"Full Members: -",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[10],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[10],"left",false) GUIEditor_Label[11] = guiCreateLabel(17,107,462,22,"Trial members: Anna Denon",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[11],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[11],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[11],"left",false) GUIEditor_Label[12] = guiCreateLabel(149,23,326,80,"www.gtd.wu.lt",false,GUIEditor_Label[1]) guiLabelSetColor(GUIEditor_Label[12],0,50,255) guiLabelSetVerticalAlign(GUIEditor_Label[12],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[12],"left",false) guiSetFont(GUIEditor_Label[12],"sa-header") How i should put this in resource? any help plese. And i need that this would start with player connect(i mean when he is connected to server)
  22. so i need login system? EDIT everything figured out
  23. Well i just cant understand LUA... I need at least very simple script like Money system that could be saved(i have reg and login system), auto giving 1k for winning a map, auto message sender and map buy... I know maybe i ask too much but as i said i need at least veeeery simple scripts of these
  24. hey i wanted to test it. I put everything(admin, webmap, ur script) in ACL file and also put in mtaserverconf file that they would auto release. But all i get is black window when i connect and info thta more to read is pressed F9. Maybe i did smthy wrong?
×
×
  • Create New...