Author Topic: ** E2 HELP **  (Read 1043 times)

0 Members and 1 Guest are viewing this topic.

Offline WillyWonka

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
  • Gender: Male
  • I hope u all for something-rather.
    • View Profile
** E2 HELP **
« on: July 15, 2010, 09:43:26 PM »
So i have this E2 that i need help with,
Problem:
1. When someone else talks it resets the song.

@name Songs
@inputs 
@outputs String:string
@persist
@trigger
runOnTick(1)

if(first()){
    runOnChat(1)
    MODE=0
    THIS=entity()
    ME=THIS:owner()
}
if (chatClk()){
    Str1 = owner():lastSaid()
    if (Str1:left(1) == "a"){hideChat(1)}
    if (Str1 == "!play-ravebreak"){soundPlay(0,0,"ravebreak.mp3") , String="RaveBreak"}
    if (Str1 == "!play-suitsong"){soundPlay(1,0,"music/hl2_song23_suitsong3.mp3") , String="SuitSong"}
if (Str1 == "!end-song") {(soundStop(0,0)) , soundStop(1,0) , Sting="None"}
}

if (chatClk()){
    Str2 = owner():lastSaid()
    if (Str2 == "!run-test") {String="Self Test Activated"}
    if (Str2 == "!run-test") {L1 = 1000}
}

Thanks and please do not steal this e2!
« Last Edit: July 16, 2010, 02:47:02 PM by WillyWonka »
If its E1, Cya, E2 let me see!

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: ** E2 HELP **
« Reply #1 on: July 16, 2010, 08:20:14 AM »
in your chatClk()

add owner()

like this:

if(chatClk(owner()){
-Admin Application-

Follow the rules or I will you.

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: ** E2 HELP **
« Reply #2 on: July 16, 2010, 02:11:22 PM »
in your chatClk()

add owner()

like this:

if(chatClk(owner()){


or you let tomcat  add arrays for players who can control it

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980