Advertisement
Guest User

Untitled

a guest
Feb 14th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.08 KB | None | 0 0
  1. if(RegistrationStep[playerid] == 10)
  2. {
  3. new idx2;
  4. tmp = strtok(text, idx2);
  5. if((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  6. {
  7. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. RP significa RolePlay!");
  8. RegistrationStep[playerid] = 11;
  9. TogglePlayerControllable(playerid,0);
  10. RisposteSbagliate[playerid]++;
  11. if(RisposteSbagliate[playerid] >= 4)
  12. {
  13. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  14. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  15. Kick(playerid);
  16. return 0;
  17. }
  18. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 2 ____|");
  19. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cosa significano Chat IC e chat OOC: (scrivi solo il numero della risposta corretta)");
  20. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) In Character e Out of Character");
  21. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) In Crecker e Out of Cherce");
  22. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Irc Charachter e Other or Charcther");
  23. return 0;
  24. }
  25. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  26. {
  27. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. RP significa RolePlay!");
  28. RegistrationStep[playerid] = 11;
  29. TogglePlayerControllable(playerid,0);
  30. RisposteSbagliate[playerid]++;
  31. if(RisposteSbagliate[playerid] >= 4)
  32. {
  33. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  34. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  35. Kick(playerid);
  36. return 0;
  37. }
  38. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 2 ____|");
  39. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cosa significano Chat IC e chat OOC: (scrivi solo il numero della risposta corretta)");
  40. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) In Character e Out of Character");
  41. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) In Crecker e Out of Cherce");
  42. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Irc Charachter e Other or Charcther");
  43. return 0;
  44. }
  45. if((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  46. {
  47. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta corretta.");
  48. RegistrationStep[playerid] = 11;
  49. TogglePlayerControllable(playerid,0);
  50. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 2 ____|");
  51. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cosa significano Chat IC e chat OOC: (scrivi solo il numero della risposta corretta)");
  52. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) In Character e Out of Character");
  53. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) In Crecker e Out of Cherce");
  54. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Irc Charachter e Other or Charcther");
  55. return 0;
  56. }
  57. else
  58. {
  59. SendClientMessage(playerid, COLOR_RED, "[INFO:] Devi rispondere scrivendo 1, 2 o 3!");
  60. }
  61. return 0;
  62. }
  63. if(RegistrationStep[playerid] == 11)
  64. {
  65. new idx2;
  66. tmp = strtok(text, idx2);
  67. if((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  68. {
  69. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta corretta.");
  70. RegistrationStep[playerid] = 12;
  71. TogglePlayerControllable(playerid,0);
  72. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 3 ____|");
  73. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cos'è la guida No Roleplay? (scrivi solo il numero della risposta corretta)");
  74. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) Guidare per la giusta corsia");
  75. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Guidare senza rispettare le regole stradali");
  76. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Guidare con il dito medio da fuori");
  77. return 0;
  78. }
  79. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  80. {
  81. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. IC significa In Character e OOC Out of Character!");
  82. RegistrationStep[playerid] = 12;
  83. TogglePlayerControllable(playerid,0);
  84. RisposteSbagliate[playerid]++;
  85. if(RisposteSbagliate[playerid] >= 4)
  86. {
  87. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  88. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  89. Kick(playerid);
  90. return 0;
  91. }
  92. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 3 ____|");
  93. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cos'è la guida No Roleplay? (scrivi solo il numero della risposta corretta)");
  94. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) Guidare per la giusta corsia");
  95. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Guidare senza rispettare le regole stradali");
  96. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Guidare con il dito medio da fuori");
  97. return 0;
  98. }
  99. if((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  100. {
  101. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. IC significa In Character e OOC Out of Character!");
  102. RegistrationStep[playerid] = 12;
  103. TogglePlayerControllable(playerid,0);
  104. RisposteSbagliate[playerid]++;
  105. if(RisposteSbagliate[playerid] >= 4)
  106. {
  107. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  108. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  109. Kick(playerid);
  110. return 0;
  111. }
  112. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 3 ____|");
  113. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Cos'è la guida No Roleplay? (scrivi solo il numero della risposta corretta)");
  114. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) Guidare per la giusta corsia");
  115. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Guidare senza rispettare le regole stradali");
  116. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) Guidare con il dito medio da fuori");
  117. return 0;
  118. }
  119. else
  120. {
  121. SendClientMessage(playerid, COLOR_RED, "[INFO:] Devi rispondere scrivendo 1, 2 o 3!");
  122. }
  123. return 0;
  124. }
  125. if(RegistrationStep[playerid] == 12)
  126. {
  127. new idx2;
  128. tmp = strtok(text, idx2);
  129. if((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  130. {
  131. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. Guida No RolePlay significa guidare senza rispettare il codice della strada!");
  132. RegistrationStep[playerid] = 13;
  133. TogglePlayerControllable(playerid,0);
  134. RisposteSbagliate[playerid]++;
  135. if(RisposteSbagliate[playerid] >= 4)
  136. {
  137. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  138. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  139. Kick(playerid);
  140. return 0;
  141. }
  142. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 4 ____|");
  143. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Quali tra questi è una pena di Ban: (scrivi solo il numero della risposta corretta)");
  144. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) DM");
  145. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Cheat");
  146. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) CarKill");
  147. return 0;
  148. }
  149. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  150. {
  151. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta corretta.");
  152. RegistrationStep[playerid] = 13;
  153. TogglePlayerControllable(playerid,0);
  154. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 4 ____|");
  155. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Quali tra questi è una pena di Ban: (scrivi solo il numero della risposta corretta)");
  156. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) DM");
  157. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Cheat");
  158. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) CarKill");
  159. return 0;
  160. }
  161. if((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  162. {
  163. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. Guida No RolePlay significa guidare senza rispettare il codice della strada!");
  164. RegistrationStep[playerid] = 13;
  165. TogglePlayerControllable(playerid,0);
  166. RisposteSbagliate[playerid]++;
  167. if(RisposteSbagliate[playerid] >= 4)
  168. {
  169. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  170. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  171. Kick(playerid);
  172. return 0;
  173. }
  174. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 4 ____|");
  175. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Quali tra questi ha come pena il Ban: (scrivi solo il numero della risposta corretta)");
  176. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) DM");
  177. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) Cheat");
  178. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) CarKill");
  179. return 0;
  180. }
  181. else
  182. {
  183. SendClientMessage(playerid, COLOR_RED, "[INFO:] Devi rispondere scrivendo 1, 2 o 3!");
  184. }
  185. return 0;
  186. }
  187. if(RegistrationStep[playerid] == 13)
  188. {
  189. new idx2;
  190. tmp = strtok(text, idx2);
  191. if((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  192. {
  193. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. Chi usa cheat viene bannato!");
  194. RegistrationStep[playerid] = 14;
  195. TogglePlayerControllable(playerid,0);
  196. RisposteSbagliate[playerid]++;
  197. if(RisposteSbagliate[playerid] >= 4)
  198. {
  199. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  200. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  201. Kick(playerid);
  202. return 0;
  203. }
  204. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 5 ____|");
  205. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Qual'è il comando per contattare gli admin? (scrivi solo il numero della risposta corretta)");
  206. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) /admin");
  207. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) /report");
  208. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) /aiuto");
  209. return 0;
  210. }
  211. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  212. {
  213. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta corretta.");
  214. RegistrationStep[playerid] = 14;
  215. TogglePlayerControllable(playerid,0);
  216. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 5 ____|");
  217. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Qual'è il comando per contattare gli admin? (scrivi solo il numero della risposta corretta)");
  218. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) /admin");
  219. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) /report");
  220. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) /aiuto");
  221. return 0;
  222. }
  223. if((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  224. {
  225. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] Risposta sbagliata. Chi usa cheat viene bannato!");
  226. RegistrationStep[playerid] = 14;
  227. TogglePlayerControllable(playerid,0);
  228. RisposteSbagliate[playerid]++;
  229. if(RisposteSbagliate[playerid] >= 4)
  230. {
  231. SendClientMessage(playerid, COLOR_RED, "Hai superato il limite delle risposte sbagliate! Sei stato quindi kickato!");
  232. SendClientMessage(playerid, COLOR_RED, "Rientra nel server e riprova, facendo più attenzione al tutorial.");
  233. Kick(playerid);
  234. return 0;
  235. }
  236. SendClientMessage(playerid, COLOR_DARKRED, "|____ Quesito n° 5 ____|");
  237. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Qual'è il comando per contattare gli admin? (scrivi solo il numero della risposta corretta)");
  238. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "1) /admin");
  239. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "2) /report");
  240. SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3) /aiuto");
  241. return 0;
  242. }
  243. else
  244. {
  245. SendClientMessage(playerid, COLOR_RED, "[INFO:] Devi rispondere scrivendo 1, 2 o 3!");
  246. }
  247. return 0;
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement