Raoul Posted December 29, 2006 Posted December 29, 2006 I want if anyone says anywhere in a sentence "david" that Admin will say: " David is nice" This is what i got so far: on *:SIGNAL:mta.say:{ if ($readini($scriptdir $+ david.ini,SAY) == 1) then $mta.text $1 David is nice!!! This is the .INI It is MTA:SA
BetaDevil Posted December 29, 2006 Posted December 29, 2006 on *:SIGNAL:mta.text: { if (david isin $3) mta.text $1 David is nice! }
damnet007 Posted December 30, 2006 Posted December 30, 2006 on *:SIGNAL:mta.text: { if (david isin $3) mta.text $1 David is nice! } I'd add a - after $3 so it picks up anything in the sentence: on *:SIGNAL:mta.text: { if (david isin $3-) mta.text $1 David is nice! }
lil Toady Posted December 30, 2006 Posted December 30, 2006 or on *:SIGNAL:mta.text: { if ($findtok(david,$3-,32)) mta.text $1 David is nice! } your one will work even if i say 'saahfdhDavidfsddg', mine will work only if it sees the actual word 'david'
Raoul Posted December 30, 2006 Author Posted December 30, 2006 AAAAH! thanks alot so the .ini isnt needed :D
Recommended Posts