#include public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Enter and Exit Messages"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerConnect(playerid) { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "%s has joined the server.", pName); SendClientMessageToAll(0xB4B5B7AA,string); return 1; } public OnPlayerDisconnect(playerid, reason) { switch(reason) { case 0: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "%s has left the server.(Timeout)", pName); SendClientMessageToAll(0xB4B5B7AA, string); } case 1: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "%s has left the server.(Leaving)", pName); SendClientMessageToAll(0xB4B5B7AA, string); } case 2: { new pName[30], string[256]; GetPlayerName(playerid, pName, 30); format(string, 256, "%s has left the server.(Kicked)", pName); SendClientMessageToAll(0xB4B5B7AA, string); } } return 1; }