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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 … 4 5 6 7 8
E2 chat console thing
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
E2 chat console thing
16-11-2013, 04:23 AM,
#1
Wapic Offline
Newbie
*
Posts: 2
Threads: 1
Joined: Nov 2013
E2 chat console thing
So i am trying to make this thing where i for example type
Linux warp me to earth
it should warp me there, I have some problems but i don't know what's wrong. this is my code

Code:
@name Linux @inputs @outputs @persist @trigger all runOnChat(1) if(first()) { botSay("Linux", " ", vec(255,255,255) , "Starting up...") botSay("Linux", " ", vec(255,255,255) , "Start up complete.") } if(owner():lastSaid() == "Linux hello") { botSay("Linux", " ", vec(255,255,255) , "Hello wapic i am ready to serve you") } if(owner():lastSaid() == "Linux analyze my ship") { botSay("Linux", " ", vec(255,255,255) , "Threat level: IT'S OVER 9000!!!") } if(owner():lastSaid() == "Linux play me music") { botSay("Linux", " ", vec(255,255,255), "playing music") owner():soundPlay(1, 0, "Vision/one more night.mp3") } if(owner():lastSaid() == "Linux warp me to earth") { botSay("Linux", " ", vec(255,255,255) , "warp completed") owner():teleport(vec(1173, 9463, 8080)) } if(owner():lastSaid() == "Linux warp me to shakuras") { botSay("Linux", " ", vec(255,255,255) , "warp completed") owner():teleport(vec(-5823.93, -3924.72, 7024.03)) }
Find
Reply
16-11-2013, 05:37 AM, (This post was last modified: 16-11-2013, 06:07 AM by Wapic.)
#2
Wapic Offline
Newbie
*
Posts: 2
Threads: 1
Joined: Nov 2013
RE: E2 chat console thing
Nvm i rewrote the command code and now it works
Code:
@name Linux @inputs @outputs @persist @trigger O = owner() E = entity() owner():lastSaid() runOnChat(1) if(first()) { botSay("Linux", " ", vec(255,255,255) , "Linux is now up and running") } if (chatClk(O)) { if(owner():lastSaid()=="Linux rave") { botSay("Linux", " ", vec(255,255,255) , "Playing rave music") soundPlay(1,300,"Vision/one more night.mp3") } } if(chatClk(O)) { if(owner():lastSaid()=="Linux warp earth") { botSay("Linux", " ", vec(255,255,255) , "warp completed") owner():teleport(vec(1173, 9463, 8080)) } } if(chatClk(O)) { if(owner():lastSaid() == "Linux warp pegasus") { botSay("Linux", " ", vec(255,255,255) , "warp completed") owner():teleport(vec(-5823.93, -3924.72, 7024.03)) } } if(chatClk(O)) { if(owner():lastSaid() == "Linux") { botSay("Linux", " ", vec(255,255,255) , "shut up, i'm testing") } }
Find
Reply
16-11-2013, 08:46 AM,
#3
busterbeej332 Offline
Valued donator and member
****
Posts: 111
Threads: 28
Joined: Nov 2013
RE: E2 chat console thing
i rewrote it for him again now for sbep drive Smile
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.