Jump to content

Purple

Members
  • Posts

    148
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Purple

  1. Alright I can take a look (no promises pretty busy atm with a few other projects + gf ;c )
  2. I looked into this and I don't think it can be done via lua? The only way I can think off was latching the player weapon, but in order to latch the panzer the class would need to be soldier. So I don't think I can do that part, although i did update the lua script and will post it in the downloads sections has a bit more settings and features pre-done in the lua so users won't need to change anything in their server configuration files.
  3. pretty old script could use an update ill see what i can't do to make a quick one to suit your needs Edit: are you just wanting the Killingspree part or are you wanting the multikills/revivesprees/killingsprees and all? Let me know so i know what i can do
  4. Sounds like you're just looking for jaymod/NQ features specific. imo just a waste of time to add any of it, i understand 1 users request and your opinion. Honestly though I don't see it happening unless it's massively requested.
  5. I don't think there is one just for axis but wp for nades is 9 you could just do a simple team check and set the Hades for axis on spawn like the script posted above
  6. for the charge time here is the settings on the wiki that you will need to edit in your server config http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_medicChargeTime as for the panzer will have to give me some time to think because when i was making my gungame mod the only way i could get other classes weapons to change was to latch them to a the class afaik Soldier or CovertOps and had to gib them.
  7. Shouldn't be any errors tried a different method (sets ammo on spawn like code beck posted) let me know if any guns etc are missing or ammo is not right --[[ Unlimited ammo and weapons for Hunter @ mygamingtalk Credits: Purple & Lilly (my gf :DDD) 3/24/2015 ]] function et_InitGame(levelTime,randomSeed,restart) et.RegisterModname( "Unlimited Ammo & Guns" ) maxclients = tonumber( et.trap_Cvar_Get( "sv_maxClients" ) ) end function et_ClientSpawn(clientNum,revived) et.gentity_set(clientNum, "ps.ammo", 2, 9999) et.gentity_set(clientNum, "ps.ammo", 3, 9999) et.gentity_set(clientNum, "ps.ammo", 4, 9999) et.gentity_set(clientNum, "ps.ammo", 5, 9999) et.gentity_set(clientNum, "ps.ammo", 6, 9999) et.gentity_set(clientNum, "ps.ammo", 7, 9999) et.gentity_set(clientNum, "ps.ammo", 8, 9999) et.gentity_set(clientNum, "ps.ammo", 9, 9999) et.gentity_set(clientNum, "ps.ammo", 10, 9999) et.gentity_set(clientNum, "ps.ammo", 11, 9999) et.gentity_set(clientNum, "ps.ammo", 12, 9999) et.gentity_set(clientNum, "ps.ammo", 13, 9999) et.gentity_set(clientNum, "ps.ammo", 15, 9999) et.gentity_set(clientNum, "ps.ammo", 23, 9999) et.gentity_set(clientNum, "ps.ammo", 24, 9999) et.gentity_set(clientNum, "ps.ammo", 25, 9999) et.gentity_set(clientNum, "ps.ammo", 26, 9999) et.gentity_set(clientNum, "ps.ammo", 29, 9999) et.gentity_set(clientNum, "ps.ammo", 31, 9999) et.gentity_set(clientNum, "ps.ammo", 32, 9999) et.gentity_set(clientNum, "ps.ammo", 33, 9999) et.gentity_set(clientNum, "ps.ammo", 35, 9999) et.gentity_set(clientNum, "ps.ammo", 37, 9999) et.gentity_set(clientNum, "ps.ammo", 38, 9999) et.gentity_set(clientNum, "ps.ammo", 39, 9999) et.gentity_set(clientNum, "ps.ammo", 42, 9999) et.gentity_set(clientNum, "ps.ammo", 43, 9999) et.gentity_set(clientNum, "ps.ammo", 44, 9999) et.gentity_set(clientNum, "ps.ammo", 45, 9999) et.gentity_set(clientNum, "ps.ammo", 47, 9999) et.gentity_set(clientNum, "ps.ammo", 48, 9999) et.gentity_set(clientNum, "ps.ammo", 49, 9999) end
  8. heh kinda funny you brought that old code up if you noticed the driammoclip part is part of my Code for my clan DRi (death row inmates). I could do it that way i suppose, I was just trying to see if i could do it more easily with weapons tables. Ill try to post a updated one later. edit: so i went on the server and the user doesnt use lua scripts so dunno how he did besides qmm/pyet or so, but yeah i can do this give me a bit and ill post an updated code.
  9. Thanks didn't get time to post it (currently traveling europe). Heres the updated version this "should" work i can't test as said before (everything is updated in this file just install as beth mentioned.) --[[ Unlimited ammo and weapons for Hunter @ mygamingtalk Credits: Purple & Lilly (my gf :DDD) 3/24/2015 ]] et.MAX_WEAPONS = 50 weapons = { nil, -- WP_NONE 0 true, -- WP_KNIFE 1 true, -- WP_LUGER 2 true, -- WP_MP40 3 true, -- WP_GRENADE_LAUNCHER 4 true, -- WP_PANZERFAUST 5 true, -- WP_FLAMETHROWER 6 true, -- WP_COLT 7 true, -- WP_THOMPSON 8 true, -- WP_GRENADE_PINEAPPLE 9 true, -- WP_STEN 10 true, -- WP_MEDIC_SYRINGE 11 true, -- WP_AMMO 12 true, -- WP_ARTY 13 true, -- WP_SILENCER 14 true, -- WP_DYNAMITE 15 true, -- WP_SMOKETRAIL 16 true, -- WP_MAPMORTAR 17 true, -- VERYBIGEXPLOSION 18 true, -- WP_MEDKIT 19 true, -- WP_BINOCULARS 20 true, -- WP_PLIERS 21 true, -- WP_SMOKE_MARKER 22 true, -- WP_KAR98 23 true, -- WP_CARBINE 24 true, -- WP_GARAND 25 true, -- WP_LANDMIND 26 true, -- WP_SATCHEL 27 true, -- WP_SATCHEL_DET 28 true, -- WP_TRIPMINE 29 true, -- WP_SMOKE_BOMB 30 true, -- WP_MOBILE_MG42 31 true, -- WP_K43 32 true, -- WP_FG42 33 true, -- WP_DUMMY_MG42 34 true, -- WP_MORTAR 35 true, -- WP_LOCKPICK 36 true, -- WP_AKIMBO_COLT 37 true, -- WP_AKIMBO_LUGER 38 true, -- WP_PPSH 39 true, -- WP_GPG40 40 true, -- WP_M7 41 true, -- WP_SILENCED_COLT 42 true, -- WP_GARAND_SCOPE 43 true, -- WP_K43_SCOPE 44 true, -- WP_FG42SCOPE 45 true, -- WP_MORTAR_SET 46 true, -- WP_MEDIC_ADRENALINE 47 true, -- WP_AKIMBO_SILENCEDCOLT 48 true, -- WP_AKIMBO_SILENCEDLUGER 49 true, -- WP_MOBILE_MG42_SET 50 } function et_InitGame(levelTime,randomSeed,restart) et.RegisterModname( "Unlimited Ammo & Guns" ) maxclients = tonumber( et.trap_Cvar_Get( "sv_maxClients" ) ) end function et_RunFrame( levelTime ) local AmmoAmount = "9999" for allplayers = 0, (maxclients - 1) do for guns = 1, (et.MAX_WEAPONS - 1), 1 do et.gentity_set(allplayers, "ps.ammo", weapons[guns], AmmoAmount) end end end
  10. something like this should work gonna need some test i dont have any way to test it currently in poland using a toaster to type on. et.MAX_WEAPONS = 50 weapons = { nil, --// 1 true, --WP_LUGER, // 2 true, --WP_MP40, // 3 true, --WP_GRENADE_LAUNCHER, // 4 true, --WP_PANZERFAUST, // 5 true, --WP_FLAMETHROWER, // 6 true, --WP_COLT, // 7 // equivalent american weapon to german luger true, --WP_THOMPSON, // 8 // equivalent american weapon to german mp40 true, --WP_GRENADE_PINEAPPLE, // 9 \ true, --WP_STEN, // 10 // silenced sten sub-machinegun true, --WP_MEDIC_SYRINGE, // 11 // JPW NERVE -- broken out from CLASS_SPECIAL per Id request true, --WP_AMMO, // 12 // JPW NERVE likewise true, --WP_ARTY, // 13 true, --WP_SILENCER, // 14 // used to be sp5 true, --WP_DYNAMITE, // 15 nil, --// 16 nil, --// 17 nil, --// 18 true, --WP_MEDKIT, // 19 true, --WP_BINOCULARS, // 20 nil, --// 21 nil, --// 22 true, --WP_KAR98, // 23 // WolfXP weapons true, --WP_CARBINE, // 24 true, --WP_GARAND, // 25 true, --WP_LANDMINE, // 26 true, --WP_SATCHEL, // 27 true, --WP_SATCHEL_DET, // 28 nil, --// 29 true, --WP_SMOKE_BOMB, // 30 true, --WP_MOBILE_MG42, // 31 true, --WP_K43, // 32 true, --WP_FG42, // 33 nil, --// 34 true, --WP_MORTAR, // 35 nil, --// 36 true, --WP_AKIMBO_COLT, // 37 true, --WP_AKIMBO_LUGER, // 38 nil, --// 39 nil, --// 40 true, --WP_SILENCED_COLT, // 41 true, --WP_GARAND_SCOPE, // 42 true, --WP_K43_SCOPE, // 43 true, --WP_FG42SCOPE, // 44 true, --WP_MORTAR_SET, // 45 true, --WP_MEDIC_ADRENALINE, // 46 true, --WP_AKIMBO_SILENCEDCOLT, // 47 true --WP_AKIMBO_SILENCEDLUGER, // 48 } function et_InitGame(levelTime,randomSeed,restart) maxclients = tonumber( et.trap_Cvar_Get( "sv_maxClients" ) ) end function et_RunFrame( levelTime ) local AmmoAmount = "9999" for allplayers = 0, (maxclients - 1) do for guns = 1, (et.MAX_WEAPONS - 1), 1 do et.gentity_set(allplayers, "ps.ammo", weapons[guns], AmmoA mount) end end end You will need to update the weapons table accordingly to this, just set all the values true, but the first one it should be nil here is the updated silent weapons table
  11. File Name: Level Protection File Submitter: Purple File Submitted: 23 Mar 2015 File Category: LUA Simple lua file that whitelists admin levels based off IP. Click here to download this file
  12. Purple

    Level Protection

    Version 1.0

    95 downloads

    Simple lua file that whitelists admin levels based off IP.
  13. These 2 commands !panzerwar on ( gives every class a panzer and unlimited panzer ammo ) !crazygravity on ( changes the gravity every so many seconds ) If you're still having problems with this please contact me on xfire: kyle26189 or skype:violentxmas and i can try to help you even more
  14. I can give it a shot here later or someone else might *cough cough* zelly.
  15. probably the commands !panzerwar on and !crazygravity on and on g_gravity the higher you set the "heavier" you get, and the lower you set it the "lighter" you get afaik flying could also use lua to set your ammos and gravity
  16. We all know there are always going to be some sort of exploit in ET always has always will so for me and my server what i've gone ahead and done just to prevent any way shape or form of guid spoofing mainly is a simple lua file that just whitelists your admin level. --[[ Simple Lua protection by purple ]] function et_InitGame( levelTime, randomSeed, restart ) local SecName = "Simple Sec" et.RegisterModname(SecName) end function et_ClientConnect( clientNum, firstTime, isBot ) local clientIp = et.Info_ValueForKey( et.trap_GetUserinfo(clientNum), "ip" ) local banTime = "300y" -- change this to your ban duration local Reason = "Not Whitelisted." -- change this to your ban reason local adminLevel = "7" -- change this to your Admin level if et.G_shrubbot_level( clientNum ) == adminLevel and clientIp ~= "YOUR IP ADDRESS HERE" then -- put your ip address here. et.trap_SendConsoleCommand( et.EXEC_APPEND, "!ban ".. clientNum.." "..banTime.." "..Reason.." \n" ) --ban the user. end end
  17. As i mentioned on TB you should probably post some images, other wise this is just walk by and skip mode.
  18. Always see some sort of automove talk on here, so here is a simple automove that works well and i have been using on my server for months, modified quiet a bit to be usable by anyone. -- automove redone. function et_InitGame(levelTime,randomSeed,restart) et.RegisterModname("^1D^0Ri Team Balance") players = { } players[0] = 0 --all players[1] = 0 --axis players[2] = 0 --allies players[3] = 0 --spectators end function et_Obituary(client, killer, death) axiskilled = 0 allieskilled = 0 count2 = 0 player_name2 = GetPlayerName(client) local game_state = tonumber(et.trap_Cvar_Get("gamestate")) local player_team = et.gentity_get(client, "sess.SessionTeam") if game_state ~= 1 and game_state ~= 2 then players[0] = 0 --all players[1] = 0 --axis players[2] = 0 --allies players[3] = 0 --spectators for i = 0, tonumber(et.trap_Cvar_Get("sv_maxclients")) -1, 1 do local teamnumber = tonumber(et.gentity_get(i,"sess.sessionTeam")) if et.gentity_get(i,"pers.connected") == 2 then players[0] = players[0] + 1 players[teamnumber] = players[teamnumber] + 1 end end if (( (players[1] - players[2]) > 1 and player_team == 1 ) or ( (players[2] - players[1]) > 1 and player_team == 2 )) then if player_team == 1 then axiskilled = 1 else allieskilled = 1 end et.trap_SendServerCommand(-1, "chat \"^3Automoving " .. player_name2 .. " ^3as teams were uneven... \"") end end return nil end function et_RunFrame() if axiskilled == 1 then delayaxis() elseif allieskilled == 1 then delayallies() end end function delayaxis() count2 = count2 + 1 if count2 >= 5 then --every 5 deaths move the next player that dies et.trap_SendConsoleCommand( et.EXEC_APPEND, "putteam " .. player_name2 .. " b") count2 = 0 axiskilled = 0 end end function delayallies() count2 = count2 + 1 if count2 >= 5 then--every 5 deaths move the next player that dies et.trap_SendConsoleCommand( et.EXEC_APPEND, "putteam " .. player_name2 .. " r") count2 = 0 allieskilled = 0 end end function GetPlayerName(client) return et.Q_CleanStr(et.gentity_get(client, "pers.netname")) end function et_ShutdownGame(restart) end
  19. just because he doesn't have the coder tag doesn't mean he can't code
  20. unsafe to start, and with mods like lesm and upcoming ones this could be a huge problem, just for the simple fact its loading everysingle lua file over and over and we don't want this
  21. Dont get your point here, allow people to enjoy and experiment and have fun with such things, its literally not bothering anyone nor effecting anything.
  22. Meh if you're even going to posts the down sides at least post the upsides of it and actually come up with a proper conclusion There are many different ways to approach such a thing, afaik only allow admins to give voice access out or make a database of people who are allowed to and aren't allowed to. such as !grant name !restrict name etc.
  23. methods are old, he is just spoofing his ip address reconnecting etc, he has been doing it on our server for a while, hes banned approx 100x xD
  24. fixed this error on to the next ones ;D
  25. Hey guys trying to get a linux compile going, but im running into a small error. http://pastebin.com/gw7ghgtu although the file is in the system. http://i.gyazo.com/c792229faa3d06787fc8d55ebe6f7e18.png
×
×
  • Create New...