[Ajuda] verificar nomes
#6

PHP код:
new Nickname[MAX_PLAYERS MAX_PLAYER_NAME];
CMD:bantest(playeridilanz[])
{
    new 
idmotivo[70];
    
GetPlayerName(playeridNickname[playerid], MAX_PLAYER_NAME);
    if(
sscanf(ilanz"ds[70]"idmotivo))
        return 
1;
    if(
strfind(Nickname[playerid], "IlanZin"true) != -|| strfind(Nickname[playerid], "yAlphazin_"true) != -|| strfind(Nickname[playerid], "IlanZ"true) != -1)
        return 
SendClientMessage(playerid, -1"Nгo pode banir esses nick");
    
Ban(playerid);
    return 
1;

Nгo cheguei a testar, mais pode funcionar como base ou melhor, usa strcmp
Reply


Messages In This Thread
verificar nomes - by johntrybescripter - 26.02.2017, 21:01
Re: verificar nomes - by MrJanitor - 26.02.2017, 21:37
Re: verificar nomes - by johntrybescripter - 26.02.2017, 22:49
Re: verificar nomes - by IlanZ - 26.02.2017, 23:00
Re: verificar nomes - by johntrybescripter - 26.02.2017, 23:03
Re: verificar nomes - by IlanZ - 26.02.2017, 23:31
Re: verificar nomes - by JeffSantos2 - 27.02.2017, 05:20
Re: verificar nomes - by johntrybescripter - 27.02.2017, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)