Advertisement
Guest User

Untitled

a guest
May 24th, 2012
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. /*
  2. **********************************************************************************************
  3. **********************************************************************************************
  4. **********************************************************************************************
  5. **********************************************************************************************
  6. ******ooooooooooooo************oooo******************ooooooooooooo************ooooooooooooo***
  7. ******ooooooooooooo***********oo**oo*****************ooooooooooooo************ooooooooooooo***
  8. ******oo*********************oo****oo****************oo***********************oo**************
  9. ******oo********************oo******oo***************oo***********************oo**************
  10. ******ooooooooooo**********oo********oo**************ooooooooooo**************ooooooooooo*****
  11. ******ooooooooooo*********oo**********oo*************ooooooooooo**************ooooooooooo*****
  12. ******oo*****************oooooooooooooooo************oo***********************oo**************
  13. ******oo****************oooooooooooooooooo***********oo***********************oo**************
  14. ******oo***************oo****************oo**********oo***********************oo**************
  15. ******oo**************oo******************oo*********oo***********************oo**************
  16. ******oo*************oo********************oo********oo***********************oo**************
  17. **********************************************************************************************
  18. **********************************************************************************************
  19. **********************************************************************************************
  20. Created By Faff (Fabio Dicola), Dont Remove Credits!
  21. */
  22.  
  23.  
  24. /* INCLUDES */
  25. #include <a_samp>
  26. /* INCLUDES */
  27.  
  28. /* COLOR DEFINES */
  29. #define GREEN 0x33AA33AA
  30. #define RED 0xAA3333AA
  31. #define YELLOW 0xFFFF00AA
  32. #define WHITE 0xFFFFFFAA
  33. #define BLUE 0x0000BBAA
  34. #define GOLD 0xB8860BAA
  35. #define PINK 0xFFC0CBAA
  36. #define PURPLE 0x800080FF
  37. /* COLOR DEFINES */
  38.  
  39. /* FS DEFINE */
  40. #if defined FILTERSCRIPT
  41. /* FS DEFINE */
  42.  
  43.  
  44.  
  45. public OnFilterScriptInit()
  46. {
  47. print("\n--------------------------------------");
  48. print("PlayerColor-system By Faff! Buyable!");
  49. print("--------------------------------------\n");
  50. return 1;
  51. }
  52.  
  53. public OnFilterScriptExit()
  54. {
  55. return 1;
  56. }
  57.  
  58. #else
  59.  
  60.  
  61. #endif
  62.  
  63.  
  64.  
  65. public OnPlayerCommandText(playerid, cmdtext[])
  66. {
  67. if (strcmp("/plcolor", cmdtext, true, 10) == 0)
  68. {
  69. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Choose Ur Player Color", "White\nGreen\nRed\nYellow\nBlue\nPurple\nGold\nPink", "Confirm", "Exit");
  70. new string[64], pName[MAX_PLAYER_NAME];
  71. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  72. format(string,sizeof string,"%s Used player color system by Faff!",pName);
  73. SendClientMessageToAll(0xFFFFFFAA,string);
  74.  
  75.  
  76. return 1;
  77. }
  78. if (strcmp("/plhelp", cmdtext, true, 10) == 0)
  79. {
  80. SendClientMessage(playerid, RED, "Hello, want to use the plcolor system created by faff? use /plcolor! check /plcredits to!");
  81. return 1;
  82. }
  83. if (strcmp("/plcredits", cmdtext, true, 10) == 0)
  84. {
  85. SendClientMessage(playerid, WHITE, "-----------------------------------------------------------------");
  86. SendClientMessage(playerid, WHITE, "CREDITS----*******FAFF FABIO DICOLA*******----CREDITS");
  87. SendClientMessage(playerid, GREEN, "Name: Player Color System");
  88. SendClientMessage(playerid, GREEN, "Creator: Faff (Fabio Dicola)");
  89. SendClientMessage(playerid, GREEN, "Version: v0.1");
  90. SendClientMessage(playerid, GREEN, "Created on: 24/05/2012");
  91. SendClientMessage(playerid, GREEN, "Released: 24/05/2012");
  92. SendClientMessage(playerid, GREEN, "Dont Release Tis as u own! And Dont remove the credits!");
  93. SendClientMessage(playerid, WHITE, "-----------------------------------------------------------------");
  94. return 1;
  95. }
  96. return 0;
  97. }
  98.  
  99.  
  100. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  101. {
  102. if(dialogid == 5)
  103. {
  104. if(response)
  105. {
  106. new string[128];
  107. new message[256+1];
  108. if(listitem == 0)
  109. {
  110. format(string, sizeof(string), "You got now a WHITE name!! !!system CREATED BY FAFF!!");
  111. SendClientMessageToAll(GREEN, string);
  112. SetPlayerColor(playerid, WHITE);
  113. }
  114. if(listitem == 1)
  115. {
  116. format(string, sizeof(string), "You got now a GREEN name!! !!system CREATED BY FAFF!!");
  117. SendClientMessage(playerid, 0xFFFFFFFF, message);
  118. SetPlayerColor(playerid, GREEN);
  119. return 1;
  120. }
  121. if(listitem == 2)
  122. {
  123. format(string, sizeof(string), "You got now a RED name!! !!system CREATED BY FAFF!!");
  124. SendClientMessageToAll(GREEN, string);
  125. SetPlayerColor(playerid, RED);
  126. return 1;
  127. }
  128. if(listitem == 3)
  129. {
  130. format(string, sizeof(string), "You got now a YELLOW name!! !!system CREATED BY FAFF!!");
  131. SendClientMessageToAll(GREEN, string);
  132. SetPlayerColor(playerid, YELLOW);
  133. return 1;
  134. }
  135. if(listitem == 4)
  136. {
  137. format(string, sizeof(string), "You got now a BLUE name!! !!system CREATED BY FAFF!!");
  138. SendClientMessageToAll(GREEN, string);
  139. SetPlayerColor(playerid, BLUE);
  140. return 1;
  141. }
  142. if(listitem == 5)
  143. {
  144. format(string, sizeof(string), "You got now a PURPLE name!! !!system CREATED BY FAFF!!");
  145. SendClientMessageToAll(GREEN, string);
  146. SetPlayerColor(playerid, PURPLE);
  147. return 1;
  148. }
  149. if(listitem == 6)
  150. {
  151. format(string, sizeof(string), "You got now a GOLD name!! !!system CREATED BY FAFF!!");
  152. SendClientMessageToAll(GREEN, string);
  153. SetPlayerColor(playerid, GOLD);
  154. return 1;
  155. }
  156. if(listitem == 7)
  157. {
  158. format(string, sizeof(string), "You got now a PINK name!! !!system CREATED BY FAFF!!");
  159. SendClientMessageToAll(GREEN, string);
  160. SetPlayerColor(playerid, PINK);
  161. return 1;
  162. }
  163. }
  164. }
  165. return 1;
  166. }
  167.  
  168.  
  169.  
  170. public OnPlayerConnect(playerid)
  171. {
  172. new string[128];
  173. format(string, sizeof(string), "This server use Player color system by faff");
  174. SendClientMessageToAll(GREEN, string);
  175. return 1;
  176. }
  177.  
  178. /*
  179. **********************************************************************************************
  180. **********************************************************************************************
  181. **********************************************************************************************
  182. **********************************************************************************************
  183. ******ooooooooooooo************oooo******************ooooooooooooo************ooooooooooooo***
  184. ******ooooooooooooo***********oo**oo*****************ooooooooooooo************ooooooooooooo***
  185. ******oo*********************oo****oo****************oo***********************oo**************
  186. ******oo********************oo******oo***************oo***********************oo**************
  187. ******ooooooooooo**********oo********oo**************ooooooooooo**************ooooooooooo*****
  188. ******ooooooooooo*********oo**********oo*************ooooooooooo**************ooooooooooo*****
  189. ******oo*****************oooooooooooooooo************oo***********************oo**************
  190. ******oo****************oooooooooooooooooo***********oo***********************oo**************
  191. ******oo***************oo****************oo**********oo***********************oo**************
  192. ******oo**************oo******************oo*********oo***********************oo**************
  193. ******oo*************oo********************oo********oo***********************oo**************
  194. **********************************************************************************************
  195. **********************************************************************************************
  196. **********************************************************************************************
  197. Created By Faff (Fabio Dicola), Dont Remove Credits!
  198. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement