Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Credits: tjackiseN/r0z@steam (C) 2014
- Check out; tjackiseN.blogspot.se
- Note: This script was made for TTT and sandbox. Won't work on any other gamemodes.
- But if you really want me to fix that so send an email about it. (mpghtjackisen@gmail.com)
- :: Retard Notice ::
- For those who can't read the code:
- Set spam_enabled to 1 to start, and 0 to disable.
- Set spam_message to the message you want to spam.
- --]]
- local spamCvar = CreateClientConVar( "spam_enabled", 0, true, false )
- local spamMessageCvar = CreateClientConVar( "spam_message", "www.tjackiseN.blogspot.se", true, false )
- local spamMsg = spamMessageCvar:GetString()
- local spam = function()
- if (spamCvar:GetInt() == 1 and gamemode.Get("terrortown")) then
- if(LocalPlayer():Alive() and LocalPlayer():Team() != 1002) then
- spamMsg = spamMessageCvar:GetString()
- RunConsoleCommand("say", spamMsg)
- else
- pamMsg = spamMessageCvar:GetString()
- RunConsoleCommand("say_team", spamMsg)
- end
- end
- if (spamCvar:GetInt() == 1 and gamemode.Get("sandbox")) then
- spamMsg = spamMessageCvar:GetString()
- RunConsoleCommand("say", spamMsg)
- end
- end
- chat.AddText(Color(255,69,0,255), "[tjackiseN] Spammer successfully loaded.")
- chat.AddText(Color(255,69,0,255), "Change 'spam_message' and 'spam_enabled' in the console.")
- hook.Add("Think", "spam", spam)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement