Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.48 KB | None | 0 0
  1.     if(strcmp(cmdtext, "/passercode",true)==0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.                 if(PlayerToPoint(5.0, playerid, -2027.1587,-114.5045,1035.1719)) // DMV
  6.                 {
  7.                     if(PlayerInfo[playerid][pLevel] > 0)
  8.                     {
  9.                         if(PlayerInfo[playerid][pCarLic] < 1)
  10.                         {
  11.                             if(IsAMemberConnected(11))
  12.                             {
  13.                                SendClientMessage(playerid,COLOR_GREY,"Instructeur de Disponible /instructeur");
  14.                                return 1;
  15.                             else
  16.                             {
  17.                                 if(pTest[playerid] == 0)
  18.                                 {
  19.                                     if(GetPlayerMoney(playerid) >= 500)
  20.                                     {
  21.                                         SetPlayerInterior(playerid,3);
  22.                                         TogglePlayerControllable(playerid, 0);
  23.                                         GameTextForPlayer(playerid, "~r~Suivez les instructions !",5000,3);
  24.                                         pTest[playerid] = 1;
  25.                                        /* ClearChatbox(playerid, 8);
  26.                                         SendClientMessage(playerid, COLOR_LIGHTRED, "The Information Outline Course");
  27.                                         SendClientMessage(playerid, COLOR_YELLOW, " ");
  28.                                         SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the Information Outline course. In this course you");
  29.                                         SendClientMessage(playerid, COLOR_YELLOW, "will learn about the things that will be tested later on.");
  30.                                         SendClientMessage(playerid, COLOR_YELLOW, " "); */
  31.                                         IO1(playerid);
  32.                                         //SetTimerEx("IO1", 10000, 0, "d", playerid);
  33.                                         SetTimerEx("IO2", 20000, 0, "d", playerid);
  34.                                         SetTimerEx("IO3", 40000, 0, "d", playerid);
  35.                                         SetTimerEx("IO4", 60000, 0, "d", playerid);
  36.                                         SetTimerEx("IO5", 80000, 0, "d", playerid);
  37.                                         SetTimerEx("IO6", 60000, 0, "d", playerid);
  38.                                         SetTimerEx("IO7", 100000, 0, "d", playerid);
  39.                                     }
  40.                                     else
  41.                                     {
  42.                                         SendClientMessage(playerid, COLOR_GREY, "Vous n'avez pas 500$ assez d'argent pour passer le test!");
  43.                                         return 1;
  44.                                     }
  45.                                 }
  46.                                 else SendClientMessage(playerid, COLOR_RED, "Vous êtes déjà en train de passer votre permid de conduire");
  47.                              return 1;
  48.                             }
  49.                         }
  50.                         else
  51.                         {
  52.                             SendClientMessage(playerid, COLOR_GREY, "Vous avez déjà votre permis de conduire !");
  53.                             return 1;
  54.                         }
  55.                     }
  56.                     else
  57.                     {
  58.                         SendClientMessage(playerid, COLOR_GREY, "Vous n'avez pas le niveau requis.");
  59.                         return 1;
  60.                     }
  61.                 }
  62.                 return 1;
  63.         }
  64.         return 1;
  65.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement