SA-MP Forums Archive
[FilterScript] [FilterScript]Mobbx's PingKicker'n'Banner - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FilterScript]Mobbx's PingKicker'n'Banner (/showthread.php?tid=87529)



[FilterScript]Mobbx's PingKicker'n'Banner - The Modder - 20.07.2009

/*[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]


Re: [FilterScript]Mobbx's PingKicker'n'Banner - aspire5630 - 20.07.2009

Pastebin?


Re: [FilterScript]Mobbx's PingKicker'n'Banner - The Modder - 20.07.2009

http://mobbx.pastebin.com/m347859e4


Re: [FilterScript]Mobbx's PingKicker'n'Banner - Weirdosport - 20.07.2009

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);
}



Re: [FilterScript]Mobbx's PingKicker'n'Banner - SiJ - 21.07.2009

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...


Re: [FilterScript]Mobbx's PingKicker'n'Banner - The Modder - 21.07.2009


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


Re: [FilterScript]Mobbx's PingKicker'n'Banner - MachineHead - 21.07.2009

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


Re: [FilterScript]Mobbx's PingKicker'n'Banner - Scream[SM] - 10.08.2009

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);
  }
}