Guest User

Messages

a guest
Jul 30th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. // This Filterscript is made by Audi_Quattrix
  2. #define FILTERSCRIPT
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n--------------------------------------");
  10. print("Audi Join and Leave Messages Loaded!");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. print("\n--------------------------------------");
  18. print("Audi Join and Leave Messages Unloaded!");
  19. print("--------------------------------------\n");
  20. return 1;
  21. }
  22.  
  23. public OnPlayerConnect(playerid)
  24. {
  25. new pName[30], string[128];
  26. GetPlayerName(playerid, pName, 30);
  27. format(string, 256, "{FFFFFF}%s has {00FF22}joined {FFFFFF} the server! ", pName);
  28. SendClientMessageToAll(0x33AA33AA,string);
  29. return 1;
  30. }
  31.  
  32. public OnPlayerDisconnect(playerid, reason)
  33. {
  34. new string[128];
  35. new name[MAX_PLAYER_NAME];
  36. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  37. switch(reason)
  38. {
  39. case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
  40. case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
  41. case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
  42. }
  43. SendClientMessageToAll(0xFFFFFFAA,string);
  44. return 1;
  45. }
  46. #endif
Advertisement
Add Comment
Please, Sign In to add comment