Jani Posted February 10, 2005 Share Posted February 10, 2005 isin searches for that exact string in the name, whereas iswm is a wildcard. doesnt that mean the same thing? Link to comment
Oli Posted February 10, 2005 Share Posted February 10, 2005 if hello isin $1- This means if the string "hello" is in the whole sentence. if hello* iswm $1- this means if the sentence STARTS with "hello" Link to comment
Jani Posted February 11, 2005 Share Posted February 11, 2005 so basically the first one is better then Link to comment
Oli Posted February 11, 2005 Share Posted February 11, 2005 depends what u want... for example, if u want something to be in the form of an IP adress... u could use: if *.*.*.* iswm $1- u cant do that as easily with isin Link to comment
Jani Posted February 11, 2005 Share Posted February 11, 2005 on *:SIGNAL:mta.join:{ if MTAPlayer* iswm $1- mta.kick $1 $2 } ja? i fucking hate those nubs who dont change their name before they play. Link to comment
Mike Posted February 11, 2005 Share Posted February 11, 2005 on *:SIGNAL:mta.join:{ if (MTAPlayer == $2) { mta.kick $1 $2 } } That would be better Link to comment
Niels Posted February 11, 2005 Share Posted February 11, 2005 on *:SIGNAL:mta.join:{ if (MTAPlayer == $2) { mta.kick $1 $2 } } That would be better if (MTAPlayer == $mta.name($1,$2)) { mta.kick $1 $2 } } Link to comment
Aeron Posted February 11, 2005 Share Posted February 11, 2005 Yep, of course OMFG Niels pwned Mike with mIRC scripting!!!1!!1 /me dies Link to comment
*SmartiE* Posted February 11, 2005 Share Posted February 11, 2005 WOW niels is on a Roll Now Beating Mike at IRC script Link to comment
XcR Posted February 11, 2005 Share Posted February 11, 2005 /me banishes Mike from the forums Link to comment
Mike Posted February 11, 2005 Share Posted February 11, 2005 Here's a nice (cpu hungry) script to whisper to people near you. alias whisper.distance { var %x,%y,%z %x = $abs($calc($1 - $2)) %y = $abs($calc($3 - $4)) %z = $abs($calc($5 - $6)) !return $round($sqrt($calc(%x * %x + %y * %y + %z * %z)),2) } on *:SIGNAL:mta.pm:{ if ($3 == whisper) { if ($mta.admin+($1) == $true) { var %a = 0 unset %b while %a < $mta.maxplayers($1) { if (($whisper.distance($mta.location($1,$2,x),$mta.location($1,%a,x),$mta.location($1,$2,y),$mta.location($1,%a,y),$mta.location($1,$2,z),$mta.location($1,%a,z)) <= %whisper) && (%a != $2) && ($mta.name($1,%a) != Unknown)) { mta.msg $1 %a Whisper from $mta.name($1,$2) $+ : $4- %b = $iif($chr(44) !isin %b,$mta.name($1,%a),%b $+ $chr(44) $chr(32) $mta.name($1,%a)) } !inc %a } mta.msg $1 $2 Message delivered to $iif(%b,%b,no-one) unset %a unset %b } } } Use "/msg whisper " Link to comment
Gareth Posted February 11, 2005 Share Posted February 11, 2005 that wud go well with a rpg script Link to comment
XcR Posted February 11, 2005 Share Posted February 11, 2005 ive seen DJMills script, and he has the same idea except its for the distance between your charachter and a cop and u become wanted, its a cool feature. Link to comment
Gareth Posted February 11, 2005 Share Posted February 11, 2005 yeh in Millsy's script he has the !rob command yoke too which robs the robber nearest to you Link to comment
Scorp Posted February 13, 2005 Share Posted February 13, 2005 It's a script that messages people within 50 m (or was it feet?) Think of it as a yell the player makes, it's only heard in a 50 m radius. I think it's pretty kool script. Link to comment
Harry Posted February 14, 2005 Share Posted February 14, 2005 -not mtama scripting anymore- Guys, no offence, but this tpoic is huge allready... with all this offtopic crap it wont be of ANY use anymore Ergo: CUT THE CRAP! To any mod: lock the thread and start a fresh, moderated one Link to comment
Slothman Posted February 14, 2005 Share Posted February 14, 2005 cleaned up, keep yer noses clean from here on you crazy scripters Link to comment
MAD_BOY Posted February 14, 2005 Share Posted February 14, 2005 it's not cleaned up at all =/ unstickied and locked, please make a new thread as you said @other mods: DON'T MOVE THIS TO TRASH Link to comment
Recommended Posts