[Ajuda] Colocar motivo no banimento off
#1

Olб! eu tenho um comando que da ban no jogador estando off. Porem ele nгo ponhe o motivo,apenas o nome do adm e do jogador. Poderia ajudar a eu por o motivo? Grato!

PHP код:
dcmd_banirconta(playerid,params[]) {
if(
PlayerInfo[playerid][Level] < 2) return SendClientMessage(playerid,red,"| ERRO | Comando Inexistente.");
if(
strlen(params) < 3) return SendClientMessage(playerid,red,"| ERRO | Digite: /banirconta [Nick do Jogador(a)]");
if(
IsIllegalName(params)) return SendClientMessage(playerid,red,"| ERRO | Nick ilegal!");
if(!
udb_Exists(params)) return SendClientMessage(playerid,red,"| ERRO | A conta nгo Existe!");
if(
PlayerInfo[playerid][Level] < 5){if(dUserINT(params).("level") >= 1) return SendClientMessage(playerid,red,"| ERRO | A conta pertence a um membro da Administraзгo!");}
if(
dUserINT(params).("banned") == 1) return SendClientMessage(playerid,red,"| ERRO | A Conta jб permanece Banida!");
dUserSetINT(params).("banned",1);
new 
SampDotBan[128],file[255];
format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(params));
new 
tmp2[256]; tmp2 dini_Get(file,"ip");
format(SampDotBan,sizeof(SampDotBan),"banip %s"tmp2);
SendRconCommand(SampDotBan);
SendRconCommand("reloadbans");
if(
dUserINT(params).("banned") == 1){
CMDMessageToAdmins(playerid,"banirconta");
//--------------- LOGAR
new ADMNAME[MAX_PLAYER_NAME];GetPlayerName(playeridADMNAMEMAX_PLAYER_NAME);
new 
logstring[128];format(logstringsizeof(logstring), "| BAN-LOG | O(A) Admin(a) %s baniu a conta do(a) Jogador(a): (%s)"ADMNAME,params);
SaveToFile("BannedAccs",logstring);
//---------------
SendClientMessage(playerid,azul,"A conta e o IP foi banidas com Sucesso!");
new 
frm[260];
new 
motivo[250];
new 
year,month,day,hour,minuite,secondgetdate(yearmonthday); gettime(hour,minuite,second);
format(frm,sizeof(frm),"| BVD-Admin | O(A) Administrador(a) %s baniu a conta do(a) jogador(a) %s",ADMNAME,params,motivo[2],day,month,year,hour,minuite);
SendClientMessageToAll(red,frm);
}else{
SendClientMessage(playerid,red,"| ERRO | Nгo й possivel banir a conta!");}
return 
1;} 
Reply


Messages In This Thread
Colocar motivo no banimento off - by CSSDean - 21.02.2018, 13:29
Re: Colocar motivo no banimento off - by lHesoyaml - 22.02.2018, 01:16
Re: Colocar motivo no banimento off - by Marllun - 22.02.2018, 02:24
Re: Colocar motivo no banimento off - by CSSDean - 22.02.2018, 15:22
Re: Colocar motivo no banimento off - by Marllun - 22.02.2018, 15:57
Re: Colocar motivo no banimento off - by CSSDean - 24.02.2018, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)