Guest User

3DText_System_by_ShOoBy

a guest
Apr 19th, 2011
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. /*
  2. +++++++++++++++++++++++++++++++++++++++++++++++++++++
  3. # SSSSS SS SS SSSS SSSS SSSSSS SS SS #
  4. # SS SS SS SS SS SS SS SS SS SS SS SS #
  5. # SS SS SS SS SS SS SS SS SS SS SS #
  6. # SS SSSSSS SS SS SS SS SSSS SSSS #
  7. # SSSSSS SS SS SS SS SS SS SS SS SS #
  8. # SS SS SS SS SS SS SS SS SS SS #
  9. # SS SS SS SS SS SS SS SS SS SS SS #
  10. # SSSSS SS SS SSSS SSSS SSSSS SSSS #
  11. #:::::::::::::::::::::::::::::::::::::::::::::::::::#
  12. +++++++++++++++++++++++++++++++++++++++++++++++++++++
  13.  
  14. Star Minigame by ShOoBy.
  15. Don't change any Credits.
  16. ShOoBy's Scripts™ © 2011
  17. */
  18.  
  19. //--------------------------------------------------------------------------------------------------------------
  20.  
  21. #define FILTERSCRIPT
  22.  
  23. #include <a_samp>
  24.  
  25. #if defined FILTERSCRIPT
  26.  
  27. //--------------------------------------------------------------------------------------------------------------
  28.  
  29. #define COLOR_RED 0xFF0000AA
  30. #define COLOR_GREY 0xAFAFAFAA
  31. #define COLOR_GREEN 0x33AA33AA
  32. #define COLOR_BRIGHTRED 0xFF0000AA
  33. #define COLOR_YELLOW 0xFFFF00AA
  34. #define COLOR_PINK 0xFF66FFAA
  35. #define COLOR_BLUE 0x3A47DEFF
  36. #define COLOR_TAN 0xBDB76BAA
  37. #define COLOR_PURPLE 0x800080AA
  38. #define COLOR_WHITE 0xFFFFFFAA
  39. #define COLOR_LIGHTBLUE 0x33CCFFAA
  40. #define COLOR_ORANGE 0xFF9900AA
  41. #define COLOR_INDIGO 0x4B00B0AA
  42. #define COLOR_BLACK 0x00000000
  43. #define COLOR_DARKGREY 0x696969FF
  44.  
  45. new color[MAX_PLAYERS];
  46.  
  47. //-----------------------------------------------------------------------------------------------------------
  48.  
  49. public OnFilterScriptInit()
  50. {
  51. print("\n------------------------------------------");
  52. print(" ShOoBy's 3D Text System Loaded Succesfully ");
  53. print("------------------------------------------\n");
  54. return 1;
  55. }
  56.  
  57. public OnFilterScriptExit()
  58. {
  59. return 1;
  60. }
  61.  
  62. #else
  63.  
  64. main()
  65. {
  66. print("\n----------------------------------");
  67. print(" by ShOoBy ");
  68. print("----------------------------------\n");
  69. }
  70.  
  71. #endif
  72.  
  73. public OnPlayerCommandText(playerid, cmdtext[])
  74. {
  75.  
  76. //--------------------------------------------------TEXT COMMAND--------------------------------------------
  77.  
  78. if (strcmp("/text", cmdtext, true, 10) == 0)
  79. {
  80. if(IsPlayerAdmin(playerid)) {
  81. ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamic 3D Text Creator","{88FC04}Do you want to put a\n{04F4FC}3D Text{88FC04} in this location?","Yes","No");
  82. }
  83. else
  84. {
  85. SendClientMessage(playerid,COLOR_RED,"You are not an Admin.");
  86. }
  87. return 1;
  88. }
  89.  
  90. //-----------------------------------------------------CREDITS----------------------------------------------
  91.  
  92. if (strcmp("/tcredits", cmdtext, true, 10) == 0)
  93. {
  94. ShowPlayerDialog(playerid,6144,DIALOG_STYLE_MSGBOX,"{FE8C00}ShOoBy's 3D Text System Credits","{0400FE}Made by {09FE00}ShOoBy{0400FE}, the best scripter","Ok","");
  95. return 1;
  96. }
  97. return 0;
  98. }
  99.  
  100.  
  101. //-------------------------------------------------------------------------------------------------------------
  102.  
  103. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  104. {
  105.  
  106.  
  107. if(dialogid == 3335)
  108. {
  109. new Float:x,Float:y,Float:z;
  110. GetPlayerPos(playerid,x,y,z);
  111. if(response)
  112. {
  113. if(color[playerid] == 1)
  114. {
  115. Create3DTextLabel(inputtext,COLOR_RED,x,y,z,30.0,0,1);
  116. }
  117. if(color[playerid] == 2)
  118. {
  119. Create3DTextLabel(inputtext,COLOR_BLUE,x,y,z,30.0,0,1);
  120. }
  121. if(color[playerid] == 3)
  122. {
  123. Create3DTextLabel(inputtext,0x66CC00FF,x,y,z,30.0,0,1);
  124. }
  125. if(color[playerid] == 4)
  126. {
  127. Create3DTextLabel(inputtext,COLOR_YELLOW,x,y,z,30.0,0,1);
  128. }
  129. if(color[playerid] == 5)
  130. {
  131. Create3DTextLabel(inputtext,COLOR_ORANGE,x,y,z,30.0,0,1);
  132. }
  133. if(color[playerid] == 6)
  134. {
  135. Create3DTextLabel(inputtext,0xFF66FFFF,x,y,z,30.0,0,1);
  136. }
  137. if(color[playerid] == 7)
  138. {
  139. Create3DTextLabel(inputtext,COLOR_GREY,x,y,z,30.0,0,1);
  140. }
  141. if(color[playerid] == 8)
  142. {
  143. Create3DTextLabel(inputtext,COLOR_INDIGO,x,y,z,30.0,0,1);
  144. }
  145. }
  146. }
  147.  
  148. //------------------------------------------------------------------------------------------------------------
  149.  
  150. if(dialogid == 3333)
  151. {
  152. if(response) return ShowPlayerDialog(playerid,3334,DIALOG_STYLE_LIST,"Text's Color","{FA0404}Red\n{0704FA}Blue\n{2CF11A}Green\n{E2FF09}Yellow\n{FF4101}Orange\n{E97AFD}Pink\n{7A7A7A}Grey\n{330099}Indigo","Select","Cancel");
  153. else SendClientMessage(playerid,COLOR_BLUE,"Text haven't been placed");
  154. }
  155.  
  156. //------------------------------------------------------------------------------------------------------------
  157.  
  158. if(dialogid == 3334)
  159. {
  160. if(response)
  161. {
  162. switch(listitem)
  163. {
  164. case 0:
  165. {
  166. color[playerid] = 1;
  167. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  168. }
  169. case 1:
  170. {
  171. color[playerid]=2;
  172. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  173. }
  174. case 2:
  175. {
  176. color[playerid]=3;
  177. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  178. }
  179. case 3:
  180. {
  181. color[playerid]=4;
  182. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  183. }
  184. case 4:
  185. {
  186. color[playerid]=5;
  187. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  188. }
  189. case 5:
  190. {
  191. color[playerid]=6;
  192. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  193. }
  194. case 6:
  195. {
  196. color[playerid]=7;
  197. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  198. }
  199. case 7:
  200. {
  201. color[playerid]=8;
  202. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  203. }
  204. case 8:
  205. {
  206. color[playerid]=9;
  207. ShowPlayerDialog(playerid,3335,DIALOG_STYLE_INPUT,"{F8FC04}Text","{04FC8C}Please write in this box the {F8FC04}Text{04FC8C}\nthat you want to place here","INPUT","");
  208. }
  209. }
  210. }
  211. }
  212. return 1;
  213. }
  214.  
  215. //-------------------------------------------------------THE END--------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment