Jump to content

Search the Community

Showing results for tags 'script'.

  • 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. 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?
  2. --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?
  3. Buenas, quisiera que me ayudaran en algo: Creé un panel y quiero que se active mediante el contacto con un marker, aquí está el detalle.. Cuando activo el panel en el marker, el panel les aparece a todos los usuarios, quiero que le aparezca solamente al que toca el marker, no a todo el mundo, ¿Cómo haría para que sucediera eso?
  4. 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>
  5. 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
  6. 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
  7. 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?
  8. 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?
  9. 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 drawCount = 5 local drawnCount = 0 local drawFrom = 0 local automaticChange = 1 for i=0, 4, 1 do szovegek[i] = "" end function itsRenderTime() for i = 0, 4, 1 do if szovegek[i] then local topSpaceX = dxGetTextWidth(szovegek[i]: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 ( szovegek[i], 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) table.insert(szovegek[i], "#00BAFF" .. lastNick .. " #FFffffneve mostantól #00baff" .. newNick .. "") end) 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)
  10. 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 ... Any help? All the code is in client side. The part of the function who call the checker: if checkArenaBan(getAccountNamePlayer(_local), getElementID(arena.Element)) then addNotification("Usted está prohibido en esta arena.", "error") return else etc end The checker: function checkArenaBan(account, arena) local banlist = xmlLoadFile("arenas/acl/banlist.xml") for i, m in ipairs(xmlNodeGetChildren(banlist)) do if xmlNodeGetAttribute(m, "account") == account and xmlNodeGetAttribute(m, "arena") == arena then xmlUnloadFile(banlist) return true else xmlUnloadFile(banlist) return false end end end
  11. Estoy realizando un script y para optimizarlo uso tablas para guardar objetos. El problema es que cuando quiero utilizar el destroyElement para eliminar el objeto en cuestión, me tira userdata value en el debug. ¿Por qué podría ser? local x, y, z = getElementPosition( player ) objetos[ player ] = createObject( id, x, y, z, 0, 0, 0 ) local object = objetos[ player ] if object then if isElement( object ) then destroyElement( object ) objetos[ player ] = nil end end
  12. addEventHandler("onClientRender", root, addEventHandler("onClientGUIClick", GUIEditor.button[1], function() text1 = guiGetText(GUIEditor.edit[1]) --text2 = guiGetText(valasz1) --text3 = guiGetText(valasz2) if text1 ~= "" then --triggerServerEvent("server",localPlayer,text1) 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(255, 0, 0, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) setTimer ( function() text1 = nil end, 5000, 1 ) end end ) ) what wrong in this?
  13. local screenW, screenH = guiGetScreenSize() local online = #getElementsByType("player") addEventHandler("onClientRender", root, function() dxDrawRectangle(screenW * 0.0069, screenH * 0.7144, screenW * 0.2188, screenH * 0.0289, tocolor(0, 0, 0, 178), false) dxDrawText("#00FF00Online #FFffffkockák: #00bafF"..online.."/32", screenW * 0.0097, screenH * 0.7144, screenW * 0.2257, screenH * 0.7422, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, true, false) end ) will not charge players only if resource restart, why? /sorry for my bad english/
  14. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawRectangle(screenW * 0.7951, screenH * 0.1944, screenW * 0.1979, screenH * 0.1033, tocolor(0, 0, 0, 131), false) end ) function greetPlayer ( ) local joinedPlayerName = getPlayerName ( source ) dxDrawText("#00baff" .. joinedPlayerName .. "#FFffFFJött Kockulni!", 1151, 181, 1420, 202, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, true, false) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer )
  15. local sX, sY = guiGetScreenSize() local mainW, mainH = 285, 125 local mainX, mainY = sX-mainW-10, sY-mainH-730 local lp = getLocalPlayer() local hudColors = { ["main"] = tocolor(0, 0, 0, 125), ["sub"] = tocolor(0, 0, 0, 75), ["health"] = tocolor(255, 0, 0, 75), ["armor"] = tocolor(255, 255, 255, 75), ["oxygen"] = tocolor(0, 186, 255, 75) } addEventHandler("onClientRender", getRootElement(), function() showPlayerHudComponent("all", false) showPlayerHudComponent("crosshair", true) dxDrawRectangle(mainX, mainY, mainW, mainH, hudColors["main"]) -- Életerő dxDrawRectangle(mainX+135, mainY+10, mainW-151, 20, hudColors["sub"]) dxDrawRectangle(mainX+137, mainY+12, getElementHealth(localPlayer)*(mainW-25)/400, 16, hudColors["health"]) dxDrawText(math.floor(getElementHealth(lp)).." élet", mainX+257, mainY+14.2, mainX+mainW-135, mainY+30, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center") dxDrawText(math.floor(getElementHealth(lp)).." élet", mainX+257, mainY+10, mainX+mainW-135, mainY+30, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") -- Páncél dxDrawRectangle(mainX+135, mainY+34, mainW-150, 20, hudColors["sub"]) dxDrawRectangle(mainX+137, mainY+36, getPedArmor(localPlayer)*(mainW-155)/100, 16, hudColors["armor"]) dxDrawText("Életpajzs", mainX+257, mainY+38.2, mainX+mainW-135, mainY+54, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center") dxDrawText("Életpajzs", mainX+257, mainY+35, mainX+mainW-135, mainY+54, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") -- Oxigén dxDrawRectangle(mainX+135, mainY+58, mainW-150, 20, hudColors["sub"]) dxDrawRectangle(mainX+137, mainY+60, getPedOxygenLevel(localPlayer)*(mainW-155)/1000, 16, hudColors["oxygen"]) dxDrawText("Oxigén", mainX+257, mainY+62.2, mainX+mainW-135, mainY+78, tocolor(0, 0, 0, 255), 1, "default-bold", "center", "center") dxDrawText("Oxigén", mainX+257, mainY+59, mainX+mainW-135, mainY+78, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") -- Pénz local moneyLength = string.len(getPlayerMoney(localPlayer)) dxDrawText(string.sub("FullFunPlay ", moneyLength-25, 29) .. "#000000$" .. getPlayerMoney(localPlayer) .. "#000000", mainX+10, mainY+96.1, mainX+mainW-10, nil, tocolor(0, 0, 0, 255), 1.6, "default-bold", "right", nil, false, false, false, true) dxDrawText(string.sub("FullFunPlay ", moneyLength-25, 29) .. "#00baff$" .. getPlayerMoney(localPlayer) .. "#00baff", mainX+10, mainY+93, mainX+mainW-10, nil, tocolor(255, 255, 255, 255), 1.6, "default-bold", "right", nil, false, false, false, true) -- Fegyver local pWeapon = getPedWeapon(localPlayer) local clipAmmo = getPedAmmoInClip(localPlayer) local totalAmmo = getPedTotalAmmo(localPlayer) --dxDrawText("Lőszer: " .. clipAmmo .. " | " .. totalAmmo-clipAmmo, mainX+100, 109.5, nil, nil, tocolor(0, 0, 0, 255), 1.1, "default-bold") dxDrawText("Lőszer: " .. clipAmmo .. " | " .. totalAmmo-clipAmmo, mainX+35, 120, nil, nil, tocolor(255, 255, 255, 255), 1, "default-bold") dxDrawImage(mainX-80, 50, 200, 100, "img/" .. pWeapon.. ".png") end) how to fix this problem? /sorry for my bad english/ thx the help:D
  16. i searched on community, but not found /sorry for my bad english/
  17. i created a gui with memo, but when i type a word in memo and press (for example) 't' i type to chat instead of memo how to fix this bug? /sorry for my bad english/ and thanks the help:D
  18. Hello, I am scripting a panel that will set people into diffrent dimensions. But i need the code for chaning the Dimension Only, Please Every Answer would be to help. function teleportPlayer() if(source == GUIEditor.button[1]) then local teleportX, teleportY, teleportZ = 1210.48621, 2358.32373, 8.01253 setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ) outputChatBox("You Have Been Set To The Arabian Server") end end addEventHandler("onClientGUIClick", root, teleportPlayer) ------------------------- function teleportPlayer() if(source == GUIEditor.button[2]) then local teleportX, teleportY, teleportZ = 1923.0625, -1760.005859375, 13.546875 setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ) outputChatBox("You Have Been Set To The English Server") end end addEventHandler("onClientGUIClick", root, teleportPlayer)
  19. function Superman.Start() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then local self = Superman -- Register events addEventHandler("onClientResourceStop", getResourceRootElement(thisResource), Superman.Stop, false) addEventHandler("onPlayerJoin", rootElement, Superman.onJoin) addEventHandler("onPlayerQuit", rootElement, Superman.onQuit) addEventHandler("onClientRender", rootElement, Superman.processControls) addEventHandler("onClientRender", rootElement, Superman.processFlight) addEventHandler("onClientPlayerDamage", localPlayer, Superman.onDamage, false) addEventHandler("onClientElementDataChange", rootElement, Superman.onDataChange) addEventHandler("onClientElementStreamIn", rootElement, Superman.onStreamIn) addEventHandler("onClientElementStreamOut", rootElement, Superman.onStreamOut) -- Bind keys --bindKey("jump", "down", Superman.onJump) -- Register commands addCommandHandler("superman", Superman.cmdSuperman) -- Initializate attributes self.smokeGenerators = {} self.rotations = {} self.previousVelocity = {} end end addEventHandler("onClientResourceStart", getResourceRootElement(thisResource), Superman.Start, false) Error: attempt to call global 'getPlayerAccount' (a nil value) wtf..?
  20. السلام عليكم ورحمة الله وبركاته في البداية انا ما عندي افكار اسويها - بس اشوف افكار واسوي متلها لحين ما تجيني فكرة اسويها + قريباً جيم مود اكثر من رائع بإذن الله هذا المود موجود بكل مكان - بس انا سويت واحد شبه لحرب العصابات صور التحميل vehicleHud - اضغط هنا للتحميل ------------------------------------------------- فيديو الجيم مود الجديد - قريباً طيب الحين رح تقولون لي ليش ما رفعت الجيم مود - بقولكم اني ما خلصته بعد + بنشر منه اصدار البيتا ميشان اعرف وش الاخطاء اللي به واصلحها وبعدها انشره كامل ---------------------------------------------------------------- هذا فيديو بسيط عن البداية - اضغط هنا لتحميل ومشاهدة الفيديو - وهذا عرض كامل للجيم مود شكراً على المشاهدة
  21. --client local szavon = false local ido = 30 local valasz = 0 GUIEditor_Window = {} GUIEditor_Label = {} function szAblak(ker,v1,v2) if not szavon then local v_1 = v1 local v_2 = v2 local szavon = true local sw,sh = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(sw/1.48,sh/1.4,sw/3.2,sh/3.6,"Szavazás",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(0.0474,0.1242,0.9161,0.2919,ker,true,GUIEditor_Window[1]) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(0.0657,0.4783,0.8759,0.1553,"1.) "..v_1,true,GUIEditor_Window[1]) --guiLabelSetColor(GUIEditor_Label[2],255,200,200) --guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(0.0657,0.6335,0.8759,0.1491,"2.) "..v_2,true,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(0.0474,0.8075,0.8,0.1,ido,true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],150,150,255) guiSetFont(GUIEditor_Label[4],"clear-normal") bindKey ("1", "down", function() guiSetFont(GUIEditor_Label[3],"clear-normal") guiLabelSetColor(GUIEditor_Label[3],255,255,255) valasz = 1 guiLabelSetColor(GUIEditor_Label[2],255,200,200) guiSetFont(GUIEditor_Label[2],"default-bold-small") end) bindKey ("2", "down", function() guiSetFont(GUIEditor_Label[2],"default-normal") guiLabelSetColor(GUIEditor_Label[2],255,255,255) valasz = 2 guiLabelSetColor(GUIEditor_Label[3],255,200,200) guiSetFont(GUIEditor_Label[3],"default-bold-small") end) lejar = setTimer( function() ido = ido-1 guiSetText(GUIEditor_Label[4], ido ) if ido == 0 then szVeg() --killTimer(lejar) end end, 1000,30) end end function szVeg() if isTimer(lejar) then killTimer(lejar) end szavon = false guiSetText(GUIEditor_Label[4], "szavazatok számlálása..." ) guiSetFont(GUIEditor_Label[2],"default-normal") guiSetFont(GUIEditor_Label[3],"default-normal") guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetColor(GUIEditor_Label[2],255,255,255) --("valasz: "..valasz) triggerServerEvent("submit",getLocalPlayer(),valasz) unbindKey ("1", "down", function() guiSetFont(GUIEditor_Label[3],"clear-normal") guiLabelSetColor(GUIEditor_Label[3],255,255,255) valasz = 1 guiLabelSetColor(GUIEditor_Label[2],255,200,200) guiSetFont(GUIEditor_Label[2],"default-bold-small") end) unbindKey ("2", "down", function() guiSetFont(GUIEditor_Label[2],"default-normal") guiLabelSetColor(GUIEditor_Label[2],255,255,255) valasz = 2 guiLabelSetColor(GUIEditor_Label[3],255,200,200) guiSetFont(GUIEditor_Label[3],"default-bold-small") end) end addEvent("szvzas",true) addEventHandler("szvzas",getRootElement(), function(kerdes,val1,val2) szAblak(kerdes,val1,val2) end) addEvent("valaszok",true) addEventHandler("valaszok",getRootElement(), function(v1,v2) guiSetText(GUIEditor_Label[4], "_@/\"" ) guiSetText(GUIEditor_Label[2], guiGetText(GUIEditor_Label[2]) .. " - " .. v1 ) guiSetText(GUIEditor_Label[3], guiGetText(GUIEditor_Label[3]) .. " - " .. v2 ) if v1 > v2 then guiSetFont(GUIEditor_Label[2],"default-bold-small") elseif v1 < v2 then guiSetFont(GUIEditor_Label[3],"default-bold-small") end setTimer( function() destroyElement(GUIEditor_Window[1]) szavon = false ido = 30 valasz = 0 end, 5000, 1) end) --server function vote(p,s) if hasObjectPermissionTo(p,"function.kickPlayer") then triggerClientEvent("szvzas",getRootElement()) end end addCommandHandler("k",vote) function valaszok () triggerClientEvent(getRootElement(),"valaszok",getRootElement()) end Error: client.lua:20: attempt to concatenate local v_1 (a nil value) wtf?
  22. Hello, I have a radar on my server when I'll turn it does not appear, someone help me? local screenW,screenH = guiGetScreenSize() local resW,resH = 1366,768 local sW,sH = (screenW/resW), (screenH/resH) local turn = true local alpha = 255 addEventHandler( "onClientResourceStart", resourceRoot, function() setPlayerHudComponentVisible ( "radar", false ) --# Create Textures hudMaskFX = dxCreateShader("mask.fx") radarTexture = dxCreateTexture("img/map.png") maskTexture = dxCreateTexture("img/radar_mask.png") checkTextures = ( hudMaskFX and radarTexture and maskTexture ) if not ( checkTextures ) then outputChatBox( "[Arma II DayZ Radar]: Could not create textures. Please use debugscript 3" ) else dxSetShaderValue( hudMaskFX, "sPicTexture", radarTexture ) dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) end end ) function drawRadar() if not ( checkTextures ) then return end dxSetShaderValue( hudMaskFX, "sMaskTexture", maskTexture ) local x,y = getElementPosition( localPlayer ) local zoom = 13 x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskFX, "gUVPosition", x,y ) dxSetShaderValue( hudMaskFX, "gUVScale", 1/zoom, 1/zoom ) --# Get rotations local _, _, c_Rot = getElementRotation( getCamera()); local _, _, p_Rot = getElementRotation( localPlayer ) dxSetShaderValue( hudMaskFX, "gUVRotAngle", math.rad( -c_Rot )) if getElementData(getLocalPlayer(),"GPS") >= 1 then setPlayerHudComponentVisible ( "radar", false ) --# Alpha --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW, 9.2*sH, HP_Alpha) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW, 9.2*sH, tocolor(0, 102, 255, 100)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW, 9.2*sH, tocolor(255, 255, 0, 100)) --# Bars --dxDrawRectangle(23.5*sW, 676.5*sH, 130.5*sW/maxHealth*playerHealth, 9.2*sH, HP_Colour) --dxDrawRectangle(156.6*sW, 676.5*sH, 65*sW/100*playerArmor, 9.2*sH, tocolor(0, 102, 255, 190)) --dxDrawRectangle(225*sW, 676.5*sH, 62.6*sW/1000*playerOxygen, 9.2*sH, tocolor(255, 255, 0, 190)) --# Minimap x,y,w,h 21 -- dxDrawImage(-6*sW, 500*sH, 300*sW, 250*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255)) dxDrawImage(0*sW, 592*sH, 216*sW, 183*sH, "img/radar_cover.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(0*sW, 598*sH, 197*sW, 125*sH, hudMaskFX, 0,0,0, tocolor(255,255,255,255)) dxDrawImage(90*sW, 655*sH, 21*sW, 21*sH, "img/radar_player.png", -p_Rot+c_Rot, 0, 0, tocolor(200, 200, 200, 200)) end --# Wanted local g_wl = getPlayerWantedLevel( localPlayer ) if ( g_wl > 0 ) then if ( turn == true ) then alpha = alpha + 5 if ( alpha > 180 ) then alpha = 180 turn = false end elseif ( turn == false ) then alpha = alpha - 5 if ( alpha < 0 ) then alpha = 0 turn = true end end --dxDrawRectangle(23*sW, 536*sH, 265*sW, 135*sH, tocolor(0, 102, 255, alpha)) else return end end addEventHandler( "onClientRender", root, drawRadar) addEventHandler( "onClientResourceStop", resourceRoot, function() setPlayerHudComponentVisible ( "radar", true ) end)
  23. dsmatias

    [ HELP ]

    Can someone help me? when I give restart this script appears this error, how can I solve? Erro: http://prntscr.com/cgkemp
  24. Can anyone help me how to solve this erro Print > Error
  25. --------------------------- -- My window --------------------------- local GUIEditor = { window = {}, button = {}, memo = {}, } wndMywindow = { 'wnd', GiftWindow = guiCreateWindow(322, 223, 783, 193, "AJÁNDÉK PANEL | TELJESEN TURBESZ ÁLTAL", false) guiWindowSetSizable(GiftWindow, false) guiSetVisible (GiftWindow, false) guiSetProperty(GiftWindow, "CaptionColour", "FF00D655") button2 = guiCreateButton(9, 24, 126, 34, "HALHATATLANSÁG", false, GiftWindow) guiSetProperty(button2, "NormalTextColour", "FF2FFE00") button3 = guiCreateButton(9, 68, 126, 35, "AUTÓ HALHATATLANSÁG 1X", false, GiftWindow) guiSetProperty(button3, "NormalTextColour", "FF2FFE00") button33 = guiCreateButton(9, 110, 126, 32, "MINIGUN", false, GiftWindow) guiSetProperty(button33, "NormalTextColour", "FF2FFE00") button4 = guiCreateButton(10, 150, 125, 33, "TANK", false, GiftWindow) guiSetProperty(button4, "NormalTextColour", "FF2FFE00") button5 = guiCreateButton(143, 25, 131, 33, "SZÍNESÍRÁS", false, GiftWindow) guiSetProperty(button5, "NormalTextColour", "FFFEFFFE") button6 = guiCreateButton(143, 68, 131, 35, "FEGYVER CSOMAG", false, GiftWindow) guiSetProperty(button6, "NormalTextColour", "FFFEFFFE") button7 = guiCreateButton(144, 109, 130, 33, "LÁTHATATLANSÁG", false, GiftWindow) guiSetProperty(button7, "NormalTextColour", "FFFEFFFE") memo = guiCreateMemo(277, 25, 496, 117, "\nSzia, üdv a FullFunPlay Szerveren! \n\nEz a panel, egy MÁGIKUS!!! ISMÉTLEM MÁGIKUS PANEL!!! Csak nektek, turbesztől, a tulajtól. \n\nItt kiválaszthatsz több valamit, 12 óránként! \n\nJó szórakozást a panellel! \n\nUPDATE! #2016.07.29: Választhatsz színesírást!\n\nUPDATE! #2016.08.01: Láthatatlanság ki/be kapcsolható!\nGravity Gun szerzés 2 milláért.", false, GiftWindow) guiMemoSetReadOnly(memo, true) button = guiCreateButton(146, 152, 627, 31, "BEZÁRÁS BEZÁRÁS BEZÁRÁS BEZÁRÁS BEZÁRÁS", false, GiftWindow) guiSetProperty(button, "NormalTextColour", "FFFF0000") {'btn', id='gift', window=wndMywindow, width=255}, what wrong? °-°
×
×
  • Create New...