forked from rospatent/exechackapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtttfinder.lua
More file actions
36 lines (33 loc) · 2.03 KB
/
tttfinder.lua
File metadata and controls
36 lines (33 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
LocalPlayer():ChatPrint("TTT Finder Loaded")
local twep = { "weapon_ttt_c4", "weapon_ttt_knife", "weapon_ttt_phammer", "weapon_ttt_sipistol", "weapon_ttt_flaregun", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_teleport", "(Disguise)" ,"spiderman's_swep", "weapon_ttt_trait_defilibrator", "weapon_ttt_xbow", "weapon_ttt_dhook", "weapon_awp", "weapon_jihadbomb", "weapon_ttt_knife", "weapon_ttt_c4", "weapon_ttt_decoy", "weapon_ttt_flaregun", "weapon_ttt_phammer", "weapon_ttt_push", "weapon_ttt_radio", "weapon_ttt_sipistol", "weapon_ttt_teleport", "weapon_ttt_awp", "weapon_ttt_silencedsniper", "weapon_ttt_turtlenade", "weapon_ttt_death_station", "weapon_ttt_sg552", "weapon_ttt_tripmine"}
for _,v in pairs(player.GetAll()) do
v.HatTraitor = nil
end
for _,v in pairs(ents.GetAll()) do
v.HatESPTracked = nil
end
hook.Add("PostDrawOpaqueRenderables", "wire_animations_idle", function()
if GAMEMODE.round_state != ROUND_ACTIVE then
for _,v in pairs(player.GetAll()) do
v.HatTraitor = nil
end
for _,v in pairs(ents.GetAll()) do
v.HatESPTracked = nil
end
return
end
for _,v in pairs( ents.GetAll() ) do
if v and IsValid(v) and (table.HasValue(twep, v:GetClass()) and !v.HatESPTracked) then
local pl = v.Owner
if pl and IsValid(pl) and pl:IsTerror() then
if pl:IsDetective() then
v.HatESPTracked = true
else
v.HatESPTracked = true
pl.HatTraitor = true
chat.AddText( pl, Color(255,125,0), " is a ",Color(255,0,0), "TRAITOR",Color(255,125,0), " with a ",Color(255,0,0),v:GetClass().."!")
end
end
end
end
end)