Raoul Posted January 11, 2007 Share Posted January 11, 2007 I made an AFK script,!afk, !back, if in the ini is written: Raoul=1 you are afk if Raoul=0 you are not, now i want if you are afk (Raoul=1) and you say something, the will say you are afk and you cant talk because you are afk... I couldnt get it to work. Can some one help me please Link to comment
{CE}EyeZ Posted January 11, 2007 Share Posted January 11, 2007 is it for MTA:vc or mta:sa ? Link to comment
Raoul Posted January 12, 2007 Author Share Posted January 12, 2007 Oh sorry didnt mention it, MTA SA Link to comment
Raoul Posted January 12, 2007 Author Share Posted January 12, 2007 Bumb, Can anyone show me how to make that? Link to comment
SamB Posted January 13, 2007 Share Posted January 13, 2007 on *:SIGNAL:mta.command: { if (!away iswm $3) { %a = $readini away.ini Away $mta.nick($1,$2) if (%a == 1) mta.pm $1 $2 You are already set to away else { mta.text $1 $mta.nick($1,$2) is away !writeini away.ini Away $mta.nick($1,$2) 1 } } elseif (!back iswm $3) { %a = $readini away.ini Away $mta.nick($1,$2) if (%a == 0) mta.pm $1 $2 You are already set to back else { mta.text $1 $mta.nick($1,$2) is back !writeini away.ini Away $mta.nick($1,$2) 0 } } } Link to comment
Raoul Posted January 13, 2007 Author Share Posted January 13, 2007 I think you didnt quite get it, I already wrote that script myself, now i want if someone talks (with T) and is afk it says You are afk $mta.nick($1,$2)! Link to comment
SamB Posted January 13, 2007 Share Posted January 13, 2007 oh on *:SIGNAL:mta.text: { %a = $readini away.ini Away $mta.nick($1,$2) if (%a == 1) mta.text $1 You are afk $mta.nick($1,$2) $+ ! } ? Link to comment
Recommended Posts