DJDenz Posted May 4, 2005 Posted May 4, 2005 hi all, I have a script (!sun etc.) but everybody can typ !sun and there is coming sun but I will that alone admins can change the weather How I can do this? Thank DJDenz
kevuwk Posted May 4, 2005 Posted May 4, 2005 a login system with levels of 'power' could be one way or restricting it to certain nicks being able to use it
MeanpantheR Posted May 5, 2005 Posted May 5, 2005 if ($3 == !sun && $mta.ip($1,$2) == yourip) { use that (for noobs, change "yourip" to your ip- http://www.whatismyip.com
Harry Posted May 5, 2005 Posted May 5, 2005 Do a basic programming and mirc scripting tutorial After that, you may contact me for some more details
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 Sorry I'm a beginner of making scripts... if ($3 == !sun && $mta.ip($1,$2) == yourip) { most this script under: on *:SIGNAL:mta.admin: { ? Thanks Dennis [/code]
*SmartiE* Posted May 5, 2005 Posted May 5, 2005 why not just use a simple findtok coding *thanks Oli for this one on *:SIGNAL:mta.command:{ if $findtok([u]SmartiE [FMJ]Oli,$mta.name($1,$2),1,32) { if ($3 == !sun) { mta.setweather $1 0 } if ($3 == !cloud) { mta.setweather $1 1 } if ($3 == !rain) { mta.setweather $1 2 } if ($3 == !fog) { mta.setweather $1 3 } } } Just Delete SmartiE and [FMJ]Oli out and then add ur Admin Names along it If you need more help just Post
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 Well, it works but Here is a name if $findtok([FMJ]Oli,$mta.name($1,$2),1,32) { can someone change his name in [FMJ]Oli and hi can change the weather...? Thanks Dennis
FalconXTGT Posted May 5, 2005 Posted May 5, 2005 (edited) Sorry I'm a beginner of making scripts... if ($3 == !sun && $mta.ip($1,$2) == yourip) { most this script under: on *:SIGNAL:mta.admin: { ? Thanks Dennis [/code] on *:SIGNAL:mta.command: { if ($3 == !sun && $mta.ip($1,$2) == %ip.djdenz) { mta.setweather $1 0 } elseif ($3 == !set & $mta.name($1,$2) == djdenz) { !writeini mta.djdenz $mta.name($1,$2) password $4 } } on *:SIGNAL:mta.join: { if (djdenz isin $mta.name($1,$2) { mta.msg $1 $2 DJDENZ is Admin of this server you have 30 secs to login ! timer.join 1 30 mta.kick $1 $2 } } on *:SIGNAL:mta.pm: { if ($3 == login && djdenz isin $mta.name($1,$2)) { if ($readini(mta.djdenz.ini,$mta.name($1,$2),password) == $4) { !set %ip.djdenz $mta.ip($1,$2) mta.say $1 $mta.name($1,$2) has logged in as admin !timer.join off } } } Load script do !set ,then remove this part of script. elseif ($3 == !set & $mta.name($1,$2) == djdenz) { !writeini mta.djdenz $mta.name($1,$2) password $4 } Edited May 5, 2005 by Guest
*SmartiE* Posted May 5, 2005 Posted May 5, 2005 here is it if ur mtaname is DJ Denz on *:SIGNAL:mta.command:{ if $findtok([DJdenz,$mta.name($1,$2),1,32) { if ($3 == !sun) { mta.setweather $1 0 } if ($3 == !cloud) { mta.setweather $1 1 } if ($3 == !rain) { mta.setweather $1 2 } if ($3 == !fog) { mta.setweather $1 3 } } } to change weather do !sun !rain !fog or !cloud
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 [quote name=" on *:SIGNAL:mta.command: { if ($3 == !sun && $mta.ip($1' date='$2) == yourip) { mta.setweather $1 0 } } [[/quote] Don't work... my script: on *:SIGNAL:mta.text:{ if ($3 == kanker) { if ($4 == $null) { mta.say $1 Learn to speak normal! $mta.kick($1,$2) } } if ($3 == tyfus) { if ($4 == $null) { mta.say $1 Yo men... take it easy! } } } on *:SIGNAL:mta.enter:{ mta.msg $1 $2 You are in/on a $mta.vehicle($1,$2).name (Class- $+ $rpg.vehicle-grade($1,$2) $+ ) with $calc(100 - $mta.health($1,$2).vehicle) $+ % damage } on *:SIGNAL:mta.kill:{ if ($4 == 39) { mta.say $1 $mta.name($1,$3) U are die! thank to this carkiller } } } on *:SIGNAL:mta.score:{ elseif ($mta.score($1,$2) == 5) { if ($4 == $null) { mta.say $1 $mta.name($1,$2) has killed 5 people! } } } on *:SIGNAL:mta.join:{ if (MTAPlayer isin $mta.name($1,$2)) { mta.say $1 The name "MTAPlayer" is not allowed. Please change your nickname and come back again! $mta.kick($1,$2) } mta.msg $1 $2 Hi $mta.name($1,$2) Welcome To The [TMG] Server! For More Information Check www.tmg-clan.tk } } } on *:SIGNAL:mta.spawn:{ mta.say $1 $mta.name($1,$2) is spawned as $mta.skin($1,$2).name } } } on *:SIGNAL:mta.command:{ if ($3 == !sun && $mta.ip($1,$2) == 84.41.137.218) { mta.setweather $1 0 } } } And hi doesn't something
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 Yes i know smartie but is is without IP someone change his name in my server in DJDenz en hi can change the weahter? is this true? Txnk Dennis
kevuwk Posted May 5, 2005 Posted May 5, 2005 on *:SIGNAL:mta.command:{ if ($3 == !sun && $mta.ip($1,$2) == 84.41.137.218) { mta.setweather $1 0 } } } you put 1 too many } at the end on *:SIGNAL:mta.command:{ if (($3 == !sun) && ($mta.ip($1,$2) == 84.41.137.218)) { mta.setweather $1 0 } } can't see that not working but then again its me writing it and yes on the person changing his name, but just change the name to someone who you want to be able to change it in the script
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 SHIT DAMNED it doesn't work on *:SIGNAL:mta.command:{ if (($3 == !sun) && ($mta.ip($1,$2) == 84.41.137.218)) { mta.setweather $1 0 } } if ($3 == !lol) { if ($4 == $null) { mta.say $1 $mta.name($1,$2) is Laught Out Loud! } } if ($3 == !rofl) { if ($4 == $null) { mta.say $1 $mta.name($1,$2) is Rolling On The Flour Laughing! } } if ($3 == !lmao) { if ($4 == $null) { mta.say $1 Laughing My Ass Off! } } if ($3 == ![TMG]) { if ($4 == $null) { mta.say $1 The Multi Gamers } } if ($3 == !TMG) { if ($4 == $null) { mta.say $1 The Multi Gamers } } if ($3 == !stfu) { if ($4 == $null) { mta.say $1 Shut The Fuck Up! } } if ($3 == !wtf) { if ($4 == $null) { mta.say $1 What The Fuck!? } } if ($3 == !brb) { if ($4 == $null) { mta.say $1 $mta.name($1,$2) is Be Right Back } } if ($3 == !back) { if ($4 == $null) { mta.say $1 $mta.name($1,$2) is back } } if ($3 == !time) { if ($4 == $null) { mta.say $1 Game-Time: $mta.time($1) mta.say $1 Local-Time: $iif($5 == gmt,$asctime($gmt) GMT,$fulldate) } } var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) if ($3 == !hp) { if (%a != -1) mta.say $1 $mta.name($1,%a) $+ 's health is $mta.health($1,%a) else mta.msg $1 $2 Error - Invalid ID } var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) if ($3 == !car) { if (%a != -1) mta.say $1 $mta.name($1,%a) is driving a $mta.vehicle($1,$2).name else mta.msg $1 $2 Error - Invalid ID } } } nothing works more:S
[FMJ]chode Posted May 5, 2005 Posted May 5, 2005 well this is all its reading on *:SIGNAL:mta.command:{ if (($3 == !sun) && ($mta.ip($1,$2) == 84.41.137.218)) { mta.setweather $1 0 } } You have closed the bracket to early
Harry Posted May 5, 2005 Posted May 5, 2005 Go back to english class Or easier: contact a dutch scripting dude
GsuZ Posted May 5, 2005 Posted May 5, 2005 Well u can tell me a lot but u are dutch harry? So why dont u help out this dude ? btw mayb u remember me: [CNP]DekkA... Well sorry for this offtopic post ...
[FMJ]chode Posted May 5, 2005 Posted May 5, 2005 wow even chode spotted it! *looks cuffed* well you know, heh... ..hang on, what do you mean even......
DJDenz Posted May 5, 2005 Author Posted May 5, 2005 Ok voor iedereen in het nederlands dan DIE KLOTE SCRIPT DOET HET NIET
Harry Posted May 5, 2005 Posted May 5, 2005 Dutch is not allowed inhere, and you have a grammar error in it as well ('dit/dat klotescript') But feel free to contact me on msn, i do remember you... the good old times
Recommended Posts