27.03.2012, 15:56
Is it possible to get unbanned (by deleting samp.ban), but not to restart the server?
So is it possible to reload the samp.ban file?
So is it possible to reload the samp.ban file?
CMD:unbanip(playerid,params[])
{
new ip[32], dformat[64];
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,COLOR_ORANGE,"You need to be level 5 to use that command!"); //replace this with your own enum
if(sscanf(params,"s[32]",ip)) return SendClientMessage(playerid,COLOR_CYAN,"USAGE: /unbanip [ip]");
format(dformat,sizeof dformat,"unbanip %s",ip);
SendRconCommand(dformat);
SendRconCommand("reloadbans");
SendClientMessage(playerid,COLOR_CYAN,"Successfully unbanned IP!");
return 1;
}