01.03.2012, 01:12
(
Последний раз редактировалось SnG.Scot_MisCuDI; 02.03.2012 в 22:12.
)
When a player joins my server it doesnt echo it to IRC
The leave message is working however. Compare them if you need
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;
}
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;
}