Advertisement
Guest User

Name colour changer

a guest
Jun 3rd, 2010
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n------------------------------------------");
  10. print("Name colour changer By [TLA]BlackBlood");
  11. print("------------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. return 1;
  18. }
  19.  
  20. #else
  21.  
  22. #endif
  23.  
  24. public OnPlayerCommandText(playerid, cmdtext[])
  25. {
  26. if(!strcmp(cmdtext,"/changecolour",true))
  27. {
  28. SendClientMessage(playerid,0x0259EAFF, "Type /blue to set your name colour to blue.");
  29. SendClientMessage(playerid,0xFF0000AA, "Type /red to set your name colour to red.");
  30. SendClientMessage(playerid,0xFFFF00AA, "Type /yellow to set your name colour to yellow.");
  31. SendClientMessage(playerid,0x33AA33AA, "Type /green to set your name colour to green.");
  32. SendClientMessage(playerid,0xFF9900AA, "Type /orange to set your name colour to orange.");
  33. SendClientMessage(playerid,0xFFFFFFAA, "Type /white to set your name colour to white.");
  34. SendClientMessage(playerid,0x000000FF, "Type /black to set your name colour to black.");
  35. SendClientMessage(playerid,0x8B4513FF, "Type /brown to set your name colour to brown.");
  36. SendClientMessage(playerid,0xAFAFAFAA, "Type /grey to set your name colour to grey.");
  37. return 1;
  38. }
  39. if(!strcmp(cmdtext,"/blue",true))
  40. {
  41. SetPlayerColor(playerid,0x0259EAFF);
  42. SendClientMessage(playerid,0x0259EAFF, "The colour of your name has been set to blue.");
  43. return 1;
  44. }
  45. if(!strcmp(cmdtext,"/red",true))
  46. {
  47. SetPlayerColor(playerid,0xFF0000AA);
  48. SendClientMessage(playerid,0xFF0000AA, "The colour of your name has been set to red.");
  49. return 1;
  50. }
  51. if(!strcmp(cmdtext,"/yellow",true))
  52. {
  53. SetPlayerColor(playerid,0xFFFF00AA);
  54. SendClientMessage(playerid,0xFFFF00AA, "The colour of your name has been set to yellow.");
  55. return 1;
  56. }
  57. if(!strcmp(cmdtext,"/green",true))
  58. {
  59. SetPlayerColor(playerid,0x33AA33AA);
  60. SendClientMessage(playerid,0x33AA33AA, "The colour of your name has been set to green.");
  61. return 1;
  62. }
  63. if(!strcmp(cmdtext,"/orange",true))
  64. {
  65. SetPlayerColor(playerid,0xFF9900AA);
  66. SendClientMessage(playerid,0xFF9900AA, "The colour of your name has been set to orange.");
  67. return 1;
  68. }
  69. if(!strcmp(cmdtext,"/white",true))
  70. {
  71. SetPlayerColor(playerid,0xFFFFFFAA);
  72. SendClientMessage(playerid,0xFFFFFFAA, "The colour of your name has been set to white.");
  73. return 1;
  74. }
  75. if(!strcmp(cmdtext,"/black",true))
  76. {
  77. SetPlayerColor(playerid,0x000000FF);
  78. SendClientMessage(playerid,0x000000FF, "The colour of your name has been set to black.");
  79. return 1;
  80. }
  81. if(!strcmp(cmdtext,"/brown",true))
  82. {
  83. SetPlayerColor(playerid,0x8B4513FF);
  84. SendClientMessage(playerid,0x8B4513FF, "The colour of your name has been set to brown.");
  85. return 1;
  86. }
  87. if(!strcmp(cmdtext,"/grey",true))
  88. {
  89. SetPlayerColor(playerid,0xAFAFAFAA);
  90. SendClientMessage(playerid,0xAFAFAFAA, "The colour of your name has been set to grey.");
  91. return 1;
  92. }
  93. return 0;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement