Guest User

Blackwave: RANDOM CHAT COLORS

a guest
Jan 13th, 2011
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.23 KB | None | 0 0
  1. #define FILTERSCRIPT //////////////////////////////////////////////////////
  2. #include <a_samp> // SAMP standart include
  3. #define red "{FF002B}"
  4. #define pink "{FF00D9}"
  5. #define purple "{DFA7F2}"
  6. #define blue "{A1C2FF}"
  7. #define green "{3DE3B1}"
  8. #define yellow "{FAF623}"
  9. #define black "{69670C}"
  10. #define orange "{F2C80C}"
  11. #define ice "{03F2FF}"
  12. #define lime "{00FF40}"
  13. static title[][10] =
  14. {
  15. ""#red"",
  16. ""#pink"",
  17. ""#purple"",
  18. ""#blue"",
  19. ""#green"",
  20. ""#yellow"",
  21. ""#black"",
  22. ""#orange"",
  23. ""#ice"",
  24. ""#lime""
  25. };
  26. static message[][9] =
  27. {
  28. ""#red"",
  29. ""#pink"",
  30. ""#purple"",
  31. ""#blue"",
  32. ""#green"",
  33. ""#yellow"",
  34. ""#black"",
  35. ""#orange"",
  36. ""#ice"",
  37. ""#lime""
  38. };
  39. static id[][9] =
  40. {
  41. ""#red"",
  42. ""#pink"",
  43. ""#purple"",
  44. ""#blue"",
  45. ""#green"",
  46. ""#yellow"",
  47. ""#black"",
  48. ""#orange"",
  49. ""#ice"",
  50. ""#lime""
  51. };
  52. public OnPlayerText(playerid, text[])
  53. {
  54.     new rand = random(sizeof(title));
  55.     new rand2 = random(sizeof(id));
  56.     new rand3 = random(sizeof(message));
  57.     static name[MAX_PLAYER_NAME],string[128];
  58.     GetPlayerName(playerid,name,sizeof(name));
  59.     format(string,sizeof(string),"%s%s %s(%d): %s%s",title[rand][0],name,id[rand2][0],playerid,message[rand3][0],text);
  60.     SendClientMessageToAll(color, string);
  61.     return 0;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment