Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(CP[playerid] == 2)
- {
- SetPlayerCheckpoint(playerid, 1193.2904,-1850.5420,13.2301, 10.0);
- CP[playerid] = 3;
- }
- else if(CP[playerid] == 3)
- {
- SetPlayerCheckpoint(playerid, 1181.9321,-1814.2745,13.2300, 10.0);
- CP[playerid] = 4;
- }
- else if(CP[playerid] == 4)
- {
- SetPlayerCheckpoint(playerid, 1182.0990,-1730.4120,13.2457, 10.0);
- CP[playerid] = 5;
- }
- else if(CP[playerid] == 5)
- {
- SetPlayerCheckpoint(playerid, 1128.6094,-1709.5916,13.2537, 10.0);
- CP[playerid] = 6;
- }
- else if(CP[playerid] == 6)
- {
- SetPlayerCheckpoint(playerid, 1051.3091,-1710.0724,13.2140, 10.0);
- CP[playerid] = 7;
- }
- else if(CP[playerid] == 7)
- {
- SetPlayerCheckpoint(playerid, 1039.4108,-1587.2677,13.2141, 10.0);
- CP[playerid] = 8;
- }
- else if(CP[playerid] == 8)
- {
- SetPlayerCheckpoint(playerid, 1132.9540,-1574.9415,13.1589,10.0);
- CP[playerid] = 9;
- }
- else if(CP[playerid] == 9)
- {
- SetPlayerCheckpoint(playerid, 1147.4756,-1698.1432,13.6124,10.0);
- CP[playerid] = 10;
- }
- else if(CP[playerid] == 10)
- {
- SetPlayerCheckpoint(playerid, 1173.3815,-1795.8291,13.2300, 10.0);
- CP[playerid] = 11;
- }
- else if(CP[playerid] == 11)
- {
- SetPlayerCheckpoint(playerid, 1221.2018,-1854.4736,13.2144, 10.0);
- CP[playerid] = 12;
- }
- else if(CP[playerid] == 12)
- {
- SendClientMessage(playerid, -1, "Ai luat licenta");
- DisablePlayerCheckpoint(playerid);
- DestroyVehicle(dmvcar);
- CP[playerid] = 0;
- SetPlayerPos(playerid, 1219.3933,-1812.2993,16.5938);
- }
- if(CP[playerid] == 13)
- {
- SetPlayerCheckpoint(playerid, -2401.0020,-634.1581,132.4767, 10.0);
- CP[playerid] = 14;
- }
- if(CP[playerid] == 14)
- {
- SetPlayerCheckpoint(playerid, -2365.6960,-658.1545,123.7594, 10.0);
- CP[playerid] = 15;
- }
- else if(CP[playerid] == 15)
- {
- SetPlayerCheckpoint(playerid, -2346.7271,-702.2609,112.9825, 10.0);
- CP[playerid] = 17;
- }
- else if(CP[playerid] == 17)
- {
- SetPlayerCheckpoint(playerid, -2354.2009,-777.4311,96.2525, 10.0);
- CP[playerid] = 18;
- }
- else if(CP[playerid] == 18)
- {
- SetPlayerCheckpoint(playerid, -2354.2009,-777.4311,96.2525, 10.0);
- CP[playerid] = 19;
- }
- else if(CP[playerid] == 19)
- {
- SetPlayerCheckpoint(playerid, -2307.3904,-782.2130,91.1840, 10.0);
- CP[playerid] = 20;
- }
- else if(CP[playerid] == 20)
- {
- SetPlayerCheckpoint(playerid, -2248.5417,-752.0539,72.3725, 10.0);
- CP[playerid] = 21;
- }
- else if(CP[playerid] == 21)
- {
- SetPlayerCheckpoint(playerid, -2196.0088,-794.5374,61.8084, 10.0);
- CP[playerid] = 22;
- }
- else if(CP[playerid] == 22)
- {
- SetPlayerCheckpoint(playerid, -2217.0916,-898.0983,49.5288, 10.0);
- CP[playerid] = 23;
- }
- else if(CP[playerid] == 23)
- {
- SetPlayerCheckpoint(playerid, -2209.4456,-986.7352,38.6899, 10.0);
- CP[playerid] = 24;
- }
- else if(CP[playerid] == 24)
- {
- SendClientMessage(playerid, -1, "Ai luat licenta");
- DisablePlayerCheckpoint(playerid);
- DestroyVehicle(dmvcar);
- SetPlayerPos(playerid, 1219.3933,-1812.2993,16.5938);
- }
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Cand ai voie sa depasesti?", "Oricand\nPe linie continua\nPe linie intrerupta", "Alege", "Cancel");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Cand ai voie sa depasesti?", "Oricand\nPe linie continua\nPe linie intrerupta", "Alege", "Cancel");
- }
- }
- }
- }
- if(dialogid == 2)
- {
- if(response)
- {
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Care este viteza cu care trebuie sa circulati in oras?", "100km\n30km\n40km\n50km", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 3)
- {
- if(response)
- {
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Cand ai voie sa opresti?", "Cand stationez, dar niciodata pe strada\nNu am voie", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Politia aprinde semnalele sonore ce faci?", "Imi continui drumul\nMa bag in fata ei\nClaxonez si eu\nMa dau pe partea dreapta a carosabilului", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 5)
- {
- if(response)
- {
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Ce faci cand faci un accident?", "Sun la politie\nStau in masina\nPlec linistit", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 6)
- {
- if(response)
- {
- if(listitem == 0)
- {
- //DMVTest[playerid] = 1;
- SendClientMessage(playerid, -1, "Ai fost dus de catre instructor intr-o masina de {009900}DMV{FFFFFF} urmeaza checkpoint-urile");
- dmvcar = AddStaticVehicle(507, 1279.2177,-1810.4950,13.2623,87.2657, 1, 1);
- PutPlayerInVehicle(playerid, dmvcar,0);
- CP[playerid] = 2;
- SetPlayerCheckpoint(playerid, 1213.3649,-1842.2529,13.2146,10.0);
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 7)
- {
- if(response)
- {
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Care este viteza cu care trebuie sa circulati in oras?", "100km\n30km\n40km\n50km", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 8)
- {
- if(response)
- {
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Cand ai voie sa opresti?", "Cand stationez, dar niciodata pe strada\nNu am voie", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 9)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Politia aprinde semnalele sonore ce faci?", "Imi continui drumul\nMa bag in fata ei\nClaxonez si eu\nMa dau pe partea dreapta a carosabilului", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 10)
- {
- if(response)
- {
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "Ce faci cand faci un accident?", "Sun la politie\nStau in masina\nPlec linistit", "Alege", "Cancel");
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- if(dialogid == 11)
- {
- if(response)
- {
- if(listitem == 0)
- {
- //DMVTest[playerid] = 1;
- SendClientMessage(playerid, -1, "Ai fost dus de catre instructor intr-o masina de {009900}DMV{FFFFFF} urmeaza checkpoint-urile");
- dmvcar = AddStaticVehicle(515, -2503.9717,-614.2415,133.5815,267.3998, 1, 1);
- //dmvcar = AddStaticVehicle(435, x,y,z, 1, 1);
- PutPlayerInVehicle(playerid, dmvcar,0);
- CP[playerid] = 13;
- SetPlayerCheckpoint(playerid, -2435.4392,-615.8443,133.5792,10.0);
- }
- else SendClientMessage(playerid, -1, "Ne pare rau dar ati raspuns gresit si ati picat testul");
- }
- }
- }
- CMD:dmv(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "DMV", "1.Categoria B (cars)\n2.Categoria C (camioane)", "Alege", "Iesi");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment