s1mple
Members-
Posts
53 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
s1mple's Achievements
Snitch (10/54)
0
Reputation
-
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
-
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
-
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?
-
hmm, xwad, i need to make script or i can put this in console?
-
how i change vehicle speed? can you make me a script?
-
*base with 4 teammates* *fixed old backpack* *giveaways* IP: 94.23.29.129:22008
-
anyone has script with vehicle shop and sell? Buying if need
-
they are difficult to learn, so i can't mayde myself
-
can anyone make this with? MTA DAYZ SERVER Group getDistanceBetweenPoints3D
-
ANYONE HAD GAMEMODE WITH SNIPER AMMO Assault ammo shotgun ammo sniper rifle AND ANOTHER STUFF, LIKE DECRYPTED?
-
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
-
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
-
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/
-
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