[Ajuda] Ant-Tag
#4

Man, usa estб funзгo que fiz aqui.

pawn Код:
stock existe(playerid,...)
{
    static a,b,c,nome[24];
    a = 1;
    b = numargs();
    GetPlayerName(playerid,nome,sizeof nome);
    for(; a < b; ++a)
    {
        for(c = 0; c < strlen(nome); ++c)
        {
            if(nome[c] == getarg(a)) return false;
        }
    }
    return true;
}

// como usar?
// em OnPlayerConnect
if(existe(playerid,'.','-','1')) // exemplo..
{
     // funзхes caso exista.
}

// caso exista retorna falso, caso nгo retorna true.
Reply


Messages In This Thread
Ant-Tag - by mau.tito - 21.09.2012, 23:23
Re: Ant-Tag - by FeelLikeASir_ - 21.09.2012, 23:26
Re: Ant-Tag - by dEvasT._ - 22.09.2012, 01:47
Re: Ant-Tag - by YourLord - 22.09.2012, 02:07
Re: Ant-Tag - by mau.tito - 22.09.2012, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)