Guest User

Untitled

a guest
Dec 30th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.79 KB | None | 0 0
  1. new checkas[13];
  2.  
  3. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  4. {
  5.     if(checkpointid == checkas[0])
  6.     {
  7.         checkas[1] = CreateDynamicCP(-3961.1807, -1690.8093, 4.7548, 1, -1, -1, playerid, 100);
  8.         SendClientMessage(playerid, ZALIA, "...");
  9.         ShowPlayerDialog(playerid, DIALOG_LALALA1, DIALOG_STYLE_MSGBOX, "0/0", "...", "Supratau", "");
  10.         Timer(playerid);
  11.         TimeM = 3;
  12.         TimeS = 0;
  13.         Time = SetTimer("Timer", 1000, true);
  14.         PlayerTextDrawShow(playerid, textdraw[playerid]);
  15.     }
  16.     if(checkpointid == checkas[1])
  17.     {
  18.         checkas[2] = CreateDynamicCP(-3988.7224, -1690.4630, 4.7548, 1, -1, -1, playerid, 100);
  19.         ShowPlayerDialog(playerid, DIALOG_LALALA2, DIALOG_STYLE_MSGBOX, "1/10", "...", "Supratau", "");
  20.     }
  21.     if(checkpointid == checkas[2])
  22.     {
  23.         checkas[3] = CreateDynamicCP(-4015.1846, -1706.1989, 4.7548, 1, -1, -1, playerid, 100);
  24.         ShowPlayerDialog(playerid, DIALOG_LALALA3, DIALOG_STYLE_MSGBOX, "2/10", "...", "Supratau", "");
  25.     }
  26.     if(checkpointid == checkas[3])
  27.     {
  28.         checkas[4] = CreateDynamicCP(-3987.6333, -1754.9879, 4.7548, 1, -1, -1, playerid, 100);
  29.         ShowPlayerDialog(playerid, DIALOG_LALALA4, DIALOG_STYLE_MSGBOX, "3/10", "...", "Supratau", "");
  30.     }
  31.     if(checkpointid == checkas[4])
  32.     {
  33.         checkas[5] = CreateDynamicCP(-4002.5193, -1728.8728, 4.7548, 1, -1, -1, playerid, 100);
  34.         ShowPlayerDialog(playerid, DIALOG_LALALA5, DIALOG_STYLE_MSGBOX, "4/10", "...", "Supratau", "");
  35.     }
  36.     if(checkpointid == checkas[5])
  37.     {
  38.         checkas[6] = CreateDynamicCP(-4027.2124, -1755.3657, 4.7548, 1, -1, -1, playerid, 100);
  39.         ShowPlayerDialog(playerid, DIALOG_LALALA6, DIALOG_STYLE_MSGBOX, "5/10", "...", "Supratau", "");
  40.     }
  41.     if(checkpointid == checkas[6])
  42.     {
  43.         checkas[7] = CreateDynamicCP(-4037.5356, -1738.5569, 4.7548, 1, -1, -1, playerid, 100);
  44.         ShowPlayerDialog(playerid, DIALOG_LALALA7, DIALOG_STYLE_MSGBOX, "6/10", "...", "Supratau", "");
  45.     }
  46.     if(checkpointid == checkas[7])
  47.     {
  48.         checkas[8] = CreateDynamicCP(-4044.6663, -1719.3889, 4.7548, 1, -1, -1, playerid, 100);
  49.         ShowPlayerDialog(playerid, DIALOG_LALALA8, DIALOG_STYLE_MSGBOX, "7/10", "...", "Supratau", "");//
  50.     }
  51.     if(checkpointid == checkas[8])
  52.     {
  53.         checkas[9] = CreateDynamicCP(-4047.2515, -1706.6924, 4.7548, 1, -1, -1, playerid, 100);
  54.         ShowPlayerDialog(playerid, DIALOG_LALALA9, DIALOG_STYLE_MSGBOX, "8/10", "...", "Supratau", "");//
  55.     }
  56.     if(checkpointid == checkas[9])
  57.     {
  58.         checkas[10] = CreateDynamicCP(-4083.8899, -1748.0616, 4.7548, 1, -1, -1, playerid, 100);
  59.         ShowPlayerDialog(playerid, DIALOG_LALALA10, DIALOG_STYLE_MSGBOX, "9/10", ".....", "Supratau", "");//
  60.     }
  61.     if(checkpointid == checkas[10])
  62.     {
  63.         checkas[11] = CreateDynamicCP(-3943.4216, -1767.1538, 4.7548, 1, -1, -1, playerid, 100);
  64.         ShowPlayerDialog(playerid, DIALOG_LALALA11, DIALOG_STYLE_MSGBOX, "10/10", "....", "Supratau", "");//
  65.     }
  66.     if(checkpointid == checkas[11])
  67.     {
  68.         //....
  69.     }
  70.     return 1;
  71. }
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. if(dialogid == DIALOG_LALALA0)
  81.     {
  82.         if(response)
  83.         {
  84.             SendClientMessage(playerid, MELYNA, "...");
  85.             checkas[0] = CreateDynamicCP(-3943.5234, -1718.9264, 4.7548, 1, -1, -1, playerid, 100);
  86.         }
  87.         else
  88.         {
  89.             RemovePlayerFromVehicle(playerid);
  90.         }
  91.     }
  92.     if(dialogid == DIALOG_LALALA1)
  93.     {
  94.         if(response)
  95.         {
  96.             DestroyDynamicCP(checkas[0]);
  97.             //DisablePlayerCheckpoint(playerid);
  98.         }
  99.     }
  100.     if(dialogid == DIALOG_LALALA2)
  101.     {
  102.         if(response)
  103.         {
  104.             DestroyDynamicCP(checkas[1]);
  105.             //DisablePlayerCheckpoint(playerid);
  106.         }
  107.     }
  108.     if(dialogid == DIALOG_LALALA3)
  109.     {
  110.         if(response)
  111.         {
  112.             DestroyDynamicCP(checkas[2]);
  113.             //DisablePlayerCheckpoint(playerid);
  114.         }
  115.     }
  116.     if(dialogid == DIALOG_LALALA4)
  117.     {
  118.         if(response)
  119.         {
  120.             DestroyDynamicCP(checkas[3]);
  121.             //DisablePlayerCheckpoint(playerid);
  122.         }
  123.     }
  124.     if(dialogid == DIALOG_LALALA5)
  125.     {
  126.         if(response)
  127.         {
  128.             DestroyDynamicCP(checkas[4]);
  129.             //DisablePlayerCheckpoint(playerid);
  130.         }
  131.     }
  132.     if(dialogid == DIALOG_LALALA6)
  133.     {
  134.         if(response)
  135.         {
  136.             DestroyDynamicCP(checkas[5]);
  137.             //DisablePlayerCheckpoint(playerid);
  138.         }
  139.     }
  140.     if(dialogid == DIALOG_LALALA7)
  141.     {
  142.         if(response)
  143.         {
  144.             DestroyDynamicCP(checkas[6]);
  145.             //DisablePlayerCheckpoint(playerid);
  146.         }
  147.     }
  148.     if(dialogid == DIALOG_LALALA8)
  149.     {
  150.         if(response)
  151.         {
  152.             DestroyDynamicCP(checkas[7]);
  153.             //DisablePlayerCheckpoint(playerid);
  154.         }
  155.     }
  156.     if(dialogid == DIALOG_LALALA9)
  157.     {
  158.         if(response)
  159.         {
  160.             DestroyDynamicCP(checkas[8]);
  161.             //DisablePlayerCheckpoint(playerid);
  162.         }
  163.     }
  164.     if(dialogid == DIALOG_LALALA10)
  165.     {
  166.         if(response)
  167.         {
  168.             DestroyDynamicCP(checkas[9]);
  169.             //DisablePlayerCheckpoint(playerid);
  170.         }
  171.     }
  172.     if(dialogid == DIALOG_LALALA11)
  173.     {
  174.         if(response)
  175.         {
  176.             DestroyDynamicCP(checkas[10]);
  177.             //DisablePlayerCheckpoint(playerid);
  178.         }
  179.     }
  180.     return 1;
  181. }
Advertisement
Add Comment
Please, Sign In to add comment