28.01.2015, 20:01
why is message is not full
Code:
public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"{E81010}***%s {1DB8F5}has joined the Server {00CF00}(Joined)*** !",pName); SendClientMessageToAll(-1,string); return 1; } public OnPlayerDisconnect(playerid, reason) { new szString[64], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); switch(reason) { case 0: format(szString, sizeof szString, "{E81010}*** %s {1DB8F5}left the Server.{00CF00}(Timed Out/Crashed)***", name); case 1: format(szString, sizeof szString, "***{E81010}%s {1DB8F5}left the Server.{00CF00}(Quit)***", name); case 2: format(szString, sizeof szString, "***{E81010}%s {1DB8F5}left the Server.{00CF00}(Kicked/Banned)***", name); } SendClientMessageToAll(-1, szString); return 1; }