Guest User

Untitled

a guest
Oct 11th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.14 KB | None | 0 0
  1. if(dialogid == 6) {
  2. if(!response) return 1;
  3. if(response)
  4. {
  5. new path[40];
  6. fID = strval(inputtext);
  7. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  8. new INI:File = INI_Open(path);//open/create a file in the folder.
  9. INI_SetTag(File,"Faction Data");
  10. INI_WriteInt(File,"Id",fID);
  11. INI_Close(File);
  12. ShowPlayerDialog(playerid, 26, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of your Faction you want to create.","Okay","Cancel");
  13. }
  14. }
  15. if(dialogid == 7) {
  16. if(!response) return 1;
  17. if(response)
  18. {
  19. new path[40];
  20. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  21. new INI:File = INI_Open(path);//open/create a file in the folder.
  22. INI_SetTag(File,"Faction Data");
  23. INI_WriteString(File,"Rank1",inputtext);
  24. INI_Close(File);
  25. ShowPlayerDialog(playerid, 8, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the second lowest rank to be called.","Okay","Cancel");
  26. }
  27. }
  28. if(dialogid == 8) {
  29. if(!response) return 1;
  30. if(response)
  31. {
  32. new path[40];
  33. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  34. new INI:File = INI_Open(path);//open/create a file in the folder.
  35. INI_SetTag(File,"Faction Data");
  36. INI_WriteString(File,"Rank2",inputtext);
  37. INI_Close(File);
  38. ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the third lowest rank to be called.","Okay","Cancel");
  39. }
  40. }
  41. if(dialogid == 9) {
  42. if(!response) return 1;
  43. if(response)
  44. {
  45. new path[40];
  46. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  47. new INI:File = INI_Open(path);//open/create a file in the folder.
  48. INI_SetTag(File,"Faction Data");
  49. INI_WriteString(File,"Rank3",inputtext);
  50. INI_Close(File);
  51. ShowPlayerDialog(playerid, 10, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the forth lowest rank to be called.","Okay","Cancel");
  52. }
  53. }
  54. if(dialogid == 10) {
  55. if(!response) return 1;
  56. if(response)
  57. {
  58. new path[40];
  59. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  60. new INI:File = INI_Open(path);//open/create a file in the folder.
  61. INI_SetTag(File,"Faction Data");
  62. INI_WriteString(File,"Rank4",inputtext);
  63. INI_Close(File);
  64. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the fifth lowest rank to be called.","Okay","Cancel");
  65. }
  66. }
  67. if(dialogid == 11) {
  68. if(!response) return 1;
  69. if(response)
  70. {
  71. new path[40];
  72. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  73. new INI:File = INI_Open(path);//open/create a file in the folder.
  74. INI_SetTag(File,"Faction Data");
  75. INI_WriteString(File,"Rank5",inputtext);
  76. INI_Close(File);
  77. ShowPlayerDialog(playerid, 12, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the sixth lowest rank to be called.","Okay","Cancel");
  78. }
  79. }
  80. if(dialogid == 12) {
  81. if(!response) return 1;
  82. if(response)
  83. {
  84. new path[40];
  85. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  86. new INI:File = INI_Open(path);//open/create a file in the folder.
  87. INI_SetTag(File,"Faction Data");
  88. INI_WriteString(File,"Rank6",inputtext);
  89. INI_Close(File);
  90. ShowPlayerDialog(playerid, 13, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the forth highest rank to be called.","Okay","Cancel");
  91. }
  92. }
  93. if(dialogid == 13) {
  94. if(!response) return 1;
  95. if(response)
  96. {
  97. new path[40];
  98. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  99. new INI:File = INI_Open(path);//open/create a file in the folder.
  100. INI_SetTag(File,"Faction Data");
  101. INI_WriteString(File,"Rank7",inputtext);
  102. INI_Close(File);
  103. ShowPlayerDialog(playerid, 14, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the third highest rank to be called.","Okay","Cancel");
  104. }
  105. }
  106. if(dialogid == 14) {
  107. if(!response) return 1;
  108. if(response)
  109. {
  110. new path[40];
  111. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  112. new INI:File = INI_Open(path);//open/create a file in the folder.
  113. INI_SetTag(File,"Faction Data");
  114. INI_WriteString(File,"Rank8",inputtext);
  115. INI_Close(File);
  116. ShowPlayerDialog(playerid, 15, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the second highest rank to be called.","Okay","Cancel");
  117. }
  118. }
  119. if(dialogid == 15) {
  120. if(!response) return 1;
  121. if(response)
  122. {
  123. new path[40];
  124. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  125. new INI:File = INI_Open(path);//open/create a file in the folder.
  126. INI_SetTag(File,"Faction Data");
  127. INI_WriteString(File,"Rank9",inputtext);
  128. INI_Close(File);
  129. ShowPlayerDialog(playerid, 16, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the highest rank to be called.","Okay","Cancel");
  130. }
  131. }
  132. if(dialogid == 16) {
  133. if(!response) return 1;
  134. if(response)
  135. {
  136. new path[40];
  137. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  138. new INI:File = INI_Open(path);//open/create a file in the folder.
  139. INI_SetTag(File,"Faction Data");
  140. INI_WriteString(File,"Rank10",inputtext);
  141. INI_Close(File);
  142. ShowPlayerDialog(playerid, 17, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your lowest rank to have.","Okay","Cancel");
  143. }
  144. }
  145. if(dialogid == 17) {
  146. if(!response) return 1;
  147. if(response)
  148. {
  149. new path[40];
  150. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  151. new INI:File = INI_Open(path);//open/create a file in the folder.
  152. INI_SetTag(File,"Faction Data");
  153. INI_WriteString(File,"Rank1Skin",inputtext);
  154. INI_Close(File);
  155. ShowPlayerDialog(playerid, 18, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your second lowest rank to have.","Okay","Cancel");
  156. }
  157. }
  158. if(dialogid == 18) {
  159. if(!response) return 1;
  160. if(response)
  161. {
  162. new path[40];
  163. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  164. new INI:File = INI_Open(path);//open/create a file in the folder.
  165. INI_SetTag(File,"Faction Data");
  166. INI_WriteString(File,"Rank2Skin",inputtext);
  167. INI_Close(File);
  168. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your third lowest rank to have.","Okay","Cancel");
  169. }
  170. }
  171. if(dialogid == 19) {
  172. if(!response) return 1;
  173. if(response)
  174. {
  175. new path[40];
  176. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  177. new INI:File = INI_Open(path);//open/create a file in the folder.
  178. INI_SetTag(File,"Faction Data");
  179. INI_WriteString(File,"Rank3Skin",inputtext);
  180. INI_Close(File);
  181. ShowPlayerDialog(playerid, 20, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fourth lowest rank to have.","Okay","Cancel");
  182. }
  183. }
  184. if(dialogid == 20) {
  185. if(!response) return 1;
  186. if(response)
  187. {
  188. new path[40];
  189. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  190. new INI:File = INI_Open(path);//open/create a file in the folder.
  191. INI_SetTag(File,"Faction Data");
  192. INI_WriteString(File,"Rank4Skin",inputtext);
  193. INI_Close(File);
  194. ShowPlayerDialog(playerid, 21, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fifth lowest rank to have.","Okay","Cancel");
  195. }
  196. }
  197. if(dialogid == 21) {
  198. if(!response) return 1;
  199. if(response)
  200. {
  201. new path[40];
  202. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  203. new INI:File = INI_Open(path);//open/create a file in the folder.
  204. INI_SetTag(File,"Faction Data");
  205. INI_WriteString(File,"Rank6Skin",inputtext);
  206. INI_Close(File);
  207. ShowPlayerDialog(playerid, 22, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your fourth highest rank to have.","Okay","Cancel");
  208. }
  209. }
  210. if(dialogid == 22) {
  211. if(!response) return 1;
  212. if(response)
  213. {
  214. new path[40];
  215. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  216. new INI:File = INI_Open(path);//open/create a file in the folder.
  217. INI_SetTag(File,"Faction Data");
  218. INI_WriteString(File,"Rank7Skin",inputtext);
  219. INI_Close(File);
  220. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your third highest rank to have.","Okay","Cancel");
  221. }
  222. }
  223. if(dialogid == 23) {
  224. if(!response) return 1;
  225. if(response)
  226. {
  227. new path[40];
  228. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  229. new INI:File = INI_Open(path);//open/create a file in the folder.
  230. INI_SetTag(File,"Faction Data");
  231. INI_WriteString(File,"Rank8Skin",inputtext);
  232. INI_Close(File);
  233. ShowPlayerDialog(playerid, 24, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your second highest rank to have.","Okay","Cancel");
  234. }
  235. }
  236. if(dialogid == 24) {
  237. if(!response) return 1;
  238. if(response)
  239. {
  240. new path[40];
  241. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  242. new INI:File = INI_Open(path);//open/create a file in the folder.
  243. INI_SetTag(File,"Faction Data");
  244. INI_WriteString(File,"Rank9Skin",inputtext);
  245. INI_Close(File);
  246. ShowPlayerDialog(playerid, 25, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the skinid in which you want your highest rank to have.","Okay","Cancel");
  247. }
  248. }
  249. if(dialogid == 25) {
  250. if(!response) return 1;
  251. if(response)
  252. {
  253. new path[40];
  254. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  255. new INI:File = INI_Open(path);//open/create a file in the folder.
  256. INI_SetTag(File,"Faction Data");
  257. INI_WriteString(File,"Rank10Skin",inputtext);
  258. INI_Close(File);
  259.  
  260. }
  261. }
  262. if(dialogid == 26) {
  263. if(!response) return 1;
  264. if(response)
  265. {
  266. new path[40];
  267. format(path,sizeof(path),"/factions/%i.ini",fID);//creating the path to the folder to save the files too.
  268. new INI:File = INI_Open(path);//open/create a file in the folder.
  269. INI_SetTag(File,"Faction Data");
  270. INI_WriteString(File,"Name",inputtext);
  271. INI_Close(File);
  272. ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT,""COL_WHITE"Faction Create",""COL_WHITE"Type the name of what you want the lowest rank to be called.","Okay","Cancel");
  273. }
  274. }
  275.  
  276.  
  277. return 1;
  278. }
Advertisement
Add Comment
Please, Sign In to add comment