message didn't show
#1

Код:
public OnPlayerConnect(playerid)
{
    new
        name[24],
        string[2];

    GetPlayerName(playerid, name, sizeof(name)); 
    if(sscanf(name, "{p<_>s[12]s[12]}") != 0) 
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "* You have been kicked because your nickname is invalid");
        Kick(playerid);
    }
    for(new i = 0; i < 10; i ++) // we make a loop from 0 to 9
    {
        format(string, sizeof(string), "%d", i); 
        if(strfind(name, string, true) != -1) 
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "* You have been kicked because your nickname had a number!");
            Kick(playerid); 
        }
    }
    return 1;
}
Reply
#2

You need to kick the player with a delay.

Use settimerex to call a function which kicks the player after a short period.
Reply
#3

Quote:
Originally Posted by Flori
Посмотреть сообщение
You need to kick the player with a delay.

Use settimerex to call a function which kicks the player after a short period.

solved, thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)