Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new checkas[13];
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == checkas[0])
- {
- checkas[1] = CreateDynamicCP(-3961.1807, -1690.8093, 4.7548, 1, -1, -1, playerid, 100);
- SendClientMessage(playerid, ZALIA, "...");
- ShowPlayerDialog(playerid, DIALOG_LALALA1, DIALOG_STYLE_MSGBOX, "0/0", "...", "Supratau", "");
- Timer(playerid);
- TimeM = 3;
- TimeS = 0;
- Time = SetTimer("Timer", 1000, true);
- PlayerTextDrawShow(playerid, textdraw[playerid]);
- }
- if(checkpointid == checkas[1])
- {
- checkas[2] = CreateDynamicCP(-3988.7224, -1690.4630, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA2, DIALOG_STYLE_MSGBOX, "1/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[2])
- {
- checkas[3] = CreateDynamicCP(-4015.1846, -1706.1989, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA3, DIALOG_STYLE_MSGBOX, "2/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[3])
- {
- checkas[4] = CreateDynamicCP(-3987.6333, -1754.9879, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA4, DIALOG_STYLE_MSGBOX, "3/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[4])
- {
- checkas[5] = CreateDynamicCP(-4002.5193, -1728.8728, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA5, DIALOG_STYLE_MSGBOX, "4/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[5])
- {
- checkas[6] = CreateDynamicCP(-4027.2124, -1755.3657, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA6, DIALOG_STYLE_MSGBOX, "5/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[6])
- {
- checkas[7] = CreateDynamicCP(-4037.5356, -1738.5569, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA7, DIALOG_STYLE_MSGBOX, "6/10", "...", "Supratau", "");
- }
- if(checkpointid == checkas[7])
- {
- checkas[8] = CreateDynamicCP(-4044.6663, -1719.3889, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA8, DIALOG_STYLE_MSGBOX, "7/10", "...", "Supratau", "");//
- }
- if(checkpointid == checkas[8])
- {
- checkas[9] = CreateDynamicCP(-4047.2515, -1706.6924, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA9, DIALOG_STYLE_MSGBOX, "8/10", "...", "Supratau", "");//
- }
- if(checkpointid == checkas[9])
- {
- checkas[10] = CreateDynamicCP(-4083.8899, -1748.0616, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA10, DIALOG_STYLE_MSGBOX, "9/10", ".....", "Supratau", "");//
- }
- if(checkpointid == checkas[10])
- {
- checkas[11] = CreateDynamicCP(-3943.4216, -1767.1538, 4.7548, 1, -1, -1, playerid, 100);
- ShowPlayerDialog(playerid, DIALOG_LALALA11, DIALOG_STYLE_MSGBOX, "10/10", "....", "Supratau", "");//
- }
- if(checkpointid == checkas[11])
- {
- //....
- }
- return 1;
- }
- if(dialogid == DIALOG_LALALA0)
- {
- if(response)
- {
- SendClientMessage(playerid, MELYNA, "...");
- checkas[0] = CreateDynamicCP(-3943.5234, -1718.9264, 4.7548, 1, -1, -1, playerid, 100);
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA1)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[0]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA2)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[1]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA3)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[2]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA4)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[3]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA5)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[4]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA6)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[5]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA7)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[6]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA8)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[7]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA9)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[8]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA10)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[9]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- if(dialogid == DIALOG_LALALA11)
- {
- if(response)
- {
- DestroyDynamicCP(checkas[10]);
- //DisablePlayerCheckpoint(playerid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment