How to script this.
#6

pawn Код:
public OnPlayerConnect(playerid)
{
    // Crash Fix - GhoulSlayeR
    InvalidNameCheck(playerid);

    new playerIP[16];
    GetPlayerIp(playerid, playerIP, sizeof(playerIP));
    if (CheckBan(playerIP) == 1)
    {
        SetPlayerName(playerid, "BannedPlayer");
        SendClientMessage(playerid, COLOR_RED, "SERVER: You are banned from this server.");
        Kick(playerid);
        return 1;
    }
    if(IsPlayerNPC(playerid)) return 1;
    TotalConnect++;
    PlayersConnected++;
    if(PlayersConnected > MaxPlayersConnected)
    {
        MaxPlayersConnected = PlayersConnected;
        gettime(MPHour,MPMinute);
        getdate(MPYear,MPMonth,MPDay);
    }
But this my my style if there's a player will join.
Reply


Messages In This Thread
How to script this. - by Eljayar - 26.02.2012, 08:13
Re: How to script this. - by BigD - 26.02.2012, 08:22
Re: How to script this. - by BMUK - 26.02.2012, 08:24
Re: How to script this. - by Eljayar - 26.02.2012, 08:25
Re: How to script this. - by BigD - 26.02.2012, 08:27
Re: How to script this. - by Eljayar - 26.02.2012, 08:31
Re: How to script this. - by BigD - 26.02.2012, 08:33
Re: How to script this. - by Eljayar - 26.02.2012, 08:37
Re: How to script this. - by BigD - 26.02.2012, 08:39
Re: How to script this. - by blewert - 26.02.2012, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)