unban - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: unban (
/showthread.php?tid=386213)
unban -
PaulDinam - 19.10.2012
i made ban command that adds to samp.ban
85.64.167.227 [19/10/12 | 20:32:34] Nathan_King - INGAME BAN
how do i remove this line from there?
Re: unban -
Djole1337 - 19.10.2012
Delete that line, or remove samp.ban flile and reolad bans using
/rcon reloadbans.
Re: unban -
PaulDinam - 19.10.2012
if there are 5 players banned i want to delete only the player line and reload.
Re: unban -
Djole1337 - 19.10.2012
Quote:
Originally Posted by PaulDinam
if there are 5 players banned i want to delete only the player line and reload.
|
Just open goddamn file and delete the line.
Re: unban -
PaulDinam - 19.10.2012
my god..
i need acommand.
Re: unban -
C00K13M0N$73R - 19.10.2012
/rcon unbanip [IP]
Re: unban -
Djole1337 - 19.10.2012
Quote:
Originally Posted by PaulDinam
my god..
i need acommand.
|
Код:
command(unban, playerid, params[])
{
new
ip[32],
ipform[128];
if(sscanf(params, "s[32]", ip))
{
return SendClientMessage(playerid, -1, "usage: /unbanip [ip]");
}
format(ipform,sizeof(ipform),"unbanip %s", ip);
SendRconCommand(ipform);
SendRconCommand("reloadbans");
return 1;
}
Note: you need sscanf2, and zcmd.