SA-MP Forums Archive
[Include] [WIP] Ban system - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [WIP] Ban system (/showthread.php?tid=295759)

Pages: 1 2


Re: [WIP] Ban system - Calgon - 11.11.2011

fffffffffffff

puts what I was working on to shame


Re: [WIP] Ban system - Slice - 15.11.2011

I've started working on the ban manager. Ideas, suggestions?

Demo.

Hint: Click on a ban to edit it.

Worth mentioning is I didn't even test this in Internet Explorer as I'll work on cross-browser compatibility last. It should work in webkit browsers, Fx and Opera.


Re: [WIP] Ban system - thiaZ_ - 15.11.2011

That system is exactly what I need, I will implement that into my gamemode asap. The online-handler is also a very nice idea, did you think about IP/name exceptions yet? For example you ban 143.64.*.* but want player "MrDoodles", with the same range to be able to connect, I'm not sure if that is really necessary (I think it would also be able to do that locally), but that would be cool to use with GetPlayerBanIndex(...), I guess.


Re: [WIP] Ban system - Pinguinn - 15.11.2011

I love it Slice


Re: [WIP] Ban system - Slice - 15.11.2011

Quote:
Originally Posted by thiaZ_
Посмотреть сообщение
That system is exactly what I need, I will implement that into my gamemode asap. The online-handler is also a very nice idea, did you think about IP/name exceptions yet? For example you ban 143.64.*.* but want player "MrDoodles", with the same range to be able to connect, I'm not sure if that is really necessary (I think it would also be able to do that locally), but that would be cool to use with GetPlayerBanIndex(...), I guess.
I will implement exceptions soon. Also, I'm going to look into bans by hostname/subdomain(s).


Re: [WIP] Ban system - Chris# - 15.11.2011

Very nice and useful.


Re: [WIP] Ban system - Astralis - 15.11.2011

thx for this ban system.


Re: [WIP] Ban system - Scenario - 16.11.2011

Looks like I'm going to die because I'm not going to help you!!!


Re: [WIP] Ban system - Slice - 16.11.2011

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Looks like I'm going to die because I'm not going to help you!!!



Re: [WIP] Ban system - Slice - 16.11.2011

I've made more updates to the web interface (also the the include, but those are not yet finished).

Here's the demo:
Demo.

here's the (very undocumented) source:
ban-manager.zip


Re: [WIP] Ban system - TheArcher - 05.09.2012

Quote:
Originally Posted by Djukakv
Посмотреть сообщение
How i ban?
You have to the functions from the include.

E.g with ZCMD and SSCANF

pawn Код:
CMD:ban(playerid, params[])
{
       new target;
       if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, " Usage: /ban [playerid] ");
       new ban = BanPlayer(target);
       SetBanInfoString(ban, "Reason", "You've been banned for no reason");
       return 1;
}



Re: [WIP] Ban system - Ada32 - 06.01.2014

this and bud makes me smile.

edit: if you have any ysi stuff, the compiler'l throw a fit (getstringarg -> y_utils) so just rename and modify any getstringarg in this include and you'll be good2go


Re: [WIP] Ban system - Sojo12 - 11.01.2014

Excellent!Very useful.