25.07.2012, 01:50
Bom, quando eu dou /punirconta boto o nome certinho ( jб configurei ) nгo da de bota tempo, e o player nгo vai para a prisгo, e nem quando ele loga aparece que ele foi punido.
Traduzindo, o comando nгo funcionou, e aqui estб ele configurado.
Traduzindo, o comando nгo funcionou, e aqui estб ele configurado.
pawn Код:
if(strcmp(cmd,"/punirconta",true)==0 || strcmp(cmd,"/punirnick",true)==0 || strcmp(cmd,"/punirnome",true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 1342)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] < 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_GRAD1,"USE: /punirconta [NOME DO JOGADOR]");
return 1;
}
if(strcmp(tmp,"Fire_Nando",true)==0 || strcmp(tmp,"Nick_Protegido2",true)==0 || strcmp(tmp,"Nick_Protegido3",true)==0)
{
return 1;
}
new arquivo[64];
format(arquivo, sizeof(arquivo), "Contas/%s.ini",tmp);
if(!dini_Exists(arquivo))
{
SendClientMessage(playerid,COLOR_GRAD1,"Esta ACC nao foi encontrata na Lista.");
return 1;
}
else
{
dini_IntSet(arquivo,"Jailed",9);
dini_IntSet(arquivo,"JailTime",999);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
{
format(string, 128, "CONTA PUNIDA: Bot_Zinho puniu a conta %s.",tmp);
ABroadCast(COLOR_YELLOW,string,1);
}
else
{
format(string, 128, "CONTA PUNIDA: %s puniu a conta %s: %s", sendername,tmp);
ABroadCast(COLOR_YELLOW,string,1);
}
}
return 1;
}