Guest Posted July 3, 2007 Share Posted July 3, 2007 hi i have my own MTA server online And if i start my script in Mirc etc.. and than go to my own server an say's this !db than the script does nothing what is wrong with this script ty... on *:SIGNAL: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> 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 } } on *:SIGNAL: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!) } } } } on *:SIGNAL: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) } } on *:SIGNAL: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.vehicler($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.vehicle($1,$2),1,32))) { % [ $+ [ $1 ] ] = % [ $+ [ $1 ] ] $2 mta.say $1 $mta.name($1,$2) is in with a $mta.vehicle($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! } } } Link to comment
lil Toady Posted July 3, 2007 Share Posted July 3, 2007 put if ($2 == !db) db $1 $4- under on *:SIGNAL:mta.command and remove the on *:SIGNAL:mta.admin part. Or just type !db from mta:ma Link to comment
Guest Posted July 3, 2007 Share Posted July 3, 2007 just if i got it right is this now ok ? on *:SIGNAL:mta.command: { 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> 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 } } on *:SIGNAL: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!) } } } } on *:SIGNAL: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) } } on *:SIGNAL:mta.command: { if ($2 == !db) db $1 $4- 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.vehicler($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.vehicle($1,$2),1,32))) { % [ $+ [ $1 ] ] = % [ $+ [ $1 ] ] $2 mta.say $1 $mta.name($1,$2) is in with a $mta.vehicle($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! } } } Link to comment
SanZoR Posted July 9, 2007 Share Posted July 9, 2007 on *:SIGNAL:mta.command: { 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> 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 } } on *:SIGNAL: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!) } } } } on *:SIGNAL: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) } } on *:SIGNAL:mta.connect: { mta.say $1 $2 !db scripts connected! } } on *:SIGNAL:mta.command: { if ($2 == !db) db $1 $4- 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.vehicler($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.vehicle($1,$2),1,32))) { % [ $+ [ $1 ] ] = % [ $+ [ $1 ] ] $2 mta.say $1 $mta.name($1,$2) is in with a $mta.vehicle($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! } } } If it says !db scripts connected! when connecting, it should be ok PS: Could you use elseif even little bit? Link to comment
Recommended Posts