[FilterScript] [FilterScript]Mobbx's PingKicker'n'Banner
#1

/*[size=10pt]----------------------------------------------{INFO}----------------------------------------------*/[/size]
Hi!
This is my little script.....
Over 300 kick, banned of 5000!
(sorry, i am bad english.. I am from Hungary!
/*[size=10pt]----------------------------------------------{DOWNLOAD}----------------------------------------------*/[/size]
Version 1.0



Pastebin: http://mobbx.pastebin.com/m347859e4

/*[size=10pt]----------------------------------------------{END }----------------------------------------------*/[/size]
Reply
#2

Pastebin?
Reply
#3

http://mobbx.pastebin.com/m347859e4
Reply
#4

This is a "useful function" or snippet. It's pointless as a filterscript, as if you just loaded it nothing would happen!

Also, you don't need the various defines at the top of the script, and the main section can go.. So really you're left with:

pawn Код:
stock MobbxPingKick(playerid)
{
    if(GetPlayerPing(playerid) > 300) Kick(playerid);
}
pawn Код:
stock MobbxPingBan(playerid)
{
    if(GetPlayerPing(playerid) > 5000) Ban(playerid);
}
Reply
#5

Baning players for high ping is nonsense...
Like my internet connection sometimes get slow because of IPS technical problems and if I'd use this FS in my server.. I would get banned...
Reply
#6


I have not seen even a slow Internet connection ..
Quote:
Originally Posted by enum
this seems more a only one function but good work
thx..
who has a good eye to look at it
Reply
#7

I'm sorry, but this is such a useless script, ban for 5000 ping? Oh dear.
Reply
#8

Indentation?

Код:
//Mobbx©'s pingKicker'n'Banner
#include <a_samp>

stock MobbxPingKick(playerid)
{
  new kick = GetPlayerPing(playerid);
  if(kick > 300)
  {
    Kick(playerid);
  }
}

stock MobbxPingBan(playerid)
{
  new ban = GetPlayerPing(playerid);
  if(ban > 5000) 
  {
    Ban(playerid);
  }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)