Jump to content

Search the Community

Showing results for tags 'mta'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. function checkAFKPlayers() for index, source in ipairs(getElementsByType("player")) do if (getPlayerIdleTime(source) > 1000) then setElementDimension ( source, 50) setElementAlpha(source, 50) outputChatBox("#004B00[DDC - Afk] #FFffFFNem mozogtál 2 percig, afk módba léptél! Kikapcsoláshoz mozdulj meg!", root, 255,000,000, true) elseif isElementMoving(source) then setElementAlpha(source, 255) setElementDimension ( source, 0) outputChatBox("#004B00[DDC - Afk] #FFffFFKiléptél az afk módból!", root, 255,000,000, true) end end end setTimer(checkAFKPlayers, 1000, 0) function isElementMoving ( theElement ) if isElement ( theElement ) then local x, y, z = getElementVelocity( theElement ) return x ~= 0 or y ~= 0 or z ~= 0 end return false end how to fix this? i want once outputChatbox
  2. Hi someone i know he's having problem with mta he's saying that if he open mta start for a few seconds and after that he's out and back to the desktop any way i have asked him to use mta diag and didn't help so i'm looking for someone give me a solution for that here's his mta diag link : https://pastebin.mtasa.com/751466372 Regards! @ccw @Jusonex @Dutchman101 @Anyone knows a solution for that would be great
  3. Hello any1 knows how to add more guns on server? I have dayz server and i would like to get some help. Just tell me here or contact me if you know how to script.
  4. Sorry my bad english Hello people, I have a problem in the image section, I do not use every day so I am with many problems, I want this image is cut according to the damage of the vehicle, but that's not what's happening The problem http://imgur.com/lCG3sC9 as I want to leave http://imgur.com/FOF5B6O Script: OBS(OOP Script) dxDrawImageSection(Boxs.x+90, Boxs.y-15, 55, 50, 0, math.floor(localPlayer:getOccupiedVehicle():getHealth())/10, 48, 38, "Arquivos/Imagens/damage.png");
  5. function replaceModel() txd = engineLoadTXD("santa.txd", 290 ) engineImportTXD(txd, 290 ) dff = engineLoadDFF("santa.dff", 290 ) engineReplaceModel(dff, 290 ) txd = engineLoadTXD("male01.txd", 44 ) engineImportTXD(txd, 44 ) dff = engineLoadDFF("male01.dff", 44 ) engineReplaceModel(dff, 44 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) First skin (santa) is working fine, second (male01) got this error: Error loading DFF @ 'engineLoadDFF' [male01.dff] and bad argument @ engineReplaceModel [expected dff at argument 1, got boolean]... Wtf.. How to fix this? I do not understand this..
  6. function addToGroup( group ) group = aclGetGroup( group ) if group == false or group == nil then error( "The value of the 'group' is nil or false !" ) end account = getPlayerAccount( source ) if not isGuestAccount( account ) then local name = getAccountName( account ) local add = aclGroupAddObject( group, "user."..name ) if getPlayerMoney(source) >= 2500 then elseif add then outputChatBox( "Színesen írsz, amíg turbesz el nem veszi.", root, 0, 255, 0, true ) triggerClientEvent( source, "hideall", source ) takePlayerMoney ( source, 2000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end else outputChatBox( "Regisztrálj, és jelentkezz be.", source, 255, 0, 0, true ) end end addEvent( "addToGroup", true ) addEventHandler( "addToGroup", root, addToGroup )
  7. Hi all, several weeks ago I was trying to solve a problem which i can not find solution. I've tried everything and nothing has worked. I need something to check if the user account is banner from the arena, and this code does not work... The console give me this error: [2016-11-02 14:58:26] WARNING: MassiveGaming\general\arenaban_s.lua:35: Bad argument @ 'xmlNodeGetAttribute' [Expected xml-node at argument 1] [2016-11-02 14:58:26] WARNING: MassiveGaming\general\arenaban_s.lua:40: Bad argument @ 'xmlUnloadFile' [Expected xml-node at argument 1] arenaban_s.lua (server side) function checkArenaBan(player, account, arena) if fileExists("general/banlist.xml") == false then return false end local banlist = xmlLoadFile("general/banlist.xml") for i, m in ipairs(xmlNodeGetChildren(banlist)) do if xmlNodeGetAttribute(m, "account") == account and xmlNodeGetAttribute(m, "arena") == arena then xmlUnloadFile(banlist) local returned = "true" triggerClientEvent(player, "checkArenaBan", player, returned) else xmlUnloadFile(banlist) local returned = "false" triggerClientEvent(player, "checkArenaBan", player, returned) end end end addEvent("checkArenaBan", true) addEventHandler("checkArenaBan", getRootElement(), checkArenaBan) lobby_c.lua (client side) local isPlayerBannedFromArena = "false" addEvent("checkArenaBan", true) addEventHandler("checkArenaBan", getLocalPlayer(), function (returned) if returned == "true" then isPlayerBannedFromArena = "true" else isPlayerBannedFromArena = "false" end end) other part of lobby_c.lua (client side) triggerServerEvent("checkArenaBan", _local, _local, getAccountNamePlayer(_local), getElementID(arena.Element)) if isPlayerBannedFromArena == "true" then addNotification("Usted está prohibido en esta arena.", "error") return end
  8. Zdravím, Len som zvedavý či tu vlastne je niekto aktívny aj zo Slovenska alebo Česka okrem mňa. Ak teda hej tak stačí len odpovedať :D. Povedzme, že toto je taký môj malý súkromný prieskum.
  9. Por favor pasenme paquete de RP para abrir un servidor de paquetes necesitan sus mods de ayuda lo que me ayuda a abrir un servidor
  10. Cześć, szukam skryptera do serwera MTA DayZ na którym planuje z drugą osobą. Jakbyście nie wiedzieli ja mam 14 lat a druga osoba 16 lat, wcale nie oszukujemy. Mamy zamiar stworzyć najlepszy Polski DayZ w MTA, w którym gracze będą miło grali. Nie szukam skryptera który tylko lubi oszukiwać, ale szukam uczciwego, który posiada też minimum 16 lat. Wymagamy: -Aktualizowania skryptów MTA DayZ. -Utworzenie skryptów DayZ, nie cudzych z internetu. Oferujemy: -Miłą grę w ekipie. -Skupienie się na pracy skryptera. -Fundusze na serwer oraz forum. Kontakt: skype: dipper155 Nie szukam 13 letniego skryptera który się niby podaje za najlepszego skryptera.
  11. Como intalo el mta pardise o pasenme pack de scripts RP O RPG CUALQUIERA
  12. ---server function warpMe(targetPlayer) local interior = getElementInterior(targetPlayer) setElementInterior(source, interior) setCameraInterior(source, interior) if getElementData(targetPlayer, "IsWarpLocked") then outputChatBox("Ez a játékos nem engedte meg, hogy rá warpoljanak!", source, r, g, b, false) return end if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox("No free seats left in " .. getPlayerName(targetPlayer) .. "'s vehicle.", source, 255, 0, 0) end end function(player) setElementData(player, "IsWarpLocked", true) else removeElementData(player, "IsWarpLocked") end addEvent( "warponoff", true ) addEventHandler( "warponoff", root, giveWeaponsOnSpawn ) ---client function warponoff ( ) triggerServerEvent("warponoff", getLocalPlayer(), group) end {'chk', id='Warp', onclick=warponoff, width=60},
  13. function onPlayerMoveItemOutOfInventory () if playerMovedInInventory then startRollMessage2("Inventory", "Abusing exploits will result in a ban!", 255, 22, 0 ) return end -- [ID:0000005 - Several grammar + spelling mistakes and typos] //L local itemName = guiGridListGetItemText ( gridlistItems["inventory"], guiGridListGetSelectedItem ( gridlistItems["inventory"] ), 1 ) if getElementData(getLocalPlayer(),itemName) and getElementData(getLocalPlayer(),itemName) >= 1 then if isPlayerInLoot() then local isVehicle = getElementData(isPlayerInLoot(),"vehicle") local isTent = getElementData(isPlayerInLoot(),"tent") if isVehicle and not isTent then local veh = getElementData(isPlayerInLoot(),"parent") local tires,engine,parts = getVehicleAddonInfos (getElementModel(veh)) if itemName == "Tire" and (getElementData(isPlayerInLoot(),"Tire_inVehicle") or 0) < tires or itemName == "Engine" and (getElementData(isPlayerInLoot(),"Engine_inVehicle") or 0) < engine or itemName == "Tank Parts" and (getElementData(isPlayerInLoot(),"Parts_inVehicle") or 0) < parts then if itemName == "Tank Parts" then itemName = "Parts" end triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName.."_inVehicle",isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) elseif isToolbeltItem(itemName) then triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) elseif getLootCurrentSlots(getElementData(getLocalPlayer(),"currentCol")) + getItemSlots(itemName) <= getLootMaxAviableSlots(isPlayerInLoot()) then triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) else startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0 ) return end elseif isToolbeltItem(itemName) then triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) elseif getLootCurrentSlots(getElementData(getLocalPlayer(),"currentCol")) + getItemSlots(itemName) <= getLootMaxAviableSlots(isPlayerInLoot()) then triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) else startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0 ) return end else triggerEvent("onPlayerMoveItemOutOFInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) end end local gearName = guiGetText(headline["loot"]) local col = getElementData(getLocalPlayer(),"currentCol") setTimer(refreshInventory,200,2) if isPlayerInLoot() then setTimer(refreshLoot,200,2,col,gearName) end end addEventHandler ( "onClientGUIClick", buttonItems["inventory"], onPlayerMoveItemOutOfInventory ) How i can chane it to drop all loot? Any scripts? function onPlayerMoveItemInInventory () local itemName = guiGridListGetItemText ( gridlistItems["loot"], guiGridListGetSelectedItem ( gridlistItems["loot"] ), 1 ) if isPlayerInLoot() then if getElementData(isPlayerInLoot(),itemName) and getElementData(isPlayerInLoot(),itemName) >= 1 then if not isToolbeltItem(itemName) then if getPlayerCurrentSlots() + getItemSlots(itemName) <= getPlayerMaxAviableSlots() then if not playerMovedInInventory then triggerEvent("onPlayerMoveItemInInventory",getLocalPlayer(),itemName,isPlayerInLoot()) playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) else startRollMessage2("Inventory", "Abusing exploits will result in a ban!", 255, 22, 0 ) return end else startRollMessage2("Inventory", "Inventory is full!", 255, 22, 0 ) return end else playerMovedInInventory = true setTimer(function() playerMovedInInventory = false end,700,1) triggerEvent("onPlayerMoveItemInInventory",getLocalPlayer(),itemName,isPlayerInLoot()) end end if isPlayerInLoot() then local gearName = guiGetText(headline["loot"]) local col = getElementData(getLocalPlayer(),"currentCol") setTimer(refreshInventory,200,2) setTimer(refreshLoot,200,2,col,gearName) end end end addEventHandler ( "onClientGUIClick", buttonItems["loot"], onPlayerMoveItemInInventory ) How i can chane it to take all loot? Any scripts?
  14. i tried create a window in freeroam, but doesn't working --------------------------- -- Teszt --------------------------- local GUIEditor = { button = {}, window = {}, label = {} } wnd.GUIEditor.window[1] = guiCreateWindow(541, 375, 360, 222, "Teszt", false) guiWindowSetSizable(wnd.GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(10, 182, 340, 30, "teszt", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(9, 26, 341, 156, "- Teszt", false, GUIEditor.window[1]) guiSetVisible( wnd.GUIEditor.window[1], false ) {'btn', id='gift', window=wnd.GUIEditor.window[1], width=250} Error: gui.lua:283: attempt to index local 'wnd' (a userdata value) what wrong?
  15. local screenW, screenH = guiGetScreenSize() local GUIEditor = { button = {}, window = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(0.35, 0.40, 0.32, 0.12, "Event hírdető panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.04, 0.68, 0.78, 0.23, "Beírt szöveg kiírása", true, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(0.03, 0.21, 0.93, 0.38, "", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.84, 0.68, 0.14, 0.23, "Bezár", true, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) guiSetInputMode("no_binds_when_editing") function showGUI() guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) end addEvent( "showguii", true ) addEventHandler( "showguii", localPlayer, showGUI ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) text1 = guiGetText ( GUIEditor.edit[1] ) --text2 = guiGetText ( valasz1 ) --text3 = guiGetText ( valasz2 ) if text1 ~= "" then triggerServerEvent( "server",localPlayer,text1 ) setTimer ( function( ) text1 = nil end,5000, 1 ) end end,false ) addEventHandler ( 'onClientRender',root, function ( ) dxDrawText(text1, (screenW * 0.2924) + 1, (screenH * 0.3778) + 1, (screenW * 0.7014) + 1, (screenH * 0.5400) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) dxDrawText(text1, screenW * 0.2924, screenH * 0.3778, screenW * 0.7014, screenH * 0.5400, tocolor(0, 186, 255, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) end ) the dx text why not show on all players screen? o-O
  16. addEventHandler ( "onPlayerChat", root, function ( msg, type ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) and type == 0 then cancelEvent ( ) function outputMessage(author,message) outputChatBox("#ff0000[T] #FFffff"..author..": #FF0000"..message,getRootElement(),0,0,0,true) end function changetag(author,message) outputChatBox("#ff0000[Tulaj] #FFffff"..author..": #FFd700"..message,getRootElement(),0,0,0,true) end addCommandHandler("rang",changetag) why not working this? what wrong?
  17. --client local GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(0.32, 0.29, 0.37, 0.29, "[DDC]© Fegyverbolt /turbesz\"", true) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(0.02, 0.91, 0.96, 0.05, "bezárás", true, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(0.02, 0.08, 0.96, 0.80, true, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("#1", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(0.01, 0.00, 0.99, 0.29, "M4 - 5000 tölténnyel", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.button[2] = guiCreateButton(0.01, 0.27, 0.99, 0.12, "Kérem ezt! Ár: 3000$!", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF24FE00") GUIEditor.label[2] = guiCreateLabel(0.01, 0.38, 0.99, 0.29, "AK47 - 5000 tölténnyel", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.button[3] = guiCreateButton(0.00, 0.67, 0.99, 0.12, "Kérem ezt! Ár: 2500$!", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF24FE00") GUIEditor.label[3] = guiCreateLabel(0.11, 0.85, 0.78, 0.10, "Folytatást a következő fülön találhatsz! ;)", true, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 251, 248, 2) GUIEditor.tab[2] = guiCreateTab("#2", GUIEditor.tabpanel[1]) GUIEditor.label[4] = guiCreateLabel(0.01, 0.05, 0.97, 0.30, "9MM - 4000 Tölténnyel", true, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[4], "sa-header") GUIEditor.button[4] = guiCreateButton(0.01, 0.37, 0.97, 0.12, "Kérem ezt! Ár: 2000$!", true, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFBF802") GUIEditor.label[5] = guiCreateLabel(0.01, 0.48, 0.98, 0.27, "Uzi - 4000 Tölténnyel", true, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[5], "sa-header") GUIEditor.button[5] = guiCreateButton(0.01, 0.78, 0.97, 0.12, "Kérem ezt! Ár: 2500$!", true, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFBF802") GUIEditor.tab[3] = guiCreateTab("#3", GUIEditor.tabpanel[1]) GUIEditor.label[6] = guiCreateLabel(0.02, 0.04, 0.96, 0.29, "RPG - 100 Tölténnyel", true, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[6], "sa-header") GUIEditor.button[6] = guiCreateButton(0.01, 0.31, 0.97, 0.13, "Kérem ezt! Ára: 300000$!", true, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF01C4B8") GUIEditor.label[7] = guiCreateLabel(0.02, 0.45, 0.96, 0.29, "M.lövész - 100 Tölténnyel", true, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[7], "sa-header") GUIEditor.button[7] = guiCreateButton(0.01, 0.77, 0.97, 0.13, "Kérem ezt! Ára: 50000$!", true, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF01C4B8") GUIEditor.tab[4] = guiCreateTab("#4", GUIEditor.tabpanel[1]) GUIEditor.label[8] = guiCreateLabel(0.02, 0.05, 0.96, 0.10, "MP5 - 3000 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "center", false) GUIEditor.button[8] = guiCreateButton(0.09, 0.17, 0.81, 0.11, "Kérem ezt! Ár: 4000$!", true, GUIEditor.tab[4]) GUIEditor.label[9] = guiCreateLabel(0.02, 0.30, 0.96, 0.10, "Tec9 - 3000 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "center", false) GUIEditor.button[9] = guiCreateButton(0.09, 0.41, 0.81, 0.11, "Kérem ezt! Ár: 4500$!", true, GUIEditor.tab[4]) GUIEditor.label[10] = guiCreateLabel(0.02, 0.54, 0.96, 0.10, "Shotgun - 2500 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) GUIEditor.button[10] = guiCreateButton(0.09, 0.64, 0.81, 0.11, "Kérem ezt! Ár: 5000$!", true, GUIEditor.tab[4]) GUIEditor.label[11] = guiCreateLabel(0.02, 0.77, 0.96, 0.10, "Lefűrészelt csövű puska - 2500 Tölténnyel", true, GUIEditor.tab[4]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "center", false) GUIEditor.button[11] = guiCreateButton(0.09, 0.88, 0.81, 0.11, "Kérem ezt! Ár: 5500$!", true, GUIEditor.tab[4]) GUIEditor.tab[5] = guiCreateTab("#5", GUIEditor.tabpanel[1]) GUIEditor.label[12] = guiCreateLabel(0.01, 0.02, 0.97, 0.10, "Hangtompítós pisztoly - 3000 tölténnyel", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[12], "center") GUIEditor.button[12] = guiCreateButton(0.12, 0.13, 0.75, 0.11, "Kérem ezt! Ára: 1500$!", true, GUIEditor.tab[5]) GUIEditor.label[13] = guiCreateLabel(0.01, 0.24, 0.97, 0.10, "Lángszóró - 3000 tölténnyel", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[13], "center") GUIEditor.button[13] = guiCreateButton(0.12, 0.36, 0.75, 0.11, "Kérem ezt! Ára: 10000$!", true, GUIEditor.tab[5]) GUIEditor.label[14] = guiCreateLabel(0.01, 0.47, 0.97, 0.10, "Gránát - 50 darab", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[14], "center") GUIEditor.button[14] = guiCreateButton(0.12, 0.59, 0.75, 0.11, "Kérem ezt! Ára: 15000$!", true, GUIEditor.tab[5]) GUIEditor.label[15] = guiCreateLabel(0.01, 0.70, 0.97, 0.10, "Tapadós bomba - 50 darab", true, GUIEditor.tab[5]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.button[15] = guiCreateButton(0.12, 0.84, 0.75, 0.11, "Kérem ezt! Ára: 20000$!", true, GUIEditor.tab[5]) GUIEditor.tab[6] = guiCreateTab("#6", GUIEditor.tabpanel[1]) GUIEditor.label[16] = guiCreateLabel(0.00, 0.03, 0.98, 0.28, "Molotov - 50 darab", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.label[16], "sa-header") GUIEditor.button[16] = guiCreateButton(0.00, 0.33, 0.99, 0.15, "Kérem ezt! Ár: 10000$!", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.button[16], "clear-normal") guiSetProperty(GUIEditor.button[16], "NormalTextColour", "FF4F09FE") GUIEditor.label[17] = guiCreateLabel(0.00, 0.51, 0.98, 0.28, "Könnygáz - 50 darab", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.label[17], "sa-header") GUIEditor.button[17] = guiCreateButton(0.00, 0.80, 0.99, 0.15, "Kérem ezt! Ár: 20000$!", true, GUIEditor.tab[6]) guiSetFont(GUIEditor.button[17], "clear-normal") guiSetProperty(GUIEditor.button[17], "NormalTextColour", "FF4F09FE") guiSetVisible ( GUIEditor.window[1], false ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) == false then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) elseif guiGetVisible ( GUIEditor.window[1] ) == true then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end end bindKey ( "F2", "down", OpenWin) function bezarom() guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], bezarom) function m4() triggerServerEvent ("m4",getLocalPlayer(),m4) end addEventHandler("onClientGUIClick", GUIEditor.button[2], m4) function ak47() triggerServerEvent ("ak47",getLocalPlayer(),ak47) end addEventHandler("onClientGUIClick", GUIEditor.button[3], ak47) function kilencmm() triggerServerEvent ("kilencmm",getLocalPlayer(),kilencmm) end addEventHandler("onClientGUIClick", GUIEditor.button[4], kilencmm) function uzi() triggerServerEvent ("uzi",getLocalPlayer(),uzi) end addEventHandler("onClientGUIClick", GUIEditor.button[5], uzi) function rpg() triggerServerEvent ("rpg",getLocalPlayer(),rpg) end addEventHandler("onClientGUIClick", GUIEditor.button[6], rpg) function sniper() triggerServerEvent ("sniper",getLocalPlayer(),sniper) end addEventHandler("onClientGUIClick", GUIEditor.button[7], sniper) function mp5() triggerServerEvent ("mp5",getLocalPlayer(),mp5) end addEventHandler("onClientGUIClick", GUIEditor.button[8], mp5) function tec() triggerServerEvent ("tec",getLocalPlayer(),tec) end addEventHandler("onClientGUIClick", GUIEditor.button[9], tec) function shotgun() triggerServerEvent ("shotgun",getLocalPlayer(),shotgun) end addEventHandler("onClientGUIClick", GUIEditor.button[10], shotgun) function lfcsp() triggerServerEvent ("lfcsp",getLocalPlayer(),lfcsp) end addEventHandler("onClientGUIClick", GUIEditor.button[11], lfcsp) function silenced() triggerServerEvent ("silenced",getLocalPlayer(),silenced) end addEventHandler("onClientGUIClick", GUIEditor.button[12], silenced) function lsz() triggerServerEvent ("lsz",getLocalPlayer(),lsz) end addEventHandler("onClientGUIClick", GUIEditor.button[13], lsz) function granat() triggerServerEvent ("granat",getLocalPlayer(),granat) end addEventHandler("onClientGUIClick", GUIEditor.button[14], granat) function tapados() triggerServerEvent ("tapados",getLocalPlayer(),tapados) end addEventHandler("onClientGUIClick", GUIEditor.button[15], tapados) function molotov() triggerServerEvent ("molotov",getLocalPlayer(),molotov) end addEventHandler("onClientGUIClick", GUIEditor.button[16], molotov) function konnygaz() triggerServerEvent ("konnygaz",getLocalPlayer(),konnygaz) end addEventHandler("onClientGUIClick", GUIEditor.button[17], konnygaz) --server function elso ( ) if getPlayerMoney(source) >= 3000 then giveWeapon ( source, 31, 5000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 3000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "m4", true ) addEventHandler( "m4", root, elso ) function masodik ( ) if getPlayerMoney(source) >= 2500 then giveWeapon ( source, 30, 5000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "ak47", true ) addEventHandler( "ak47", root, masodik ) function harmadik ( ) if getPlayerMoney(source) >= 2000 then giveWeapon ( source, 22, 4000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "kilencmm", true ) addEventHandler( "kilencmm", root, harmadik ) function negyedik ( ) if getPlayerMoney(source) >= 2500 then giveWeapon ( source, 28, 4000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 2500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "uzi", true ) addEventHandler( "uzi", root, negyedik ) function otodik ( ) if getPlayerMoney(source) >= 300000 then giveWeapon ( source, 36, 100 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 300000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "rpg", true ) addEventHandler( "rpg", root, otodik ) function hatodik ( ) if getPlayerMoney(source) >= 50000 then giveWeapon ( source, 34, 100 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 50000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "sniper", true ) addEventHandler( "sniper", root, hatodik ) function hetedik ( ) if getPlayerMoney(source) >= 4000 then giveWeapon ( source, 29, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 4000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "mp5", true ) addEventHandler( "mp5", root, hetedik ) function nyolcadik ( ) if getPlayerMoney(source) >= 4500 then giveWeapon ( source, 32, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 4500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "tec", true ) addEventHandler( "tec", root, nyolcadik ) function kilencedik ( ) if getPlayerMoney(source) >= 5000 then giveWeapon ( source, 25, 2500 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 5000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "shotgun", true ) addEventHandler( "shotgun", root, kilencedik ) function tizedik ( ) if getPlayerMoney(source) >= 5500 then giveWeapon ( source, 26, 2500 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 5500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "lfcsp", true ) addEventHandler( "lfcsp", root, tizedik ) function tizenegyedik ( ) if getPlayerMoney(source) >= 1500 then giveWeapon ( source, 23, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 1500 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "silenced", true ) addEventHandler( "silenced", root, tizenegyedik ) function tizenkettedik ( ) if getPlayerMoney(source) >= 10000 then giveWeapon ( source, 37, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 10000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "lsz", true ) addEventHandler( "lsz", root, tizenkettedik ) function tizenharmadik ( ) if getPlayerMoney(source) >= 15000 then giveWeapon ( source, 16, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 15000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "granat", true ) addEventHandler( "granat", root, tizenharmadik ) function tizennegyedik ( ) if getPlayerMoney(source) >= 20000 then giveWeapon ( source, 39, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 20000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "tapados", true ) addEventHandler( "tapados", root, tizennegyedik ) function tizenotodik ( ) if getPlayerMoney(source) >= 10000 then giveWeapon ( source, 18, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 10000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "molotov", true ) addEventHandler( "molotov", root, tizenotodik ) function tizenhatodik ( ) if getPlayerMoney(source) >= 20000 then giveWeapon ( source, 17, 50 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 20000 ) else outputChatBox("Nincs erre pénzed.", source, 255, 0, 0, false) end end addEvent( "konnygaz", true ) addEventHandler( "konnygaz", root, tizenhatodik ) when i click on a tab, my money is decrease, and give me weapons, why? how to fix it?
  18. Hemos vuelto y con mejor calidad en servicios y soporte, participa en este sorteo para ganarte un servidor de MTA o SAMP totalmente gratis durante un mes, válido hasta el 15 de octubre. www.ProSystemsHz.com -- Calidad, Seguridad & Economía Ingresa al link para participar
  19. Ayuda Zona Segura (Safe Zone) El caso es que quiero que cuando salga el boss se active la zona segura para que los player no se hagan daño cuando salga el boss y lo que pasa es que el boss no hace daño cuando esta dentro de dicha zona, esta Zona tambien es para que no entren los Zombies. Junte El safe Zone Con el boss para que cuando salga se active el safe Zone pero nose como hacer que cuando muera el boss se quite el safe Zone Ayuda porfavor http://imgur.com/hbGEZci http://imgur.com/dhTBnZh http://imgur.com/lBFnG8V http://imgur.com/OMt5OxY Server: -- Advanced Anti Zombie by Kenix version 1.0.6 --[[ It's example how use it. Change this ]] local aSavePlaces = { Rectangle = { -- X, Y, Width, Height { 1115.0374755859, -2117.1108398438, 130, 140 }; }; } local aRadarAreaPlaces = { -- x, y ,size 1, size 2, color: red, green, blue, alpha. { 1115.0374755859, -2117.1108398438, 130, 140, 0, 255, 0, 255 }; { 2773, -2430, 30, 30, 0, 255, 0, 255 }; } local sResourceName = getResourceName ( resource ) local bUseGunsInSavePlace = get( sResourceName .. '.UseGunsInSaveZone' ) local bUseRadarArea = get( sResourceName .. '.UseRadarArea' ) local pColshape, pRadarArea local bUseRunInSaveZone = get( sResourceName .. '.UseRunInSaveZone' ) local bUseJumpInSaveZone = get( sResourceName .. '.UseJumpInSaveZone' ) local bUseWeaponHudInSaveZone = get( sResourceName .. '.UseWeaponHudInSaveZone' ) local bUseAmmoHudInSaveZone = get( sResourceName .. '.UseAmmoHudInSaveZone' ) local bUseDamageInSaveZone = get( sResourceName .. '.UseDamageInSaveZone' ) addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for s, _ in pairs( aSavePlaces ) do for _, a in pairs( aSavePlaces[ s ] ) do pColshape = _G[ 'createCol' .. s ]( unpack( a ) ) setElementData( pColshape, 'zombieProof', true ) addEventHandler ( 'onColShapeHit', pColshape, function ( pHitElement ) if getElementType( pHitElement ) == 'player' then if not bUseGunsInSavePlace then toggleControl ( pHitElement, 'fire', false ) toggleControl ( pHitElement, 'aim_weapon', false ) toggleControl ( pHitElement, 'vehicle_fire', false ) end if not bUseRunInSaveZone then toggleControl ( pHitElement, 'sprint', false ) end if not bUseJumpInSaveZone then toggleControl ( pHitElement, 'jump', false ) end if not bUseWeaponHudInSaveZone then showPlayerHudComponent ( pHitElement, 'weapon', false ) end if not bUseAmmoHudInSaveZone then showPlayerHudComponent ( pHitElement, 'ammo', false ) end if not bUseDamageInSaveZone then setElementData( pHitElement, 'damage', 'no' ) end elseif getElementType( pHitElement ) == 'ped' then -- check if the entered ped kill it killPed( pHitElement ) -- kill ped end end ) addEventHandler ( 'onColShapeLeave', pColshape, function ( pLeaveElement ) if getElementType( pLeaveElement ) == 'player' then if not bUseGunsInSavePlace then toggleControl ( pLeaveElement, 'fire', true ) toggleControl ( pLeaveElement, 'aim_weapon', true ) toggleControl ( pLeaveElement, 'vehicle_fire', true ) end if not bUseRunInSaveZone then toggleControl ( pLeaveElement, 'sprint', true ) end if not bUseJumpInSaveZone then toggleControl ( pLeaveElement, 'jump', true ) end if not bUseWeaponHudInSaveZone then showPlayerHudComponent ( pLeaveElement, 'weapon', true ) end if not bUseAmmoHudInSaveZone then showPlayerHudComponent ( pLeaveElement, 'ammo', true ) end if not bUseDamageInSaveZone then setElementData( pLeaveElement, 'damage', 'yes' ) end elseif getElementType( pLeaveElement ) == 'ped' then -- check if the entered ped kill it killPed( pLeaveElement ) -- kill ped end end ) end end if bUseRadarArea then for _, a in ipairs( aRadarAreaPlaces ) do pRadarArea = createRadarArea ( unpack( a ) ) end end end ) _____________________________________________________________________________________________________________ Client: addEventHandler( 'onClientPlayerDamage', localPlayer, function( ) if getElementData( localPlayer, 'damage' ) == 'no' then cancelEvent( ) end end ) __________________________________________________________________________________________________________________ Meta: <meta> <info author="stor" version="1.0" type="script" name="Boomer" description="LauraSad" /> <script src="server.lua" type="server" /> <script src="client.lua" type="client" /> <file src="skin/boomer.txd" /> <file src="skin/boomer.dff" /> <file src="skin/zombi.txd" /> <file src="skin/zombi.dff" /> <file src="sonido1.mp3" /> <file src="sonido2.mp3" /> <file src="boom.wav" /> <include resource="extra_health" /> <include resource="slothbot" /> <script src="core_server.lua" type="server"/> <script src="core_client.lua" type="client"/> <settings> <!-- option 1 --> <setting name="#UseGunsInSaveZone" value="[ true ]" /> <!-- option 2 --> <setting name="#UseRadarArea" value="[ true ]" /> <!-- Added in version 1.0.1 --> <!-- option 3 --> <setting name="#UseRunInSaveZone" value="[ true ]" /> <!-- option 4 --> <setting name="#UseJumpInSaveZone" value="[ true ]" /> <!-- option 5 --> <setting name="#UseWeaponHudInSaveZone" value="[ true ]" /> <!-- option 6 --> <setting name="#UseAmmoHudInSaveZone" value="[ true ]" /> <!-- Added in version 1.0.4 --> <!-- option 7 --> <setting name="#UseDamageInSaveZone" value="[ false ]" /> <!-- option 1 = If a player enters the zone, he can not use a gun --> <!-- option 2 = use this option if you want to use Radar Area (color map) --> <!-- Added in version 1.0.1 --> <!-- option 3 = If you are using false then you can not run in this area and if you use true you will be able to run in this area --> <!-- option 4 = If you are using false then you can not jump in this area and if you use true you will be able to jump in this area --> <!-- option 5 = this option is responsible for the weapon if you use false then when you go into this zone your weapon (HUD) is not visible and if true then the opposite --> <!-- option 6 = this option is responsible for the ammo if you use false when you go in this area and ammo (HUD) is not visible and if true then the opposite --> <!-- Added in version 1.0.4 --> <!-- option 7 = this option is if damage you if use false then canceled damage --> <!-- Notice: all options are on default --> </settings> </meta>
  20. Hola gente bella del Foro, Tengo un pequeño inconveniente Con el boss, lo que quiero hacer que cuando el boss salga se active una Zona Segura que cuando entren los Zombies Mueran no solo esto, si no que los jugarores no se puedan pegar (Hacer daño entre si Solo el boss) en dicha Zona y cuando muera el boss se quite la Zona. se los agradeseria un monton. (He intentado con otros script de zona segura y no he podido Hacer nada)
  21. local GUIEditor = { window = {}, scrollbar = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(406, 147, 673, 585, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.scrollbar[1] = guiCreateScrollBar(615, 35, 27, 513, false, false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(18, 42, 587, 496, "a\n\nb\n\nc\n\nd\n\ne\n\nf\n\ng\n\nh\n\ni\n\nj\n\nk\n\nl\n\nm\n\nn\n\no\n\np\n\nq\n\nr\n\ns\n\nt\n\nu\n\nv\n\nw\n\nx\n\ny\n\nz", false, GUIEditor.window[1]) scrollbar doesn't working, why? o_O
  22. local x, y = guiGetScreenSize() local font_os = (x/1600+y/900)/2 local font = font_os*1 local nSpaceY = dxGetFontHeight(font, "default-bold") local nSpaceYOld = dxGetFontHeight(2, "default-bold") local szovegek = {} local lp = getPlayerName(getLocalPlayer()) for i=0, 0, 1 do szovegeki = "" end function itsRenderTime() for i = 0, 0, 1 do if szovegeki then local topSpaceX = dxGetTextWidth(szovegeki:gsub("#%x%x%x%x%x%x",""),font,"default-bold") local webX=topSpaceX+font_os*10 dxDrawRectangle ( x-webX-font_os*5, nSpaceYOld*2+font_os*8+nSpaceY*(4-i)+font_os*(4-i), webX, nSpaceY+font_os*4, tocolor ( 0, 0, 0, 155 ) ) dxDrawEmptyRec ( x-webX-font_os*5, nSpaceYOld*2+font_os*8+nSpaceY*(4-i)+font_os*(4-i), webX, nSpaceY+font_os*4, tocolor ( 255, 255, 255, 200 ), 2 ) dxDrawText ( szovegeki, x-webX, nSpaceYOld*2+font_os*10+nSpaceY*(4-i)+font_os*(4-i), topSpaceX, nSpaceY, tocolor ( 255, 255, 255, 255 ), font, "default-bold", "left", "top",true,false,false,true ) end end end addEventHandler("onClientRender", getRootElement(), itsRenderTime) function infoServer2(szoveg) for i = 3, 0, -1 do szovegek[i+1] = szovegeki end szovegek[0] = szoveg end addEvent("infoServer2", true) addEventHandler("infoServer2",getRootElement(), infoServer2) function dxDrawEmptyRec(absX,absY,sizeX,sizeY,color,ancho) dxDrawRectangle ( absX,absY,sizeX,ancho,color ) dxDrawRectangle ( absX,absY+ancho,ancho,sizeY-ancho,color ) dxDrawRectangle ( absX+ancho,absY+sizeY-ancho,sizeX-ancho,ancho,color ) dxDrawRectangle ( absX+sizeX-ancho,absY+ancho,ancho,sizeY-ancho*2,color ) end local aValto = true function azEltunteto() if aValto then aValto = false removeEventHandler ( "onClientRender", root, itsRenderTime ) else aValto = true addEventHandler ( "onClientRender", root, itsRenderTime ) end end bindKey("delete","down",azEltunteto) this is client (^) --- this is server (v) addEventHandler("onPlayerChangeNick", root, function(lastNick, newNick) local pName = getPlayerName(source) table.insert(szovegeki, lastNick.." change nick: "..newNick) triggerClientEvent("infoServer2", szovegeki) end) what wrong? how to fix ? thanks the help
  23. ________________________________________________________________________________________________ Witajcie ! Pragnę wam dziś zaprezentować zapowiedz serwera Virtual Life na platformie MTA. Ma on charakter RPG czyli inaczej przedstawia nasza realne życie w nieco luźniejszej odsłonie. __________________________________________________________________________________________ Informacje __________________________________________________________________________________________ Na samym początku reklamy serwera Virtual Life, pragnę poinformować, iż skrypty nie są w pełni autorskie.My umiemy się do tego przyznać i korzystamy z niektórych skryptów ale przecież który serwer teraz z tego nie korzysta... Oczywiście w nowych aktualizacjach będziemy dodawać autorskie skrypty tj. Prace Dorywcze czy też inne rzeczy. __________________________________________________________________________________________ Rozgrywka __________________________________________________________________________________________ Na naszym serwerze rozgrywka dzieje się w mieście San Fierro. Posiadamy wszelakie prace na przykład takie jak Kutry,Śmieciarki,Laweciarz,Street View i wiele wiele innych. __________________________________________________________________________________________ Frakcje __________________________________________________________________________________________ Na naszym serwerze spotkacie frakcje PSP, SAPD, SAMA PSP - Państwowa Straż Pożarna SAPD - San Andreas Police Department SAMA - San Andreas Medical Assistance __________________________________________________________________________________________ Nasze forum: http://mta-virtuallife.ct8.pl Start serwera 22.10.2016 Serdecznie zapraszamy!
  24. function giveWeaponsOnSpawn0 ( ) giveWeapon ( source, 31, 3000 ) -- Gives the M4 weapon with 200 ammo takePlayerMoney ( source, 20 ) else outputChatBox("You do not have enough money.", source, 255, 0, 0, false) end addEvent( "giveweaponm4", true ) addEventHandler( "giveweaponm4", root, giveWeaponsOnSpawn0 ) what wrong in this?
  25. local x, y = guiGetScreenSize() local font_os = (x/1600+y/900)/2 local font = font_os*1 local nSpaceY = dxGetFontHeight(font, "default-bold") local nSpaceYOld = dxGetFontHeight(2, "default-bold") local szovegek = {} for i=0, 4, 1 do szovegeki = "s" end function itsRenderTime() for i = 0, 4, 1 do if szovegeki then local topSpaceX = dxGetTextWidth(szovegeki:gsub("#%x%x%x%x%x%x",""),font,"default-bold") local webX=topSpaceX+font_os*10 dxDrawRectangle ( x-webX-font_os*5, nSpaceYOld*2+font_os*8+nSpaceY*(4-i)+font_os*(4-i), webX, nSpaceY+font_os*4, tocolor ( 0, 0, 0, 155 ) ) dxDrawEmptyRec ( x-webX-font_os*5, nSpaceYOld*2+font_os*8+nSpaceY*(4-i)+font_os*(4-i), webX, nSpaceY+font_os*4, tocolor ( 255, 255, 255, 200 ), 2 ) dxDrawText ( szovegeki, x-webX, nSpaceYOld*2+font_os*10+nSpaceY*(4-i)+font_os*(4-i), topSpaceX, nSpaceY, tocolor ( 255, 255, 255, 255 ), font, "default-bold", "left", "top",true,false,false,true ) end end end addEventHandler("onClientRender", getRootElement(), itsRenderTime) addEventHandler("onClientPlayerChangeNick", root, function(lastNick, newNick) szovegeki = ""..lastNick.." #00baffneve mostantól#ffFFff "..newNick, true end) function infoServer2(szoveg) for i = 3, 0, -1 do szovegek[i+1] = szovegeki end szovegek[0] = szoveg end addEvent("infoServer2", true) addEventHandler("infoServer2",getRootElement(), infoServer2) function dxDrawEmptyRec(absX,absY,sizeX,sizeY,color,ancho) dxDrawRectangle ( absX,absY,sizeX,ancho,color ) dxDrawRectangle ( absX,absY+ancho,ancho,sizeY-ancho,color ) dxDrawRectangle ( absX+ancho,absY+sizeY-ancho,sizeX-ancho,ancho,color ) dxDrawRectangle ( absX+sizeX-ancho,absY+ancho,ancho,sizeY-ancho*2,color ) end local aValto = true function azEltunteto() if aValto then aValto = false removeEventHandler ( "onClientRender", root, itsRenderTime ) else aValto = true addEventHandler ( "onClientRender", root, itsRenderTime ) end end bindKey("delete","down",azEltunteto) the script working, but the message show in 5 line instead of 1, how to fix this?
×
×
  • Create New...