Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
sf help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
sf help
11-06-2014, 04:25 PM,
#1
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
sf help
hi guys as you know i love atlantis i want to make an starfall thing that when my e2 emmits lock=1 it will say server wide warning atlantis in lockdown or something like that or something to control atlantis but i have no clue how to do it thx for any help
Find
Reply
11-06-2014, 04:59 PM,
#2
Liizzii Offline
Moderation Neko
*****
Posts: 130
Threads: 12
Joined: Sep 2013
RE: sf help
I don't think having a server wide lockdown message would be benificial. E2 botSay global chat got banned because people were spamming it with random stuff

EDIT: moved to Starfall subforum

I like custard.
Sometimes I think I'm too sarcastic....
My site: http://www.theender.net
Website Find
Reply
11-06-2014, 05:07 PM,
#3
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
RE: sf help
im gonna imbed within it a gate msg to
Find
Reply
11-06-2014, 05:11 PM,
#4
Liizzii Offline
Moderation Neko
*****
Posts: 130
Threads: 12
Joined: Sep 2013
RE: sf help
So it should only get triggered when the gate is dialed into during a lockdown?

I like custard.
Sometimes I think I'm too sarcastic....
My site: http://www.theender.net
Website Find
Reply
11-06-2014, 06:51 PM,
#5
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
RE: sf help
i tried to do it a whilei go i got it a bit but it got to the point where i was getting global errors
Find
Reply
11-06-2014, 07:39 PM,
#6
Liizzii Offline
Moderation Neko
*****
Posts: 130
Threads: 12
Joined: Sep 2013
RE: sf help
Hmm, ok.. something like (following code) should do it

--@name Buster's lockdown warning
--@author SirJoshOfEnder

local BotTag = "Atlantis"
local BotMsg = "Beware: Lockdown currently active!"

local WireLib = loadLibrary( "wire" )
local ChatLib = loadLibrary( "chat" )

WireLib.createInputs( {"GateInbound", "GateOpen", "Lockdown"}, {"normal", "normal", "normal"} )

hook( "input", "GettingDemValues", function( Input, Value)
if ( Input == "GateOpen" ) and ( Value == 1 ) then
if WireLib.ports.GateInbound == 1 then
if WireLib.ports.Lockdown == 1 then
ChatLib.botSay( BotTag, {r=255,g=0,b=0}, BotMsg )
end
end
end
end)

I like custard.
Sometimes I think I'm too sarcastic....
My site: http://www.theender.net
Website Find
Reply
11-06-2014, 08:30 PM,
#7
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
RE: sf help
thanks josh ill try it now
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.