11.11.2011, 14:00
fffffffffffff
puts what I was working on to shame
puts what I was working on to shame
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.
|
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;
}