Jump to content

after kick last player, map wont stop. bug!?


Keslertje2005

Recommended Posts

Hi scripters,

I just found out that when there is only one person in the server, and that one gets kicked by high ping, bad language or to many caps the map will just go on till the timer has run out. So when you are connecting you'll see the timer for example on 3 minuts left but there will be nobody to spectate... Is it possible to fix this? Maybe with a *on signal command or something? so it wont only help for high ping but for all the kicking commands? Thanks!!! I really appreciate the fast responses and the good help! :D

Link to comment

Yeah, that's right... but you can make a command for that.

on *:SIGNAL:mta.command: {
 if ($3 == !endrace) {
   if ($calc($mta.finish($1) + $mta.dead($1) + 1) == $mta.server($1).players) {
     mta.text $1 Race ended!
     mta.startrace $1 $rand(0,$mta.races($1))
   }
   else mta.pm $1 $2 Error - There are still more people alive
 }
}

Ok, you have to type a command, but it is something.

Edit:

You can integrate it in !kick

  elseif ($3 == !kick) {
   var %l = 5
   if ($gus.level($1,$2) >= %l) {
     if (%a == -1) mta.pm $1 $2 Error - Absent ID
     elseif (%a == $2) mta.pm $1 $2 Error - Cannot $3 yourself
     else {
       mta.kick $1 $2
       if ($calc($mta.finish($1) + $mta.dead($1) + 1) == $mta.server($1).players) {
         mta.text $1 Race ended!
         mta.startrace $1 $rand(0,$mta.races($1))
       }
     }
     else mta.pm $1 $2 Error - You need to be level %l to use this command
   }
 }

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...