janipewter Posted September 28, 2004 Share Posted September 28, 2004 first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?: alias $mta.text { if (brb == $3) { mta.say $1 I DON'T FUCKING THINK SO! mta.ban $1 $2 } Link to comment
Scorp Posted September 28, 2004 Share Posted September 28, 2004 first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:alias $mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } alias mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } don't have $ in your alias Link to comment
janipewter Posted September 29, 2004 Share Posted September 29, 2004 first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:alias $mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } alias mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } don't have $ in your alias haha omg pwned im thick Link to comment
Aeron Posted September 29, 2004 Share Posted September 29, 2004 dont forget the '}' of mta.text ... Link to comment
Oli Posted September 29, 2004 Share Posted September 29, 2004 and dont forget that script is totally insane Link to comment
Harry Posted September 29, 2004 Share Posted September 29, 2004 first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:alias $mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } TRY: alias mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 * } } ... Link to comment
janipewter Posted September 29, 2004 Share Posted September 29, 2004 whats the difference, the other dudes one worked fine Link to comment
Harry Posted September 30, 2004 Share Posted September 30, 2004 This one is even more stupid Link to comment
MeanpantheR Posted September 30, 2004 Share Posted September 30, 2004 first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:alias $mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 $2 } TRY: alias mta.text { if (brb == $3) { mta.say $1 I DON'T THINK SO! mta.ban $1 * } } ... lmfao harry Link to comment
janipewter Posted September 30, 2004 Share Posted September 30, 2004 ok im trying my hand at a script which will slap a specific player if they talk in in my server, and only that player. so far, me and deejay have managed to get it slapping either both of us when we talk, or neither of us when we talk. heres what i have: alias mta.text { if ($mta.name($1,$2) == TmM-DeeJee){ mta.say $1 /slap $mta.name($1,$2) mta.say $1 Sorry $mta.name($1,$2) - this is an anti-talking server! } } any tips on how to make it work? Link to comment
MrJax Posted September 30, 2004 Share Posted September 30, 2004 alias mta.command { if ($3 == !setname) && ($mta.name($1,$2) == yourname) { if ($4 != $null) { if ($mta.name($1,$4) != Unknown) { mta.say $1 Set to $mta.name($1,$4) set %person $mta.name($1,$4) } else { mta.say $1 Error, ID not present. } } else { mta.say $1 Error, !setname } } } alias mta.text { if ($mta.name($1,$2) == %person) { mta.slap $1 $2 .timer 1 0 mta.say $1 Sorry $mta.name($1,$2) $+ , this is an anti-talking server! } } Link to comment
DeeJee.nl Posted September 30, 2004 Share Posted September 30, 2004 Add this to your commands: elseif ($3 == !unset) && ($mta.name($1,$2) == TmM-DeeJee) { mta.cancelnospeak $1- } and this is the alias that goes with it: alias mta.cancelnospeak { mta.say $1 no speaking penalty removed unset %person } I know using an alias aint the best way but it works.. Link to comment
Cube Posted September 30, 2004 Share Posted September 30, 2004 Hi, I have wrote this scripts: http://www.dragos.enon.pl/cube/playerstatsv1.0en.mrc This scripts is !favorites, !favorites , !fullstats, !fullstats . The script function is collecting informations about two favourite player's "goodies", it means: favourite class and car. + himself counter. Tommorow I will make favourite weapon... Link to comment
Oli Posted September 30, 2004 Share Posted September 30, 2004 omg thats the longest way ive ever seen of doing something like that, congrats Link to comment
DeeJee.nl Posted September 30, 2004 Share Posted September 30, 2004 okay looking for a script that does a action (like mta.slap or mta.kick) when there are certain words in the chat. TmM-DeeJee: blalblblallba noob blabla **admin slapped TmM-DeeJee **stop calling people noob** summit like that.. and also looking for a script that eacts to the way people are killed: *TmM-DeeJee died (impact) **wear a helmet next time** sumit like that.. thanks in advance Link to comment
Harry Posted September 30, 2004 Share Posted September 30, 2004 In mta.text: if ( noob isin $3- ) { mta.kick $1 $2 } and in mta.kill if ($5 == 16) { mta.say $1 $mta.name($1,$2) wear a helmet } Link to comment
Shib Posted September 30, 2004 Share Posted September 30, 2004 if (!slap == $3) { if ($4 !== $null) { mta.slap $1 $4 } } Link to comment
Cube Posted October 1, 2004 Share Posted October 1, 2004 Oli, can you tell me how make !favourites the shortest way ? Because I don't know how and I want lear it. ok ? Link to comment
DeeJee.nl Posted October 1, 2004 Share Posted October 1, 2004 Okay question abouth locations.. let's say I want to set a place in my script.. and in that place there is something to be done or not to be done.. if ($3 == !dance) { if ($mta.area($1,$2) == pole) { and then the rest of the code needed.. so far no problems.. but how do I get the coordinates form that place.. or any place for that mather, becuase I have some more Idea's.. so how to get the coordinates out of the game, and how to combine htose so I can set a larger place, like the whole scrapyard .. any help would be great.. thru here or msn. Link to comment
MrJax Posted October 1, 2004 Share Posted October 1, 2004 not sure wot u mean, but theres an area creatin script by aeron around here sumwhere, u can use that to set areas Link to comment
Oli Posted October 1, 2004 Share Posted October 1, 2004 Oli, can you tell me how make !favourites the shortest way ? Because I don't know how and I want lear it. ok ? ill write 1 for u tomorrow and post it. I appreciate ure effort, and its not bad, but it is actually amazing the amount variables Link to comment
Cube Posted October 1, 2004 Share Posted October 1, 2004 ok thx Oli... Can you tell me which language is has wrote MTA:ma (mta.mrc), it is PHP ? C++ ? Because I understand it what I have in scripts but I want learn more... Link to comment
Aeron Posted October 2, 2004 Share Posted October 2, 2004 its irc scripting mIRC Scripting v6.16 Link to comment
Recommended Posts