Player joining isnt echoing
#1

When a player joins my server it doesnt echo it to IRC

pawn Код:
public OnPlayerConnect(playerid)
{
    new
        joinMsg[128],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(joinMsg, sizeof(joinMsg), "02[%d] 03*** %s has joined the server.", playerid, name);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, joinMsg);
    return 1;
}
The leave message is working however. Compare them if you need
pawn Код:
public
    OnPlayerDisconnect(playerid, reason)
{
    new
        leaveMsg[128],
        name[MAX_PLAYER_NAME],
        reasonMsg[8];
    switch(reason)
    {
        case 0:
        {
            reasonMsg = "Timeout";
        }
        case 1:
        {
            reasonMsg = "Leaving";
        }
        case 2:
        {
            reasonMsg = "Kicked";
        }
    }
    GetPlayerName(playerid, name, sizeof(name));
    format(leaveMsg, sizeof(leaveMsg), "02[%d] 03*** %s has left the server. (%s)", playerid, name, reasonMsg);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, leaveMsg);
    return 1;
}
Reply


Messages In This Thread
Player joining isnt echoing - by SnG.Scot_MisCuDI - 01.03.2012, 01:12
Re: Player joining isnt echoing - by Walsh - 01.03.2012, 01:16
Re: Player joining isnt echoing - by SnG.Scot_MisCuDI - 01.03.2012, 01:23
Re: Player joining isnt echoing - by Min - 01.03.2012, 01:30
Re: Player joining isnt echoing - by SnG.Scot_MisCuDI - 02.03.2012, 22:11
Re: Player joining isnt echoing - by R0FLC0PTER - 02.03.2012, 22:14
Re: Player joining isnt echoing - by SnG.Scot_MisCuDI - 02.03.2012, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)