[Ajuda] Ban bugado
#3

Quote:
Originally Posted by Kamper
Посмотреть сообщение
Na verdade esse seu comando estб todo errado. Se vocк digitar um nome invйs de um ID vai dar problema mas...

O comando estб usando playerid como se fosse o ID do jogador informado porйm playerid armazena o ID do jogador que usou o comando.

Substitua o playerid, no bloco de puniзгo, pela variбvel que armazena o ID do jogador. No seu comando estб bem claro qual й.
ficaria assim?

pawn Код:
CMD:banper(playerid, params[])
{
    if(ChecarPermissoes(playerid)) return 1;
    if(AdmServer(playerid, 4)) return 1;
    new StringBP[64], pFile[64];
    if(!IsPlayerConnected(strval(params))) return Msg(playerid, Vermelho, "Este jogador nгo estб online.");
    if(sscanf(params, "s[64]",iddele)) return Msg(playerid, Vermelho, "[x]: {FFFFFF}Uso Correto: {FF0000}/Car [id/nome] ");
    if(!IsNumeric(BanPerma))
    {
        gpci(strval(params), StringBP, sizeof(StringBP));
        format(pFile, sizeof(pFile), BanPerma, StringBP);
        DOF2_CreateFile(pFile);
        DOF2_SetString(pFile, "Nome", Nome(playerid),Nome(iddele));
        DOF2_SaveFile();
        Msg(strval(params), -1, "Banido!");
        Kick(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Ban bugado - by best95 - 25.08.2016, 17:57
Re: Ban bugado - by Kamper - 25.08.2016, 18:12
Re: Ban bugado - by best95 - 25.08.2016, 18:21
Re: Ban bugado - by TheJoaoPedro - 25.08.2016, 18:42
Re: Ban bugado - by best95 - 25.08.2016, 18:49
Re: Ban bugado - by Kamper - 25.08.2016, 18:52
Re: Ban bugado - by best95 - 25.08.2016, 18:56
Re: Ban bugado - by TheJoaoPedro - 25.08.2016, 19:02
Re: Ban bugado - by F1N4L - 25.08.2016, 19:46
Re: Ban bugado - by arakuta - 25.08.2016, 21:08

Forum Jump:


Users browsing this thread: