SA-MP Forums Archive
IRC OnPlayerDisconnect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IRC OnPlayerDisconnect (/showthread.php?tid=140523)



IRC OnPlayerDisconnect - XRVX - 09.04.2010

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


Re: IRC OnPlayerDisconnect - DaHP14Y3R - 09.04.2010

SendClientMessageToAll ? :/ I dunno , maybe thats it.


Re: IRC OnPlayerDisconnect - XRVX - 09.04.2010

Quote:
Originally Posted by Play3r❶❸❸❼
SendClientMessageToAll ? :/ I dunno , maybe thats it.
Nah. Next time read the topic, please.

It's for IRC, not ingame...


Re: IRC OnPlayerDisconnect - GaGlets(R) - 15.05.2010

Amm your string..
it should be [128] not max_players..


Re: IRC OnPlayerDisconnect - [03]Garsino - 15.05.2010

Quote:
Originally Posted by GaGlets®
Amm your string..
it should be [128] not max_players..
It's not MAX_PLAYERS either....