01.08.2012, 00:30
Olha й esse aki que eu tenho aki no meu server.
Tenta da uma modificada ai e coloca pra ver.
Tenta da uma modificada ai e coloca pra ver.
pawn Code:
if(strcmp(cmd, "/banirnick", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256];
tmp = strtok(cmdtext, idx);
format(file2, sizeof(file2), PASTA_CONTAS, tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /banirnick [nick]");
return 1;
}
dini_IntSet("nickban.ini",tmp,1);
SendClientMessage(playerid, Verde, "(INFO) Nick banido!");
format(string, sizeof(string), "(INFO) O administrador %s baniu o nick %s", aname,tmp);
SendClientMessageToAll(tcadm, string);
return 1;
}
}