Advertisement
Guest User

ChangeColour System V1.0 By Awankz[SDZ]

a guest
Dec 22nd, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. //=========================================================
  2. // CHANGE COLOUR SYSTEM V1.0 BY AWANKZ[SDZ]
  3. // PLEASE DON'T REMOVE CREDITS
  4. //=========================================================
  5.  
  6. #include <a_samp>
  7. #include <zcmd>
  8.  
  9. #define LIGHTGREEN 0x00FF00C8 //{00FF00}
  10. #define ORANGE 0xFE7749C8 //{FE7749}
  11. #define GRAY 0xC0C0C0C8 //{C0C0C0}
  12. #define BLACK 0x000000C8 //{000000}
  13. #define WHITE 0xFFFFFFFF //{FFFFFF}
  14. #define BLUE 0x0000FFC8 //{0000FF}
  15. #define RED 0xFF0000C8 //{FF0000}
  16. #define YELLOW 0xFFFF80C8 //{FFFF80}
  17. #define PEACH 0xFF8040C8 //{FF8040}
  18. #define CRYBLUE 0x8080FFC8 //{8080FF}
  19. #define CRYORANGE 0xFF8F59C8 //{FF8F59}
  20. #define LIGHTBLUE 0x00FFFFC8 //{00FFFF}
  21. #define PURPLE 0x400080FF //{400080}
  22. #define LIGHTRED 0xFF99AADD
  23. #define PINK 0xFF66FFAA
  24.  
  25. #define ColourList 1
  26.  
  27. public OnFilterScriptInit()
  28. {
  29. print("\n--------------------------------------");
  30. print(" ChangeColour System V1.0 By Awankz[SDZ]");
  31. print("--------------------------------------\n");
  32. return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37. return 1;
  38. }
  39.  
  40.  
  41. main()
  42. {
  43. print("\n----------------------------------");
  44. print(" ChangeColour System V1.0 By Awankz[SDZ]");
  45. print("----------------------------------\n");
  46. }
  47.  
  48. public OnPlayerSpawn(playerid)
  49. {
  50. SendClientMessage(playerid, CRYBLUE, ".: This Server Use {400080}Colour {FF99AA}System V1.0 By Awankz[SDZ] :.");
  51. return 1;
  52. }
  53.  
  54.  
  55. CMD:changecolour(playerid, params[])
  56. {
  57. ShowPlayerDialog(playerid,ColourList,DIALOG_STYLE_LIST,"{400080}Colour {8080FF}List","1.{FF0000}Red\n2.{0000FF}Blue\n3.{00FF00}Green\n4.{FF66FF}Pink\n5.White\n6.{FFFF80}Yellow\n7.{400080}Purple\n8.{FE7749}Orange","Apply","Close");
  58. return 1;
  59. }
  60.  
  61.  
  62. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  63. {
  64. if(dialogid == ColourList)
  65. {
  66. if(response)
  67. {
  68.  
  69. if(listitem == 0)
  70. {
  71. SetPlayerColor(playerid, RED);
  72. SendClientMessage(playerid, RED, ".: Your Have Been Set Your Colour To RED :.");
  73. return 1;
  74. }
  75. if(listitem == 1)
  76. {
  77. SetPlayerColor(playerid, BLUE);
  78. SendClientMessage(playerid, BLUE, ".: Your Have Been Set Your Colour To BLUE :.");
  79. return 1;
  80. }
  81. if(listitem == 2)
  82. {
  83. SetPlayerColor(playerid, LIGHTGREEN);
  84. SendClientMessage(playerid, LIGHTGREEN, ".: Your Have Been Set Your Colour To GREEN :.");
  85. return 1;
  86. }
  87. if(listitem == 3)
  88. {
  89. SetPlayerColor(playerid, PINK);
  90. SendClientMessage(playerid, PINK, ".: Your Have Been Set Your Colour To PINK :.");
  91. return 1;
  92. }
  93. if(listitem == 4)
  94. {
  95. SetPlayerColor(playerid, WHITE);
  96. SendClientMessage(playerid, WHITE, ".: Your Have Been Set Your Colour To WHITE :.");
  97. return 1;
  98. }
  99. if(listitem == 5)
  100. {
  101. SetPlayerColor(playerid, YELLOW);
  102. SendClientMessage(playerid, YELLOW, ".: Your Have Been Set Your Colour To YELLOW :.");
  103. return 1;
  104. }
  105. }
  106. return 1;
  107. }
  108.  
  109. return 0;
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement