Jump to content

DJ_Shocker

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by DJ_Shocker

  1. I'm in need of the following: - Prison Interior (possibly exterior) - LSPD Interior Map - Hospital Interior Map - City Hall Interior map. for Roleplay server. Any questions, let me know Thanks!
  2. Wow enjoyed watching this! Well done
  3. Looking for Roleplay Gamemode. English is a MUST. I did look at the OwlGaming release, but relies heavily on a UCP that isn't included and not really sure how to remove all of that. Everything I've found so far is in another language.
  4. Ok so I'm not exactly sure as to how to get this 1 minute warning sound to play every round at the one minute remaining mark. If you connect to the server, it plays at the right time, perfect. Then after that, it doesn't...until you reconnect. Can anyone shed some light on this?
  5. That's why it fixed it. Using a 50ms timer to stop the sound should have worked as well - but this is a better way of doing it. I was in a hurry this afternoon and didn't see his message at the bottom. I think i understand now. Basically this is a sound file that plays at the 1 Minute Mark on the round countdown timer. What i have noticed is that when you first connect, and the timer says 1 minute left, it plays and stops. But the next round, it will not play until you reconnect again. Should i try setting cds to nil after the stopSound until it comes back to play again? No errors are in the log.
  6. oh wow this fixed it! What's different from using just stopSound and adding isElement to it? Wiki showed nothing about this?
  7. I'm new to Lua and am trying to get a sound to stop. I looked at the Wiki and saw the stopSound. Well the music does not stop and am getting an error: bad argument at 'stopSound' expected sound at argument 1 addEventHandler ( "onClientClick", getRootElement(), results_click) addEventHandler("onClientRender", getRootElement(), score_render) setTimer(function() results_d.enter = 'Press Enter To Hide' results_d.res_dx.close[1] = (screenWidth - dxGetTextWidth ( results_d.enter, results_d.res_dx.size1, "bankgothic" ))/2 bindKey ( "enter", "up", HideResultsT ) end,4000,1) stopSound ( cds ) end That's where it stops it at. But it's saying unknown sound. It's clearly defined here: addEventHandler("DestroyRoundTimer", getRootElement(), DestroyRoundTimer) G_hud = "0:0" local s_1_00 = false function getTimeFromMilisec(t) local f = (t/1000)/60 m = math.modf(f) s = math.modf((f-m)*60) G_hud = FormatTimer(m,s) if s == 0 then if m == 1 and s_1_00 == false then s_1_00 = true cds = playSound("sounds/alarm.ogg",false) setSoundVolume( cds,0.6) end end end am i missing something?
  8. Does anyone have some casino game resources like BlackJack, Roulette, Texas Holdem, Poker, etc? I'm willing to purchase as they are needed for the casino businesses I'm working on setting up on my server. If anyone can point me in the right direction to someone who is trustworthy in selling/scripting these for me, I will be very thankful!
  9. I figured out it was a MySQL issue when it was trying to get the last set shop ID. Thanks WhoAmI. and no i wasn't using string.len or sth, but I do appreciate the response.
  10. DJ_Shocker

    Meaning?!

    I'm encountering this error: 0: attempt to get length of field '?' ( a nil value ) now the line 0 is very helpful on top of the fact the "?" What the heck does this mean and what can I look for to resolve it?
  11. Seriously? No answers? I'm sorry if it's too noobish, or w/e. I know how 90% of the internet is these days and do not like noob questions and just troll them or ignore them. But seriously, I'm asking a simple question so i can learn for future reference.
  12. i did do that. When i do, the server creates the new group with the autoGroup_ I'm just curious as to why when I change the name to the one i had, it acts like the mode does not have the permission when it's right there in the ACL? Did i do something wrong?
  13. I've created a new group in my ACL with specific rights to the resource i'm running. However, whenever I boot up the server, i get the message that it is requesting the permissions. I've already given it permissions in the acl. So I told the server to go ahead and do it. It created it's own group EXACTLY like mine, but with auto_ in front of the name. What is going on? SERVERS SETTING: MY SETTING:
  14. DJ_Shocker

    JoinSound

    I know this topic is almost a year old, but my problem is similar to this (at least I searched before posting a new topic?) Anyways, I'm completely new to Lua and am playing around with making a new RP server from scratch. You actually taught me how to create and trigger events. Thanks! I tried using what you have pasted and it does play, however, where you have: addEventHandler("onPlayerLogin", root, stopSoundOnLogin) Mine is: addEventHandler("spawnCharacter", root, stopSoundOnLogin) And it continues to play. I'm having trouble understanding this "addEventHandler" and such. I cannot count how many times i've read the wiki on this and it's like I'm reading Spanish. If someone could explain this and maybe explain the difference of you putting root rather than getRootElement() or some of the others I see in the Wiki?
  15. Hello! It's been a few days and my MTA server shows as offline (players can connect). It is not showing up in the internet list and when added to favorites, it looks like it is offline. I did a port check: results: https://nightly.multitheftauto.com/ports/?d=74.91 ... odef=1&a=1 All ports are added to the firewall to allow. I'm not sure what to do here.
  16. for i,veh in ipairs(lspdSpawns) do local x,y,z = veh[1],veh[2],veh[3] veh = createVehicle(596,x,y,z) vehCol = createColSphere(x,y,z,2.5) attachElements ( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",38) --Engine + Tires local tires,engine,parts = getVehicleAddonInfos (getElementModel(veh)) setElementData(vehCol,"Tire_inVehicle",math.random(0,tires)) setElementData(vehCol,"Engine_inVehicle",math.random(0,engine)) setElementData(vehCol,"Parts_inVehicle",math.random(0,parts)) --vehicle_indentifikation setElementData(vehCol,"spawn",{596,x,y,z}) --others setElementData(vehCol,"fuel",10) for i,items in ipairs(lootItems["helicrashsides"]) do local randomNumber = math.random(1,10) if randomNumber == 5 then setElementData(vehCol,items[1],1) end end end That's just one of the codes I added. it spawns fine. Random car parts and loot. It matches the others just fine. It runs out of gas, but the Fuel label does not show at the top and you cannot add full fuel cans to it.
  17. Hello! This is officially my first topic since I am new to MTA. The MTA DayZ currently being worked on by woovie and ffs sniper brought me to MTA from the "competitor" (I shall not mention the name as now it is dead to me) Anyways. I purchased the script and am looking it over and am using it to learn Lua as I have never used it before. It is beginning to get a little easier to understand and have managed to add some vehicles that such as police cars and Ambulances that spawn with some loot like weapons/ammo in the police cars and medical supplies in the ambulances and random car parts towards getting the vehicle to running like Engine/Tires/Tank Parts. One problem. The fuel works. It does spawn with 10 fuel like other vehicles already added to the server. However, upon entering the vehicles i added, the line at the top of your screen that shows "Fuel" does not appear and when the vehicle DOES run out of fuel, adding a Full Fuel Can does not work. It will not go in and there are no errors in the server log. I'm asking if someone who is familiar with this code has had this problem and knows how to fix it or knows what I did wrong? I've searched every file and cannot seem to find what would cause this. Any help would be appreciated and I hope I am not breaking rules. This seemed to be the logical place to post.
  18. Mine is meant for English. A suggestion: Admins have a hard time dealing with players who refuse to listen and will kill admins trying to deal with a situation. For example, today one of my players died due to being stuck in some mapping. I tpd them back to get there stuff, only to have some players show up and kill me. I tpd to them and tried to explain, only to get shot again. I tried freezing them (didn't work on one for some reason) they logged out, logged in and killed me again. i finally said screw it and banned them for 12 hours. It's very difficult to perform admin duties and deal with idiots who just don't care. I even tried asking one to leave the area so i could refund items to a player who died by a "flyer" and he said no, and killed me. My tip: add a way for admins to be temporarily invincible so players can't kill us and allow us to assist others.
  19. I spoke with ffs Sniper and plan on purchasing this this weekend. Should i wait until an update is posted? Also, I'm not sure where to post bug reports, so I'll just pass them along here: When an admin specs someone, and then comes out of spec, we can no longer use items in our inventories or use the vehicle menu to place items in vehicles or repair them. There are moments when someone cannot be given blood. We have found a temporary fix. Have the person relog, then the menu "Administer Blood" appears. That's it for now. I will post more as we find them. Thanks again and please, never give up on this project. This is what brought me to MTA a few days ago. Wish i had found it sooner.
  20. You downloaded game mode where? I downloaded it from this topic lol.
  21. Hello! I just set up a test server to test this out. I'm new to MTA and used a dayz script for SA-MP and it was trash. We found this one and we LOVE it! The capabilities MTA has is astounding! I sent you a PM regarding purchasing. Also, our console is spammed with this: [2014-02-22 11:33:24] WARNING: [DayZ-MTA]\DayZ\survivorSystem.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] [2014-02-22 11:33:25] WARNING: [DayZ-MTA]\DayZ\survivorSystem.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:33:27] WARNING: [DayZ-MTA]\DayZ\survivorSystem.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:33:32] WARNING: @[DayZ-MTA]\slothbot\sbserver.lua:1133 Bad argument @ 'giveWeapon' [Expected element at argument 1] [2014-02-22 11:33:32] WARNING: @[DayZ-MTA]\slothbot\sbserver.lua:1133 Bad argument @ 'giveWeapon' [Expected element at argument 1] [2014-02-22 11:34:45] ERROR: admin\server\admin_server.lua:1456: Admin security - Client/player mismatch from [iP ADDRESS HIDDEN FOR SECURITY AND PRIVACY OF PLAYER](onElementDataChange humanity) [2014-02-22 11:35:52] WARNING: [DayZ-MTA]\DayZ\survivorSystem.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean] [2014-02-22 11:35:53] WARNING: [DayZ-MTA]\DayZ\pickups.lua_dayz:0: Bad argument @ 'destroyElement' [Expected element at argument 1, got nil] I removed the ip address of a player for security reasons
×
×
  • Create New...