CMD:ban(playerid,params[])
{
if(Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
new id, reason[128];
if(sscanf(params,"us[128]",id,reason)) return SendClientMessage(playerid,azul,"Uso: /ban [id] [Motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
new msg[256];
format(msg,256,"AdmCmd O admin %s baniu %s. Motivo: %s",GetName(playerid),GetName(id),reason);
SendClientMessageToAll(0xB40404AA,msg);
SalvarConta(id);
BanACC(id, reason, NomePlayer(playerid));
return 1;
}
CMD:bantemp(playerid,params[])
{
if(Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
new id,dias, reason[128];
if(sscanf(params,"uds[128]",id,dias,reason)) return SendClientMessage(playerid,azul,"Uso: /bantemp [id] [dias] [Motivo]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
new msg[256];
format(msg,256,"AdmCmd O admin %s baniu temporariamente %s (%d dias). Motivo: %s",GetName(playerid),GetName(id),dias, reason);
SendClientMessageToAll(0xB40404AA,msg);
SalvarConta(id);
BanACCTemp(id, reason, dias, NomePlayer(playerid));
return 1;
}
CMD:agendarban(playerid,params[])
{
if(Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
new nome[128], reason[128];
if(sscanf(params,"s[128]s[128]",nome,reason)) return SendClientMessage(playerid,azul,"Uso: /agendarban [Nick] [Motivo]");
new msg[80];
format(msg,399,"AdmCmd O admin %s agendou o ban de %s. Motivo: %s",GetName(playerid),nome,reason);
SendClientMessageToAll(0xB40404AA,msg);
BanACCEx(nome, reason, NomePlayer(playerid));
return 1;
}