[DUVIDA]Nicks
#1

Como botar para nimguem se registrar com o sobrenome Staff ?

EX:
VC_Staff
MAS quem ja tiver conta poder logar normal
Reply
#2

pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(!strcmp(Nome, "Staff", true) == -1)
{
    if(/*VARIAVEL REGISTRADO*/ == 0)
    {
        SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome.");
        return Kick(playerid);
    }
}
Reply
#3

pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(strfind(Nome, "staff", true) != -1)
{
    if(/*VARIAVEL REGISTRADO*/ == 0)
    {
        SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome.");
        return Kick(playerid);
    }
}
o Correto й strfind e nгo strcmp.
Reply
#4

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(strfind(Nome, "staff", true) != -1)
{
    if(/*VARIAVEL REGISTRADO*/ == 0)
    {
        SendClientMessage(playerid, "Vocк nгo estб autorizado a logar com esse nome.");
        return Kick(playerid);
    }
}
o Correto й strfind e nгo strcmp.
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)