join/ leave message
#1

how to make a join/leave message ?


thanx for the help
Reply
#2

https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages

theres a tutorial.. next time look around before posting
Reply
#3


Code:
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pName);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pName);
case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)