Jump to content

Pingkicker


Niels

Recommended Posts

Posted

on *:SIGNAL:mta.connect:{
 set %online. [ $+ [ $1 ] ] true
}
on *:SIGNAL:mta.start:{
 .timerping 0 10 checkpings 
} 
on *:SIGNAL:mta.quit:{
 .timerping off 
}
on *:SIGNAL:mta.join:{
 unset %ping. [ $+ [ $2 ] $+ ] * 
 set %loop. [ $+ [ $2 ] ] 0 
}
on *:SIGNAL:mta.disconnect:{
 unset %online. [ $+ [ $1 ] ] 
}
alias checkpings { 
 set %server 0 
 if ( %max == $null ) echo -a Maximum ping not set, pingkick off 

 set %ping_counter $calc( %ping_counter + 1 ) 
 if ( %ping_counter > 12 ) { 
   set %ping_counter 0 
 }  
 while ( %server < 9 ) {      
   if ( %online. [ $+ [ %server ] ] == true ) { 
     set %playerid 0 
     while ( %playerid < $mta.maxplayers($1) ) { 
       set %ping. [ $+ [ %server ] $+ . $+ [ %playerid ] $+ . $+ [ %ping_counter ] ] $mta.ping( %server , %playerid )      
       set %dummy 0 
       set %totalping 0 
       while ( %dummy < 13 ) { 
         inc %totalping %ping. [ $+ [ %server ] $+ . $+ [ %playerid ] $+ . $+ [ %dummy ] ] 
         inc %dummy 1 
       } 
       set %averageping. [ $+ [ %server ] $+ . $+ [ %playerid ] ] $round($calc( %totalping / 13 ) , 0 ) 
       if ( %averageping. [ $+ [ %server ] $+ . $+ [ %playerid ] ] > %max ) && (%rights. [ $+ [ %server ] $+ . $+ [ %playerid ] ] == 0) {  
         mta.say %server Kicking $mta.name( %server, %playerid ) for a ping of $round(%averageping. [ $+ [ %server ] $+ . $+ [ %playerid ] ] , 2) $+ , maximum is %max $+ .
         mta.kick %server %playerid 
         unset %averageping. [ $+ [ %server ] $+ . $+ [ %playerid ] ] 
         unset %ping. [ $+ [ %server ] $+ . $+ [ %playerid ] $+ ] * 
       }
     } 
     inc %playerid 1 
   } 
 } 
 inc %server 1 
} 
unset %server 
} 

This pingkicker is don't work, can somone fix it? mIRC is crashing every time :evil:

OMG!

Posted

fucking hell i really am starting to have a physical passionate hatred of u.. after months and months of this shit u still dont know what the fuck you are doing!

/me refuses to help this complete fuck wit any more

Proud member of Multi Theft Auto

Founder of Full Metal Jacket

mtateam5fq.png

fmjbar2hk.png

Creator of MTA:mA:GRS

http://www.mtafmj.com

http://www.full-fat.com

Posted
:o hell i really am starting to have a physical passionate hatred of u.. after months and months of this shit u still dont know what the :o you are doing!

/me refuses to help this complete :o wit any more

Another quality piece of advice from you, so helpful!

Posted

Why do you keep posting extremely old scripts? I DO know this one, because all my typo's are still in there.

Just learn to program, and not copy them like a mad man, might be better for all of us

av.png

Posted
Why do you keep posting extremely old scripts? I DO know this one, because all my typo's are still in there.

Just learn to program, and not copy them like a mad man, might be better for all of us

Stern, but fair! on the subject, anyone got any tips, well.. links that can help start me off.. i started but gave up due to getting another day job.

Posted
Oli gives you a carton of new cigs and your still hand rolling with newspaper and captain black...

rofl thats the best analogy i've heard in a while.

sty.gif

click sig to visit new fku forum!

Posted

Niels = mtafreak?

4m85g1y.png

Make sure to use the Search feature before posting a new topic.

Click here for detailed MTA: San Andreas server setup guides.

Posted

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O :o :O DIE DIE DIE

http://home.deds.nl/~aeron/?help.html

http://home.deds.nl/~aeron/?help.html

http://home.deds.nl/~aeron/?help.html

http://home.deds.nl/~aeron/?help.html

http://home.deds.nl/~aeron/?help.html

LOCK & BAN PLZ

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

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