Help kick player
#2

pawn Код:
forward kick(playerid);

public OnPlayerConnect(playerid)
{
    new playername[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
    if(strfind(playername,".")!=-1)
    {
        SendClientMessage(playerid,-1,"You Cannot Use A Name That Contains A . (Period) On This Server");
        SetTimerEx("kick",500,false,"i",playerid);
    }
    return 1;
}

public kick(playerid)
{
    Kick(playerid);
    return 1;
}
Reply


Messages In This Thread
Help kick player - by Airblog - 17.12.2014, 18:37
Re: Help kick player - by Banana_Ghost - 17.12.2014, 19:10

Forum Jump:


Users browsing this thread: 3 Guest(s)