[Pedido] Ban por nick.
#3

Quote:
Originally Posted by [BVO]Alexandre[Tw]
View Post
Olha й esse aki que eu tenho aki no meu server.
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;
}
}
Cуdigo mal indentado, feito de qualquer jeito... Seu servidor por acaso й baixado da NET?
Reply


Messages In This Thread
Ban por nick. - by Ley - 31.07.2012, 23:44
Re: Ban por nick. - by [BVO]Alexandre[Tw] - 01.08.2012, 00:30
Re: Ban por nick. - by Mercurio - 01.08.2012, 01:17
Re: Ban por nick. - by Ley - 01.08.2012, 01:19
Re: Ban por nick. - by GhosT_[] - 01.08.2012, 09:28
Re: Ban por nick. - by dPlaYer_ - 01.08.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)