Advertisement
HR_Shaft

Ban-On-Sight for Phasor v2

Oct 11th, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.61 KB | None | 0 0
  1. --[[### Ban-On-Sight by H® Shaft for Phasor v2]]--
  2.  
  3. function GetRequiredVersion()
  4.     return 200
  5. end
  6.  
  7. function OnScriptLoad(process, game, persistent)
  8.  
  9. end
  10.  
  11. function OnPlayerJoin(player)
  12.     -- BOS --
  13.     local bos_hash = gethash(player)
  14.     local bosname = getname(player)
  15.     local bos_hash_table_size = #bos_hash_table
  16.     for x = 1,bos_hash_table_size do
  17.         if string.find((bos_hash), bos_hash_table[x]) ~= nil then
  18.             say(tostring(bosname) .. " has been banned-on-sight.")
  19.             svcmd("sv_ban " .. resolveplayer(player))
  20.         end
  21.     end
  22. end
  23.  
  24. --======= Start Ban On Sight Table ==========
  25. -- for ban player on join - ban on sight, the last entry in this table should end with quote, but each hash should be separated
  26. -- by commas  {"hash1", "hash2", "lasthash"} if quotes or commas are mis-used, it will cause error.
  27.  
  28. bos_hash_table = {"5ae30f357689cca5c28d41c850ce0df8", "f443106bd82fd6f3c22ba2df7c5e4094", "87d4ea247397449f9e1a45c36c9ca990", "72a5c55fe98075aed8b185e79c93d989",
  29. "3d5cd27b3fa487b040043273fa00f51b", "b661a51d4ccf44f5da2869b0055563cb", "69dcba9c16c7f9101657be3dfbc4a01c", "10440b462f6cbc3160c6280c2734f184", "a116aa58fa21c288765d5c5e3b33175c",
  30. "9414ca0630647bcdb308bcf94cd60f9b", "ff02f33c8a6a6787459fe807293eafab"
  31. }
  32.  
  33. --======= End Ban On Sight Table ==========
  34.  
  35. -- Script originated from Wizard (his stand alone version didn't work) and AelitePrime - extracted and adapted as a stand alone feature by H® Shaft
  36.  
  37. -- Created by H® Shaft thank you to Oxide, AelitePrime, Nugget & Wizard.
  38. -- Visit http://halorace.org/forum/index.php?topic=514.0 or
  39. -- Visit http://pastebin.com/u/HR_Shaft for more phasor scripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement