IRC OnPlayerDisconnect
#1

So,... When someone leaves the server, it doesn't show anything

Код:
public OnPlayerDisconnect(playerid,reason)
{
	new string[MAX_PLAYER_NAME+45],
	   name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
       switch(reason)
       {
      case 0: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Timeout)",name,playerid);
      case 1: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Left)",name,playerid);
      case 2: format(string,sizeof string,"03*** %s (ID:%d) has left the server (Kicked/Banned)",name,playerid);
	}
	IRC_Say(gGroupID,IRC_CHANNEL,string);
	return 1;
}
I don't get any errors or warnings in my script. Where could be the problem
Reply


Messages In This Thread
IRC OnPlayerDisconnect - by XRVX - 09.04.2010, 14:25
Re: IRC OnPlayerDisconnect - by DaHP14Y3R - 09.04.2010, 17:06
Re: IRC OnPlayerDisconnect - by XRVX - 09.04.2010, 18:56
Re: IRC OnPlayerDisconnect - by GaGlets(R) - 15.05.2010, 09:28
Re: IRC OnPlayerDisconnect - by [03]Garsino - 15.05.2010, 09:33

Forum Jump:


Users browsing this thread: 1 Guest(s)