andeh Posted October 19, 2004 Share Posted October 19, 2004 it's not work post the script in the thread, maybe we can fix it Link to comment
Shib Posted October 19, 2004 Share Posted October 19, 2004 'We', meaning who? Anyway he meant Oli's ping script so just look at it. Link to comment
Oli Posted October 19, 2004 Share Posted October 19, 2004 yeah ill take a look.. i kinda wrote it into the forum box so havnt tested it.. ill do it later on, but if u feel like actually doing something for ureself nivko.. then be my guest Link to comment
nivko Posted October 19, 2004 Share Posted October 19, 2004 if ($3 == !ping) { if ($4 != $null) mta.say $1 $mta.name($1,$iif($4 isnum,$4,$mta.getid($1,$4))) ping is $mta.ping($1,$iif($4 isnum,$4,$mta.getid($1,$4))) Max Allowed: %ping.max else mta.say $1 $mta.name($1,$2) ping is $mta.ping($1,$2) Max Allowed: %ping.max } This is my ping script can somone make a average ping in this script Link to comment
andeh Posted October 19, 2004 Share Posted October 19, 2004 anyone got a !notes script that works, Also can someone make a !crash script where it logs the crashes and works out an average of the crashes for that day or something? Thx Link to comment
Shib Posted October 19, 2004 Share Posted October 19, 2004 Why dont you have a go at making the scripts andy, thats the way you learn. Link to comment
andeh Posted October 19, 2004 Share Posted October 19, 2004 Why dont you have a go at making the scripts andy, thats the way you learn. errr.. cos i don't know the commands etc i only know simply command stuff. Link to comment
andeh Posted October 20, 2004 Share Posted October 20, 2004 } elseif ($3 == !crashed) { set %crashes $calc($readini("MTAcrash.ini",crashes,$mta.name($1,$2)) + 1) writeini -n "MTAcrashes.ini" crashes $mta.name($1,$2) %crashes mta.say $1 $mta.name($1,$2) Has Crashed!, You Have Crashed $calc($readini("MTAcrashes.ini" ,crashes, $mta.name($1,$2))) times. } i tryed to make one but it dosen't work, surprise surprise Link to comment
Oli Posted October 20, 2004 Share Posted October 20, 2004 alias mta.command { if ($3 == !crashed) { var %a $calc($readini(MTAcrashes.ini,crashes,$mta.name($1,$2)) + 1) writeini -n "MTAcrashes.ini" crashes $mta.name($1,$2) %a mta.say $1 $mta.name($1,$2) Has Crashed. Crash total: $readini(MTAcrashes.ini,crashes,$mta.name($1,$2)) times. } } Link to comment
andeh Posted October 20, 2004 Share Posted October 20, 2004 alias mta.command { if ($3 == !crashed) { var %a $calc($readini(MTAcrashes.ini,crashes,$mta.name($1,$2)) + 1) writeini -n "MTAcrashes.ini" crashes $mta.name($1,$2) %a mta.say $1 $mta.name($1,$2) Has Crashed. Crash total: $readini(MTAcrashes.ini,crashes,$mta.name($1,$2)) times. } } Thx oli, any chance of a !notes script? Link to comment
MrJax Posted October 20, 2004 Share Posted October 20, 2004 alias mta.command { if ($3 == !note) { mta.msg $1 $2 Noted! writeini "notes.ini" notes $mta.name($1,$2) $4- } if ($3 == !notes) { if ($4 == $null) { mta.say $1 Note - $mta.name($1,$2): $readini(notes.ini, notes, $mta.name($1,$2)) } else { mta.say $1 Note - $mta.name($1,$4): $readini(notes.ini, notes, $mta.name($1,$4)) } } if ($3 == !noteover) && (ur admin shit) { mta.msg $1 $2 Noted! writeini "notes.ini" notes $4 $5- } } Link to comment
DeeJee.nl Posted October 20, 2004 Share Posted October 20, 2004 hhmm please do tell me who is using that.. try noting the following !note $mta.kick(1,1) or ban or slap or what ever alias and then hit !notes... so this is a securety hazard.. if you get my drift Link to comment
Scorp Posted October 20, 2004 Share Posted October 20, 2004 it can even reveal ips so use it at your own risk. Link to comment
nivko Posted October 20, 2004 Share Posted October 20, 2004 if ($3 == !ping) { if ($4 != $null) mta.say $1 $mta.name($1,$iif($4 isnum,$4,$mta.getid($1,$4))) ping is $mta.ping($1,$iif($4 isnum,$4,$mta.getid($1,$4))) Max Allowed: %ping.max else mta.say $1 $mta.name($1,$2) ping is $mta.ping($1,$2) Max Allowed: %ping.max } This is my ping script can somone make a average ping in this script[/code] Link to comment
andeh Posted October 20, 2004 Share Posted October 20, 2004 errrr.. can u make it so only admins can use $ symbol therefore its not a risk Link to comment
Oli Posted October 20, 2004 Share Posted October 20, 2004 u CANT kick or ban with it.. u can reveal ip's, names, and any other functions.. but not any things like mta.say or mta.kick etc Link to comment
DeeJee.nl Posted October 20, 2004 Share Posted October 20, 2004 try it oli.. it did in our script.. and that was just the same.. Link to comment
MrJax Posted October 20, 2004 Share Posted October 20, 2004 oli is right, with THIS script, u cannot kick or ban ( or any other /mta.....commands), howver u can use identifiers like $mta.ip, which isnt very hard to stop if ($3 == !notes) && (mta. !isin $4-) { Link to comment
andeh Posted October 20, 2004 Share Posted October 20, 2004 u CANT kick or ban with it.. u can reveal ip's, names, and any other functions.. but not any things like mta.say or mta.kick etc Oli thats what i thought i gave it a try and it did Link to comment
andeh Posted October 21, 2004 Share Posted October 21, 2004 alias mta.admin { if ($2 == !db) db $1 $3- } alias db { if ($2 == on) { if ($mta.admin+($1)) { if ($mta.mode($1) == Stunt) { mta.log $1 * DB: Not possible in stunt mode! } else { mta.say $1 Dystruction derby activated! mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) %derby = 1 !unset % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } } else mta.say $1 No admin+ connection! } if ($2 == off) { if (%derby) { mta.say $1 Dystruction derby deactivated! %derby = 0 !.timerdb off !.timerdb2 off } } if ($2 == start) { if ($numtok(% [ $+ [ $1 ] ],32) < 3) { mta.say $1 Not enough players to start: restart. mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) !unset % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } else { mta.say $1 Time up! mta.say $1 The Round begins! (5 mins) !.timerdb2 1 300 db $1 stop } } if ($2 == stop) { var %a = $numtok(% [ $+ [ $1 ] ],32),%b,%c,%d,%e while %a > 0 { %e = $gettok(% [ $+ [ $1 ] ],%a,32) if ($mta.health($1,%e) > $mta.health($1,%b)) { if ($mta.health($1,%e) > $mta.health($1,%c)) { if ($mta.health($1,%e) > $mta.health($1,%d)) { %b = %c %c = %d %d = %e } %b = %c %c = %e } %c = %e } !dec %a } mta.say $1 Time over! mta.say $1 1st: $mta.name($1,%d) ( $+ $mta.health($1,%d) $+ $chr(37) $+ ) 2st: $mta.name($1,%c) ( $+ $mta.health($1,%c) $+ $chr(37) $+ ) 3rd: $mta.name($1,%b) ( $+ $mta.health($1,%b) $+ $chr(37) $+ ) mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) set % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } } alias mta.exit { if (%derby) { var %a = $findtok(% [ $+ [ $1 ] ],$2,1,32) if (%a) { % [ $+ [ $1 ] ] = $deltok(% [ $+ [ $1 ] ],%a,32) if ($timer(db)) mta.say $1 $mta.name($1,$2) decided not to play. else { %a = $numtok(% [ $+ [ $1 ] ],32) if (%a == 1) { mta.say $1 $mta.name($1,$2) is out! mta.say $1 Round over! $mta.name($1,% [ $+ [ $1 ] ]) ( $+ $mta.health($1,% [ $+ [ $1 ] ]) $+ $chr(37) $+ ) wins the match! mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) set % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } else mta.say $1 $mta.name($1,$2) is out! ( $+ %a players left! $duration($timer(db2).secs) time left!) } } } } alias mta.join { if (%derby) { mta.msg $1 $2 Destruction Derby active if (!$timer(db)) mta.msg $1 $2 Please wait for the next round! else mta.msg $1 $2 Get a good car and type '!join' to be in the list! ( $+ $timer(db).secs secs remaining) } } alias mta.command { if (%derby) { if ($3 == !join) { if (!$timer(db)) mta.msg $1 $2 Too late son! Wait for the next round. else { if (($mta.game($1) == GTA:3) && ($mta.getcar($1,$2).name != Dodo)) || (($mta.game($1) == GTA:VC) && (!$findtok(6 7 8 9 10 11 12 13 19 20 21 22 36 43 44 50 51 58 65,$mta.getcar($1,$2),1,32))) { % [ $+ [ $1 ] ] = % [ $+ [ $1 ] ] $2 mta.say $1 $mta.name($1,$2) is in with a $mta.getcar($1,$2).name $+ ! } else mta.msg $1 $2 Thats not a good car. } } if ($3 == !time) { if (!$timer(db)) mta.msg $1 $2 There is no round now! else mta.say $1 $duration($timer(db2).secs) time remaining! } } } This is Dystruction Derby script of MTAMA site, i found a few bugs in it. <1st: *TLR*Andy (?%) 2st: *TLR*Andy (?%) 3rd: Unknown (%)> (TLR)LoCo: !join<(TLR)LoCo is in with a !> Time over!><1st: Unknown (%) 2st: Unknown (%) 3rd: Unknown (%)> Any chance theese problems can be fixed? Link to comment
MrJax Posted October 21, 2004 Share Posted October 21, 2004 Oli thats what i thought i gave it a try and it did wot exactly did u try? !note ............? Link to comment
Oli Posted October 21, 2004 Share Posted October 21, 2004 andy.. any chance u could stop posting 100+ line scripts to be fixed EVERY day? it kinda makes u look nearly as lazy as nivko Link to comment
andeh Posted October 21, 2004 Share Posted October 21, 2004 andy.. any chance u could stop posting 100+ line scripts to be fixed EVERY day? it kinda makes u look nearly as lazy as nivko Well im not lazy, im just realy unlucky every script i come across theres something wrong wid it. Link to comment
Shib Posted October 21, 2004 Share Posted October 21, 2004 Then get to people on MSN instead and send them the scripts. This isn't a fix scripts section it's for people who have created scripts and they post in here. Link to comment
nivko Posted October 21, 2004 Share Posted October 21, 2004 i need a admin system without levels no GRS , and a ping script with average ping have someone that ? Link to comment
Recommended Posts