13.06.2011, 03:03
How Do I Make It Say So and So Has Joined Your Server
Like HayZatic Has Joined Your Server!
Or HayZatic Has Left Your Server!
Like HayZatic Has Joined Your Server!
Or HayZatic Has Left Your Server!
public OnPlayerConnect(playerid)
{
SendClientMessageToAll(color_yellow, "%s has Joined the server");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SendClientMessageToAll(color_yellow, "%s has Left the Server);
return 1;
}
public OnPlayerConnect(playerid)
{
new szFormatString[55], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(szFormatString, sizeof(szFormatString), "%s(%d) has joined the server.", pName, playerid);
SendClientMessageToAll(COLOR_HERE, szFormatString);
return 1;
}
public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has joined the server. Welcome!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1;
public OnPlayerDisconnect(playerid, reason) { new string[64], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); switch(reason) { case 0: format(string,sizeof string,"%s left the server. (Timed out)",name); case 1: format(string,sizeof string,"%s left the server. (Leaving)",name); case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name); } SendClientMessageToAll(0xFFFFFFAA,string); return 1; }