janipewter Posted September 28, 2004 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 }
Scorp Posted September 28, 2004 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 Retired Dodo Killer.
janipewter Posted September 29, 2004 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
Aeron Posted September 29, 2004 Posted September 29, 2004 dont forget the '}' of mta.text ... "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
Oli Posted September 29, 2004 Posted September 29, 2004 and dont forget that script is totally insane Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Harry Posted September 29, 2004 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 * } } ...
janipewter Posted September 29, 2004 Posted September 29, 2004 whats the difference, the other dudes one worked fine
MeanpantheR Posted September 30, 2004 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 MTA Server Hosting (pm me for details!) VCES / SAES Clan Member - VCES.net
janipewter Posted September 30, 2004 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?
MrJax Posted September 30, 2004 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! } }
DeeJee.nl Posted September 30, 2004 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.. ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam
Oli Posted September 30, 2004 Posted September 30, 2004 damn i hate variables Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Cube Posted September 30, 2004 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...
Oli Posted September 30, 2004 Posted September 30, 2004 omg thats the longest way ive ever seen of doing something like that, congrats Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
DeeJee.nl Posted September 30, 2004 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 ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam
Harry Posted September 30, 2004 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 }
Shib Posted September 30, 2004 Posted September 30, 2004 if (!slap == $3) { if ($4 !== $null) { mta.slap $1 $4 } }
Cube Posted October 1, 2004 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 ?
DeeJee.nl Posted October 1, 2004 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. ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam
MrJax Posted October 1, 2004 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
Oli Posted October 1, 2004 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 Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Cube Posted October 1, 2004 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...
Oli Posted October 1, 2004 Posted October 1, 2004 its irc scripting Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
Aeron Posted October 2, 2004 Posted October 2, 2004 its irc scripting mIRC Scripting v6.16 "Never argue with an idiot. They bring you down to their level and beat you with experience." "Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."
Recommended Posts