Duda Nombre " _ "
#1

Buenas, tengo una duda..

Quote:

new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, COLOR_BLACK, "_________________________________________________ ________________________");
SendClientMessage(playerid, COLOR_YELLOW, "Importante Para Jugar en el Servidor");
SendClientMessage(playerid, COLOR_WHITE, " Ponte Tu Nombre Nombre_Apellido Realista EJ: Carlos_Marin");
SendClientMessage(playerid, COLOR_WHITE, " Presta Mucha Atencion Joder!!");
SendClientMessage(playerid, COLOR_BLACK, "_________________________________________________ ________________________");
format(string, sizeof(string), "Administracio: Kickeo ha %s Motivo: Usa Nombre_Apellido ", sendername);
SendClientMessageToAll(COLOR_RED, string);
Kick(playerid);
return 1;
}

Yo quiero que yo solo pueda entrar si el " _ ", osea que entre con Ibiza01 y que no me pida los simbolos solo ah los users intente de algunas formas que encontre pero no funcionaron?
Reply
#2

pawn Код:
new namestring = strfind(plname, "_", true);
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName,"Ibiza01",false))
{
    if(namestring == -1)
    {
        new string[128];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        SendClientMessage(playerid, COLOR_BLACK, "_________________________________________________ ________________________");
        SendClientMessage(playerid, COLOR_YELLOW, "Importante Para Jugar en el Servidor");
        SendClientMessage(playerid, COLOR_WHITE, " Ponte Tu Nombre Nombre_Apellido Realista EJ: Carlos_Marin");
        SendClientMessage(playerid, COLOR_WHITE, " Presta Mucha Atencion Joder!!");
        SendClientMessage(playerid, COLOR_BLACK, "_________________________________________________ ________________________");
        format(string, sizeof(string), "Administracio: Kickeo ha %s Motivo: Usa Nombre_Apellido ", sendername);
        SendClientMessageToAll(COLOR_RED, string);
        Kick(playerid);
        return 1;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)