Guest User

Passer Code Version Menu Etape 4

a guest
Mar 11th, 2010
320
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(DKT[playerid] > 0)
  2. {
  3. if(DKT[playerid] == 1)
  4. {
  5. new idx;
  6. tmp = strtok(text, idx);
  7. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  8. {
  9. SendClientMessage(playerid, COLOR_GREEN, "Correcte");
  10. SetTimerEx("DKT3", 5000, 0, "d", playerid);
  11. return 0;
  12. }
  13. else
  14. {
  15. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  16. SetPlayerInterior(playerid, 3);
  17. GameTextForPlayer(playerid, "~r~ Echouer", 5000, 3);
  18. SendClientMessage(playerid, COLOR_LIGHTRED, "Incorrecte");
  19. TogglePlayerControllable(playerid, 1);
  20. DKT[playerid] = 0;
  21. }
  22. return 0;
  23. }
  24. else if(DKT[playerid] == 2)
  25. {
  26. new idx;
  27. tmp = strtok(text, idx);
  28. if((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  29. {
  30. SendClientMessage(playerid, COLOR_GREEN, "Correcte");
  31. SetTimerEx("DKT4", 5000, 0, "d", playerid);
  32. return 0;
  33. }
  34. else
  35. {
  36. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  37. SetPlayerInterior(playerid, 3);
  38. GameTextForPlayer(playerid, "~r~ Echouer", 5000, 3);
  39. SendClientMessage(playerid, COLOR_LIGHTRED, "Incorrecte");
  40. TogglePlayerControllable(playerid, 1);
  41. DKT[playerid] = 0;
  42. }
  43. return 0;
  44. }
  45. else if(DKT[playerid] == 3)
  46. {
  47. new idx;
  48. tmp = strtok(text, idx);
  49. if((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  50. {
  51. SendClientMessage(playerid, COLOR_GREEN, "Correcte");
  52. SetTimerEx("DKT5", 5000, 0, "d", playerid);
  53. return 0;
  54. }
  55. else
  56. {
  57. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  58. SetPlayerInterior(playerid, 3);
  59. GameTextForPlayer(playerid, "~r~ Echouer", 5000, 3);
  60. SendClientMessage(playerid, COLOR_GREEN, "Incorrecte");
  61. TogglePlayerControllable(playerid, 1);
  62. DKT[playerid] = 0;
  63. }
  64. return 0;
  65. }
  66. else if(DKT[playerid] == 4)
  67. {
  68. new idx;
  69. tmp = strtok(text, idx);
  70. if((strcmp("2/3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2/3")))
  71. {
  72. SendClientMessage(playerid, COLOR_GREEN, "Correcte");
  73. SetTimerEx("DKT6", 5000, 0, "d", playerid);
  74. return 0;
  75. }
  76. else
  77. {
  78. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  79. SetPlayerInterior(playerid, 3);
  80. GameTextForPlayer(playerid, "~r~ Echouer", 5000, 3);
  81. SendClientMessage(playerid, COLOR_LIGHTRED, "Incorrecte");
  82. TogglePlayerControllable(playerid, 1);
  83. DKT[playerid] = 0;
  84. }
  85. return 0;
  86. }
  87. else if(DKT[playerid] == 5)
  88. {
  89. new idx;
  90. tmp = strtok(text, idx);
  91. if((strcmp("1/4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1/4")))
  92. {
  93. SendClientMessage(playerid, COLOR_GREEN, "Correcte");
  94. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  95. SetPlayerInterior(playerid, 3);
  96. DKT[playerid] = 0;
  97. SendClientMessage(playerid, COLOR_LIGHTRED, "___________________________________");
  98. SendClientMessage(playerid, COLOR_YELLOW, "Fin du test du code de la route");
  99. SendClientMessage(playerid, COLOR_YELLOW, "L'instructeur vous prépare votre diplôme (7secondes)");
  100. SetTimerEx("DrivingTest1", 7000, 0, "d", playerid);
  101. GameTextForPlayer(playerid, "~g~ Code de la route : Recu", 5000, 3);
  102. SendClientMessage(playerid, COLOR_YELLOW, "Soyez prudent sur les routes !!! ");
  103. TogglePlayerControllable(playerid, 1);
  104. PlayerPlayMusic(playerid);
  105. pTest[playerid] = 0;
  106. SafeGivePlayerMoney(playerid, -500);
  107. PlayerInfo[playerid][pCarLic] = 1;
  108. }
  109. else
  110. {
  111. SetPlayerPos(playerid, 1492.9873,1304.9100,1093.2891);
  112. SetPlayerInterior(playerid, 3);
  113. GameTextForPlayer(playerid, "~r~Code de la route : Echouer", 5000, 3);
  114. SendClientMessage(playerid, COLOR_LIGHTRED, "Mauvais, recommencez !");
  115. TogglePlayerControllable(playerid, 1);
  116. DKT[playerid] = 0;
  117. }
  118. return 0;
  119. }
  120. return 0;
  121. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×