[Include] [WIP] Ban system
#21

fffffffffffff

puts what I was working on to shame
Reply
#22

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.
Reply
#23

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.
Reply
#24

I love it Slice
Reply
#25

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).
Reply
#26

Very nice and useful.
Reply
#27

thx for this ban system.
Reply
#28

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

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

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
Reply
#31

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;
}
Reply
#32

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
Reply
#33

Excellent!Very useful.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)