SA-MP Forums Archive
How to send messages when someone login or logout from the server? - 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: How to send messages when someone login or logout from the server? (/showthread.php?tid=73482)



How to send messages when someone login or logout from the server? - Shellegg - 15.04.2009

How do i do that?

Onplayerlogin

SendClientMessageToAll

Onplayerlogout

SendClientMessageToAll

?
And how to define this?


Re: How to send messages when someone login or logout from the server? - nickbugun - 15.04.2009

I know how to make a message when a player chooses a class.. (10X clum)
Quote:

{
new Name[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(Name));
format(string, sizeof(string), "%s Connected", Name);
SendClientMessageToAll(Orange, string);
return 1;
}




Re: How to send messages when someone login or logout from the server? - nickbugun - 15.04.2009

When player disconnects:
(put it under player disconnect)
{
new disname[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(disname));
format(string, sizeof(string), "%s disconnected.", disname);
SendClientMessageToAll(Orange, string);
return 1;
}