How to send messages when someone login or logout from the server?
#1

How do i do that?

Onplayerlogin

SendClientMessageToAll

Onplayerlogout

SendClientMessageToAll

?
And how to define this?
Reply
#2

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;
}

Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)