01.12.2012, 05:13
Precisa dar unbanip e em ъltimo caso recarregar os arquivos
OU caso queira algo otimizado
pawn Код:
if(!strcmp(cmd, "/desbanip", true))
{
if(pAdmin[playerid] >= 1 && pAdmin[playerid] <= 5) {
static
tmp[256], idx
;
tmp = strtok(cmdtext, idx);
if(strlen(tmp) < 10)
{
return SendClientMessage(playerid, Vermelho, "Uso: /desbanip [ip]"), true;
}
format( tmp, 128, "unbanip %s", tmp);
SendRconCommand(tmp);
SendRconCommand("reloadbans");
}
return true;
}
pawn Код:
if(!strcmp(cmdtext, "/unba", true, 5))
{
if(pAdmin[playerid] < 1) {
return true;
}
if(!cmdtext[5] || strlen(cmdtext) > 54) {
return SendClientMessage(playerid, -1, "USE: /unba [unbanip]");
}
static tmp [56];
format( tmp, 56, "unbanip %s", cmdtext[6]); // 6 pois й apуs o espaзo xD
SendRconCommand(tmp);
SendRconCommand("reloadbans");
return true;
}