![]() |
|
E2 chat console thing - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: E2 chat console thing (/thread-89.html) |
E2 chat console thing - Wapic - 16-11-2013 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))
}RE: E2 chat console thing - Wapic - 16-11-2013 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")
}
}RE: E2 chat console thing - busterbeej332 - 16-11-2013 i rewrote it for him again now for sbep drive
|