Jump to content

s1mple

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by s1mple

  1. function greetingHandler () setElementData(source, "MAX_Slots", 50) setElementData(source, "M4", 1) setElementData(source, "DMR", 1) setElementData(source, "PDW", 1) setElementData(source, "Hunting Knife", 1) setElementData(source, "Milk", 5) setElementData(source, "Cooked Meat", 5) setElementData(source, "M4 Mag", 90) setElementData(source, "DMR Mag", 10) setElementData(source, "PDW Mag", 90) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) function greeting2Handler () setElementData(source, "Desert ghillie Suit", 1) setElementData(source, "Night Vision Goggles", 1) setElementData(source, "Infrared Goggles", 1) setElementData(source, "Map", 1) setElementData(source, "Box of Matches", 1) setElementData(source, "Watch", 1) setElementData(source, "GPS", 1) setElementData(source, "Toolbox", 1) setElementData(source, "Radio Device", 1) end addEvent( "onGreeting2", true ) addEventHandler( "onGreeting2", getRootElement(), greeting2Handler ) function PlayerHaveLevel( ) local accName = getAccountName ( getPlayerAccount ( source ) ) if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) ) then triggerClientEvent(source, "ShowVipPanel", source ) else outputChatBox("U DON'T HAVE VIP DO USE THIS COMMAND",source) end end addEvent( "ClientHaveLevel", true ) addEventHandler( "ClientHaveLevel", getRootElement(), PlayerHaveLevel ) This is vipmenu, but i need to add timer in there. like every 30 can use vipmenu
  2. function createVehicleOnServerStart() local vehicleManager = getAccount("getAccountsBySerial","ds4f9$") for i = 1, (getAccountData(vehicleManager,"getAccountsBySerial") or 0) do wastedVehicle = false vehicle = getAccount("vehicle_number_"..i,"ds4f9$") if not vehicle then break end if getAccountData(vehicle,"isExploded") == true then setAccountData(vehicle,"health",1000) wastedVehicle = true end I post full functioni but for i = 1, (getAccountData(vehicleManager,"getAccountsBySerial") or 0) do wastedVehicle = false have problem
  3. WARNING: [DayZ-MTA]\DayZ\login.lua:468: Bad argument @ 'getAccountData' [Expected account at argument 1, got boolean] http://prntscr.com/af6776 IMAGE How to fix it?
  4. hmm, xwad, i need to make script or i can put this in console?
  5. how i change vehicle speed? can you make me a script?
  6. *base with 4 teammates* *fixed old backpack* *giveaways* IP: 94.23.29.129:22008
  7. anyone has script with vehicle shop and sell? Buying if need
  8. they are difficult to learn, so i can't mayde myself
  9. can anyone make this with? MTA DAYZ SERVER Group getDistanceBetweenPoints3D
  10. ANYONE HAD GAMEMODE WITH SNIPER AMMO Assault ammo shotgun ammo sniper rifle AND ANOTHER STUFF, LIKE DECRYPTED?
  11. function nevesfunctionhue() local quant = guiGridListGetItemText ( gridlistItems["inventory"], guiGridListGetSelectedItem ( gridlistItems["inventory"] ), 3) setTimer(Playerkill,100,quant) end addEventHandler("onClientGUIClick", buttonItems["inventory3"], nevesfunctionhue) i wan't if i press the button, then he kill me. ITS DAYZ GAMEMODE
  12. server.lua outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is Now OnDuty!") setElementData( player, "blood", 99999999999999999999999 ) heal = "9999999999999999999999999999" triggerClientEvent(player,"onDuty",getRootElement()) end end addCommandHandler("duty",aduty) function offaduty ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then outputChatBox(" Administrator "..getPlayerName(player).." Is No Longer OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is No Longer OnDuty!") setElementData( player, "blood", 12000 ) end end addCommandHandler("offaduty",offduty) function heal_func ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) client.lua addEvent ( "onDuty", true ) function duty() if getElementData(source,"duty") == true then timer = setTimer ( function() setElementData(source,"onDuty",true) local x, y, z = getElementPosition(source ) local playerName = getPlayerName(source ) local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setTimer ( function() destroyElement(theText) end, 59, 1) end, 60, 0 ) else if isTimer(timer) then killTimer(timer) end setElementData(source,"duty",true) end end addEventHandler ( "onDuty", root, duty) error [2015-11-07 21:12:32] restart: Requested by Console [2015-11-07 21:12:32] restart: Resource restarting... [2015-11-07 21:12:32] Stopping Duty [2015-11-07 21:12:32] Resource 'Duty' changed, reloading and starting [2015-11-07 21:12:32] Starting Duty [2015-11-07 21:12:32] SCRIPT ERROR: Duty\Server.lua:6: '' expected near 'end' [2015-11-07 21:12:32] ERROR: Loading script failed: Duty\Server.lua:6: '' expected near 'end' [2015-11-07 21:12:32] Duty restarted successfully
  13. http://helpmtadayz.blogspot.com.ee/MTA DayZ blog, Right now is 14 post's resources: 8 Gamemodes: 1 Tutorials: 3 Mapings:1 Infromatin: 1 And like 3 day's i make usual mta resources, mapings, tutorials, gamemodes and much more!!! http://helpmtadayz.blogspot.com.ee/
  14. s1mple

    [Help]

    Can u make it for me?
  15. s1mple

    [Help]

    function startgm() accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then do if not getElementData(getLocalPlayer(), "onduty") then gmtimer = setTimer(gmforad, 200, 0) outputChatBox ("Admin is now: ON DUTY",150, 6, 8, 255,true) setElementData(getLocalPlayer(), "onduty", true) else killTimer (gmtimer) setElementData(getLocalPlayer(),"blood", 12000) outputChatBox ("Admin is now: OFF DUTY!",150, 6, 8, 255,true) setElementData(getLocalPlayer(), "onduty", false) end end addEvent("onPlayerOnDuty", true) addEventHandler("onPlayerOnDuty", thePlayer, startgm) function gmforad() if getElementData(getLocalPlayer(),"logedin") then setElementData(getLocalPlayer(),"blood", 500000) setElementData(getLocalPlayer(),"bleeding", 0) setElementData(getLocalPlayer(),"cold", false) setElementData(getLocalPlayer(),"temperature", 36.5) setElementData(getLocalPlayer(),"pain", false) setElementData(getLocalPlayer(),"brokenbone", false) setElementData(getLocalPlayer(),"thirst", 100) setElementData(getLocalPlayer(),"food", 100) end end Can u make? if player is 10 meters from me, then he can't shoot and aim
  16. s1mple

    Whats wrong?

    Server.lua works fine but client.lua, it's dosen't work
  17. s1mple

    Whats wrong?

    Client.lua addEvent ( "onDuty", true ) function duty() if getElementData(source,"duty") == true then timer = setTimer ( function() setElementData(source,"onDuty",true) local x, y, z = getElementPosition(source ) local playerName = getPlayerName(source ) local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setTimer ( function() destroyElement(theText) end, 59, 1) end, 60, 0 ) else if isTimer(timer) then killTimer(timer) end setElementData(source,"duty",true) end end addEventHandler ( "onDuty", root, duty) Server.lua function startgm() accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then do if not getElementData(getLocalPlayer(), "onduty") then gmtimer = setTimer(gmforad, 2000, 0) outputChatBox ("Admin is now: ON DUTY",255, 255, 255,true) setElementData(getLocalPlayer(), "onduty", true) else killTimer (gmtimer) setElementData(getLocalPlayer(),"blood", 12000) outputChatBox ("Admin is now: OFF DUTY!",255, 255, 255,true) setElementData(getLocalPlayer(), "onduty", false) end end addEvent("onPlayerOnDuty", true) addEventHandler("onPlayerOnDuty", thePlayer, startgm) function gmforad() if getElementData(getLocalPlayer(),"logedin") then setElementData(getLocalPlayer(),"blood", 500000) setElementData(getLocalPlayer(),"bleeding", 0) setElementData(getLocalPlayer(),"cold", false) setElementData(getLocalPlayer(),"temperature", 37) setElementData(getLocalPlayer(),"pain", false) setElementData(getLocalPlayer(),"brokenbone", false) setElementData(getLocalPlayer(),"thirst", 100) setElementData(getLocalPlayer(),"food", 100) end end
  18. s1mple

    Fix it please

    setAccountData(vehicleManager,"vehicleamount",counter) setAccountData(vehicleManager,"tentamount",counterTent) ERROR: [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:444: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2015-11-03 16:45:18] WARNING: [DayZ-MTA]\DayZ\login.lua:445: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean]
  19. Can anyone make me with "dxDraw3DText" Duty script ACL: Admin,Moderator,SuperModerator dxDraw3DText: ADMIN IS ON DUTY (NO DM)
  20. He don't give me dxDraw3DText....
  21. error [2015-10-22 05:08:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-10-22 05:08:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-10-22 05:08:10] ERROR: [resources]\Duty\Server.lua:27: attempt to concatenate local 'accName' (a boolean value) [2015-10-22 05:09:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-10-22 05:09:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-10-22 05:09:10] ERROR: [resources]\Duty\Server.lua:27: attempt to concatenate local 'accName' (a boolean value) [2015-10-22 05:10:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-10-22 05:10:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-10-22 05:10:10] ERROR: [resources]\Duty\Server.lua:27: attempt to concatenate local 'accName' (a boolean value) [2015-10-22 05:11:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-10-22 05:11:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-10-22 05:11:10] ERROR: [resources]\Duty\Server.lua:27: attempt to concatenate local 'accName' (a boolean value) [2015-10-22 05:12:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2015-10-22 05:12:10] WARNING: [resources]\Duty\Server.lua:26: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2015-10-22 05:12:10] ERROR: [resources]\Duty\Server.lua:27: attempt to concatenate local 'accName' (a boolean value) client addEvent ( "onDuty", true ) function duty() if getElementData(source,"duty") == true then timer = setTimer ( function() setElementData(source,"onDuty",true) local x, y, z = getElementPosition(source ) local playerName = getPlayerName(source ) local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setTimer ( function() destroyElement(theText) end, 59, 1) end, 60, 0 ) else if isTimer(timer) then killTimer(timer) end setElementData(source,"duty",true) end end addEventHandler ( "onDuty", root, duty) server function aduty ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then outputChatBox(" Administrator "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is Now OnDuty!") setElementData( player, "blood", 99999999999999999999999 ) heal = "9999999999999999999999999999" triggerClientEvent(player,"onDuty",getRootElement()) end end addCommandHandler("duty",aduty) function offaduty ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then outputChatBox(" Administrator "..getPlayerName(player).." Is No Longer OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is No Longer OnDuty!") setElementData( player, "blood", 12000 ) end end addCommandHandler("offaduty",offduty) function heal_func ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) and, can anyone make like now with blood, like godmode, no pain, no brokenbone
  22. connection local hostname = get( "hostname" ) or "db1.gameserver-sponsor.de" local username = get( "username" ) or "root" local password = get( "password" ) or "JukuEiOle" local database = get( "database" ) or "db_888" local port = tonumber( get( "port" ) ) or 3306 s_mysql username = get( "username" ) or "db_888" password = get( "password" ) or "JukuEiOle" db = get( "database" ) or "db_888" host = get( "hostname" ) or "db1.gameserver-sponsor.de" port = tonumber( get( "port" ) ) or 3306 mtaserver.config "mta_mysql.dll" /> "sha.dll" /> "ml_sockets.dll" /> settings "@mysql.username" value="db_888" /> "@mysql.password" value="JukuEiOle" /> "@mysql.database" value="db_888" /> "@mysql.hostname" value="db1.gameserver-sponsor.de" /> "@mysql.port" value="3306" />
  23. hey, i have problem with mysql, with linux he don't connect. s_mysql connection mtaserver.config settings anyone can fix it?
  24. Here is tutorials Mta dayz, go to this channel and like my videos if u like my videos and of course Subscribe Right now i have 3 videos: MTA DAYZ install 1.5 MTA DAYZ: how to spawn vehicles MTA DAYZ: "player has killed by" tutorial how to get it LOOK -->https://www.youtube.com/channel/UCUl82Ak80Z2gJTw8h8-wXOw<-- HERE
×
×
  • Create New...