Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This Filterscript is made by Audi_Quattrix
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Audi Join and Leave Messages Loaded!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print("Audi Join and Leave Messages Unloaded!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pName[30], string[128];
- GetPlayerName(playerid, pName, 30);
- format(string, 256, "{FFFFFF}%s has {00FF22}joined {FFFFFF} the server! ", pName);
- SendClientMessageToAll(0x33AA33AA,string);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[128];
- new 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;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment