Harry Posted June 13, 2004 Posted June 13, 2004 I think it should. I suggest using elseif, that's a bit faster (if the mirc compiler is smart enough) If this didn't work, count the balance between { and } .. one mistake, and you're whole script might be broken
Ape Posted June 13, 2004 Posted June 13, 2004 thx opium, I gave it a try and am puzzled, this is what I have now. countdown still working. alias mta.start { } alias mta.join { } alias mta.text { if (!count* isin $3) { mta.say $1 Countdown! .timerc1 1 1 mta.say $1 5 .timerc2 1 2 mta.say $1 4 .timerc3 1 3 mta.say $1 3 .timerc4 1 4 mta.say $1 2 .timerc5 1 5 mta.say $1 1 .timerc6 1 6 mta.say $1 GO GO GO! } elseif (!rules* isin $3) { mta.say $1 Rules .timerc1 1 1 mta.say $1 No Killing .timerc2 1 2 mta.say $1 No Jacking .timerc3 1 3 mta.say $1 Dont Be an Ass .timerc4 1 4 mta.say $1 Have Fun .timerc5 1 5 mta.say $1 Mod all you want } thats the whole script.
Oli Posted June 13, 2004 Posted June 13, 2004 (edited) alias mta.start { } alias mta.join { } alias mta.text { if (!count isin $3) { mta.say $1 Countdown! .timerc1 1 1 mta.say $1 5 .timerc2 1 2 mta.say $1 4 .timerc3 1 3 mta.say $1 3 .timerc4 1 4 mta.say $1 2 .timerc5 1 5 mta.say $1 1 .timerc6 1 6 mta.say $1 GO GO GO! } elseif (!rules isin $3) { mta.say $1 Rules .timerc1 1 1 mta.say $1 No Killing .timerc2 1 2 mta.say $1 No Jacking .timerc3 1 3 mta.say $1 Dont Be an Ass .timerc4 1 4 mta.say $1 Have Fun .timerc5 1 5 mta.say $1 Mod all you want } } LOVE the rules btw Edited June 14, 2004 by Guest 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
Ape Posted June 14, 2004 Posted June 14, 2004 hmm couldnt get it to work, thanks any way guys and Aeron, great little tool you made there edit: what does the "isin" part stand for?
Oli Posted June 14, 2004 Posted June 14, 2004 isin means if the text left of isin is contained within the function on the right of the isin. 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 June 14, 2004 Posted June 14, 2004 isin means if the text left of isin is contained within the function on the right of the isin. So the command reacts on: !countdbsivbsdkjvkjd dhvgiudhbiv!count ijrnbivfjrniovn!countneijrwngivjrnfv and not on: !cou nt !counhviehdnviurent bfbgf!cohviehuntbfdbfd "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."
fastphp Posted June 14, 2004 Posted June 14, 2004 Hi all If i see these script if (($chr(1) isin $mta.name($1,$2)) || ($chr(255) isin $mta.name($1,$2)) || ($chr(7) isin $mta.name($1,$2))) { mta.say $1 $mta.name($1,$2) Reason: Color Codes mta.kick $1 $2 } mta.say $1 $mta.name($1,$2) Reason: Color Codes is it poseble to use color codes in a mta game if yes how can i use these codes Grz Michael / (ZC)James MTA : 82.161.1.22 port 2003 Web (NL) mta.fastphp.nl The server i al little laggie yea sorry i am downloading elseif ($3 == !offtropic ) { mta.say $1 That's offtropic mta.name( $2 , $4 ) mta.kick $1 $4 } elseif ($3 == !EN ) { mta.say $1 Hi all, Sorry for my bad english mta.ban $1 $4 }
Ape Posted June 14, 2004 Posted June 14, 2004 k I got the rules thing and countdown sorted, Is there a script to kick/ban someone if they have a certain amount of kills? (stunt mode dont worry ) That way if im not there those asses who kill people with the heli blades and stuff wont last as long as they hoped.
OpiuM. Posted June 14, 2004 Posted June 14, 2004 Hi all If i see these script if (($chr(1) isin $mta.name($1,$2)) || ($chr(255) isin $mta.name($1,$2)) || ($chr(7) isin $mta.name($1,$2))) { mta.say $1 $mta.name($1,$2) Reason: Color Codes mta.kick $1 $2 } mta.say $1 $mta.name($1,$2) Reason: Color Codes is it poseble to use color codes in a mta game if yes how can i use these codes Grz Michael / (ZC)James MTA : 82.161.1.22 port 2003 Web (NL) mta.fastphp.nl The server i al little laggie yea sorry i am downloading yes, on a windows operated server, not linux, but aeron dont like them click me
Aeron Posted June 14, 2004 Posted June 14, 2004 Hi all If i see these script if (($chr(1) isin $mta.name($1,$2)) || ($chr(255) isin $mta.name($1,$2)) || ($chr(7) isin $mta.name($1,$2))) { mta.say $1 $mta.name($1,$2) Reason: Color Codes mta.kick $1 $2 } mta.say $1 $mta.name($1,$2) Reason: Color Codes is it poseble to use color codes in a mta game if yes how can i use these codes Grz Michael / (ZC)James MTA : 82.161.1.22 port 2003 Web (NL) mta.fastphp.nl The server i al little laggie yea sorry i am downloading yes, on a windows operated server, not linux, but aeron dont like them Color codes disabled in 0.3.1 servers "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."
OpiuM. Posted June 14, 2004 Posted June 14, 2004 *crys, man i know it makes them kind of unstable, but it should at least be a option for servers, dont disable them all together click me
Oli Posted June 14, 2004 Posted June 14, 2004 k I got the rules thing and countdown sorted, Is there a script to kick/ban someone if they have a certain amount of kills? (stunt mode dont worry ) That way if im not there those asses who kill people with the heli blades and stuff wont last as long as they hoped. lol, yeah its similar to banning someone for having a certain name: under alias mta.kill put this: if $mta.kills($1,$3) >= 10 mta.ban $1 $3 that would work for 10 or more kills 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
vass69 Posted June 15, 2004 Posted June 15, 2004 y wer colour codes disabled? annoying, the ingame chat is like a rainbow then tantsusaali astun ja naudin seda biiti, ilusad naised versus hunnik tselluliiti
Oli Posted June 15, 2004 Posted June 15, 2004 funny how they still work from admin 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
VCES>Puddy Posted June 15, 2004 Posted June 15, 2004 hehe, hippy style huh, so if they was removed....is there much point in keeping this script elseif ($chr(1) isin $mta.name($1,$2)) { mta.say $1 $mta.name($1,$2), color codes are not allowed on this server, please remove them before joining mta.kick $1 $2 }
Oli Posted June 15, 2004 Posted June 15, 2004 it can be quite funny, i made a colour coded manhunt once when bored lol... got it somewhere 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 June 15, 2004 Posted June 15, 2004 Hi all, i cannot write scripts... but i tried and.... alias mta.kill { if (($mta.kills($1,$3) == 30) && ($mta.deaths($1,$2) == 00)) mta.say $1 $mta.name($1,$2) you are suspected use cheats (reason: 30 kills and 0 deaths), if I am mistaken , sorry ! mta.kick $1 $2 } ..and nothing.. this doesn't work ! Can you help me ??
Oli Posted June 15, 2004 Posted June 15, 2004 try this: alias mta.kill { if (($mta.kills($1,$3) == 30) && ($mta.deaths($1,$3) == 0)) { mta.say $1 $mta.name($1,$3) you are suspected use cheats (reason: 30 kills and 0 deaths), if I am mistaken , sorry ! mta.kick $1 $3 } } 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
OpiuM. Posted June 15, 2004 Posted June 15, 2004 try this: alias mta.kill { if (($mta.kills($1,$3) == 30) && ($mta.deaths($1,$3) == 0)) { mta.say $1 $mta.name($1,$3) you are suspected use cheats (reason: 30 kills and 0 deaths), if I am mistaken , sorry ! mta.kick $1 $3 } } utopia will get banned with that script too much...moving on click me
Oli Posted June 15, 2004 Posted June 15, 2004 dont worry its only a kick script 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
[KFC]KungFu Posted June 15, 2004 Posted June 15, 2004 I would love that one.. Let me know what server it's on might have to try and start the "script thinks Im a cheater" club. You can do it if your careful and just pick your shots... almost no chance in a stubby war. Would suck if you didnt cheat or see it coming thou.
Recommended Posts