Guest User

Cedimedi

a guest
Oct 11th, 2009
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1.  
  2.  
  3. // Namecolor Changer ,__NNN_ N) ,N. NN ,N)
  4. // by JN" N) NN
  5. // (N` _N""4L _NF""LN) NN (N_F"NL_F"NN. _N""NL _NF"4LNN NN
  6. // NN (N` NL JN` �N) NN (N) N) NL (N NL JN` �NN NN
  7. // Do not remove 4N. NN"""""" NN N) NN (N) N) NN NN"""""" NN NN NN
  8. // credits. 4N_ (N_ (N_ ,N) NN (N) N) NN (N_ (N_ ,NN NN
  9. // �"4NNN" �"NNN" �"NN"`() NN (N) N) NN �"4NN"` �"NN""(N NN
  10.  
  11.  
  12.  
  13. //Includes
  14. #include <a_samp>
  15.  
  16. //Dialog ID
  17. new dialog = 1; // Dialog ID (You can change it)
  18.  
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. print("\n--------------------------------------");
  23. print("Successfully loaded Cedimedi's Namecolor Changer");
  24. print("--------------------------------------\n");
  25. return 1;
  26. }
  27.  
  28. public OnFilterScriptExit()
  29. {
  30. print("\n--------------------------------------");
  31. print("Successfully unloaded Cedimedi's Namecolor Changer");
  32. print("--------------------------------------\n");
  33. return 1;
  34. }
  35.  
  36. public OnPlayerCommandText(playerid, cmdtext[])
  37. {
  38. if(!strcmp(cmdtext,"/changecolor",true))
  39. {
  40. ShowPlayerDialog( playerid, dialog, DIALOG_STYLE_LIST, "Choose a color for your name:", "Green\nWhite\nRed\nOrange\nBlue\nViolet\nYellow\nCrimson\nOlivegreen\nFuchsania\nLimegreen\nBrown\nGrey", "Select", "Cancel" );
  41. return 1;
  42. }
  43. return 0;
  44. }
  45.  
  46.  
  47. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  48. {
  49. if(dialogid == dialog)
  50. {
  51. if(response)
  52. {
  53. if(listitem == 0)
  54. {
  55. SetPlayerColor(playerid,0x008000FF);
  56. SendClientMessage(playerid,0x008000FF, "The color of your name has been set to green.");
  57. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  58. }
  59. if(listitem == 1)
  60. {
  61. SetPlayerColor(playerid,0xF8F8FFFF);
  62. SendClientMessage(playerid,0xF8F8FFFF, "The color of your name has been set to white.");
  63. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  64. }
  65. if(listitem == 2)
  66. {
  67. SetPlayerColor(playerid,0xFF0000FF);
  68. SendClientMessage(playerid,0xFF0000FF, "The color of your name has been set to red.");
  69. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  70. }
  71. if(listitem == 3)
  72. {
  73. SetPlayerColor(playerid,0xFFA500FF);
  74. SendClientMessage(playerid,0xFFA500FF, "The color of your name has been set to orange.");
  75. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  76. }
  77. if(listitem == 4)
  78. {
  79. SetPlayerColor(playerid,0x0000FFFF);
  80. SendClientMessage(playerid,0x0000FFFF, "The color of your name has been set to blue.");
  81. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  82. }
  83. if(listitem == 5)
  84. {
  85. SetPlayerColor(playerid,0x9400D3FF);
  86. SendClientMessage(playerid,0x9400D3FF, "The color of your name has been set to violet.");
  87. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  88. }
  89. if(listitem == 6)
  90. {
  91. SetPlayerColor(playerid,0xFFFF00FF);
  92. SendClientMessage(playerid,0xFFFF00FF, "The color of your name has been set to yellow.");
  93. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  94. }
  95. if(listitem == 7)
  96. {
  97. SetPlayerColor(playerid,0xDC143CFF);
  98. SendClientMessage(playerid,0xDC143CFF, "The color of your name has been set to crimson.");
  99. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  100. }
  101. if(listitem == 8)
  102. {
  103. SetPlayerColor(playerid,0x556B2FFF);
  104. SendClientMessage(playerid,0x556B2FFF, "The color of your name has been set to olivegreen.");
  105. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  106. }
  107. if(listitem == 9)
  108. {
  109. SetPlayerColor(playerid,0xFF00FFFF);
  110. SendClientMessage(playerid,0xFF00FFFF, "The color of your name has been set to fuchsania.");
  111. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  112. }
  113. if(listitem == 10)
  114. {
  115. SetPlayerColor(playerid,0x32CD32FFF);
  116. SendClientMessage(playerid,0x32CD32FF, "The color of your name has been set to limegreen.");
  117. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  118. }
  119. if(listitem == 11)
  120. {
  121. SetPlayerColor(playerid,0x8B4513FF);
  122. SendClientMessage(playerid,0x8B4513FF, "The color of your name has been set to brown.");
  123. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  124. }
  125. if(listitem == 12)
  126. {
  127. SetPlayerColor(playerid,0x696969FF);
  128. SendClientMessage(playerid,0x696969FF, "The color of your name has been set to grey.");
  129. PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  130. }
  131. }
  132. }
  133. return 1;
  134. }
  135.  
Advertisement
Add Comment
Please, Sign In to add comment