Raoul Posted December 29, 2006 Share 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 Link to comment
BetaDevil Posted December 29, 2006 Share Posted December 29, 2006 on *:SIGNAL:mta.text: { if (david isin $3) mta.text $1 David is nice! } Link to comment
damnet007 Posted December 30, 2006 Share 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! } Link to comment
lil Toady Posted December 30, 2006 Share 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' Link to comment
BetaDevil Posted December 30, 2006 Share Posted December 30, 2006 thanks, I didn't know that and I need it Link to comment
Raoul Posted December 30, 2006 Author Share Posted December 30, 2006 AAAAH! thanks alot so the .ini isnt needed :D Link to comment
Recommended Posts