Jump to content
  • 0

pomoc Blbnutí Řidičáků


Nikes

Dotaz

Hello.. Mám řidičák zatím na Ačko a Bčko.. Ačko funguje uplně bezvadně ale to B vjedu do 1. checkpointu a napíše že sem dokončil autoškolu pro A. A přepne na další CP a když do něj vjedu tak o5 mi napíše že sem dokončil autoškolu pro A.

 

Tu je public checkpointů.

public OnPlayerEnterCheckpoint(playerid)
{
// Řidičák A
switch(AutoSkolaA[playerid])
{
case CPA2:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1004.8495,1243.3258,10.2492,7.0);
AutoSkolaA[playerid] = CPA3;
}
case CPA3:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1205.0194,1190.5909,13.2131,7.0);
AutoSkolaA[playerid] = CPA4;
}
case CPA4:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1476.4850,1131.2323,10.2494,7.0);
AutoSkolaA[playerid] = CPA5;
}
case CPA5:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1649.7637,1147.6749,10.2493,7.0);
AutoSkolaA[playerid] = CPA6;
}
case CPA6:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1731.8845,1288.7836,10.2576,7.0);
AutoSkolaA[playerid] = CPA7;
}
case CPA7:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1729.4495,1588.2074,9.8795,7.0);
AutoSkolaA[playerid] = CPA8;
}
case CPA8:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1699.7677,1715.4995,10.2486,7.0);
AutoSkolaA[playerid] = CPA9;
}
case CPA9:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1569.6194,1856.5441,10.2596,7.0);
AutoSkolaA[playerid] = CPA10;
}
case CPA10:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1469.1079,1875.3835,10.2492,7.0);
AutoSkolaA[playerid] = CPA11;
}
case CPA11:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1314.6522,1815.6361,10.2410,7.0);
AutoSkolaA[playerid] = CPA12;
}
case CPA12:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1004.6270,1745.3723,10.3512,7.0);
AutoSkolaA[playerid] = CPA13;
}
case CPA13:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1022.1404,1370.9786,10.3511,7.0);
AutoSkolaA[playerid] = CPA14;
}
case CPA14:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1160.4847,1371.8301,10.2489,7.0);
AutoSkolaA[playerid] = CPA15;
}
case CPA15:
{
 DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_ORANZOVA,"[Řidičský průkaz]Úspěšně si dokončil zkoušky na řidičský průkaz A.");
 Hrac[RidicakA][playerid] = 1;
 DestroyVehicle(AutoSkolaAauto);
}
}
// Řidičák B
switch(AutoSkolaB[playerid])
{
case CP2:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1010.1798,1684.5712,11.1249,7.0);
AutoSkolaB[playerid] = CP3;
}
case CP3:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1009.5990,2066.4414,11.0233,7.0);
AutoSkolaB[playerid] = CP4;
}
case CP4:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1009.7350,2290.7646,11.3454,7.0);
AutoSkolaB[playerid] = CP5;
}
case CP5:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,990.7089,2394.9785,11.0230,7.0);
AutoSkolaB[playerid] = CP6;
}
case CP6:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,905.3241,2363.6111,11.0235,7.0);
AutoSkolaB[playerid] = CP7;
}
case CP7:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,925.7465,2290.9353,11.0232,7.0);
AutoSkolaB[playerid] = CP8;
}
case CP8:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1067.9901,2290.4917,11.0213,7.0);
AutoSkolaB[playerid] = CP9;
}
case CP9:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1127.0176,2254.2837,11.1782,7.0);
AutoSkolaB[playerid] = CP10;
}
case CP10:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1090.5599,2223.3899,11.1698,7.0);
AutoSkolaB[playerid] = CP11;
}
case CP11:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1091.0713,2245.5037,11.1758,7.0);
AutoSkolaB[playerid] = CP12;
}
case CP12:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1120.6555,2276.0422,11.1676,7.0);
AutoSkolaB[playerid] = CP13;
}
case CP13:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1007.6140,2283.9023,11.0793,7.0);
AutoSkolaB[playerid] = CP14;
}
case CP14:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1017.9770,2052.3630,11.0344,7.0);
AutoSkolaB[playerid] = CP15;
}
case CP15:
{
 DisablePlayerCheckpoint(playerid);
 SetPlayerCheckpoint(playerid,1267.1595,2051.8857,11.7499,7.0);
 AutoSkolaB[playerid] = CP16;
}
case CP16:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1385.0183,2039.9847,11.0228,7.0);
AutoSkolaB[playerid] = CP17;
}
case CP17:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1385.3114,1880.6091,11.0851,7.0);
AutoSkolaB[playerid] = CP18;
}
case CP18:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1325.2137,1833.8394,11.0235,7.0);
AutoSkolaB[playerid] = CP19;
}
case CP19:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1134.0859,1815.6182,11.3278,7.0);
AutoSkolaB[playerid] = CP20;
}
case CP20:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1005.1656,1801.0498,11.0227,7.0);
AutoSkolaB[playerid] = CP21;
}
case CP21:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1004.1477,1529.1327,11.0235,7.0);
AutoSkolaB[playerid] = CP22;
}
case CP22:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1013.9755,1373.8748,11.1442,7.0);
AutoSkolaB[playerid] = CP23;
}
case CP23:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1146.3164,1371.4534,11.0239,7.0);
AutoSkolaB[playerid] = CP24;
}
case CP24:
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_ORANZOVA,"[Řidičský průkaz]Úspěšně si dokončil zkoušky na řidičský průkaz B.");
 Hrac[RidicakB][playerid] = 1;
 DestroyVehicle(AutoSkolaBauto);
}
}
return 1;
}

A Dialogresponse

if(dialogid == 11)
{
if(response)
{
if(listitem == 0)
{
 if(ZjistitHraciPenize(playerid) < 25000) return SendClientMessage(playerid,COLOR_CERVENA,"[Řidičský průkaz]Nemáš peníze na řidičský průkaz A.");
 if(Hrac[RidicakA][playerid] == 1) return SendClientMessage(playerid,COLOR_CERVENA,"[Řidičský průkaz]Už máš řidičský průkaz A.");
DatHraciPenize(playerid,-25000);
SendClientMessage(playerid,COLOR_ORANZOVA,"[Řidičský průkaz]Vyjdi ven a projížděj checkpointy.");
AutoSkolaAauto = CreateVehicle(461,1146.8335,1375.2910,10.2464,86.4010,9,5,1);
 SetPlayerCheckpoint(playerid,1007.0773,1372.5868,10.4502,7.0);
 AutoSkolaA[playerid] = CPA2;
}
else if(listitem == 1)
{
 if(ZjistitHraciPenize(playerid) < 15000) return SendClientMessage(playerid,COLOR_CERVENA,"[Řidičský průkaz]Nemáš peníze na řidičský průkaz B.");
 if(Hrac[RidicakB][playerid] == 1) return SendClientMessage(playerid,COLOR_CERVENA,"[Řidičský průkaz]Už máš řidičský průkaz B.");
DatHraciPenize(playerid,-15000);
SendClientMessage(playerid,COLOR_ORANZOVA,"[Řidičský průkaz]Vyjdi ven a projížděj checkpointy.");
AutoSkolaBauto = CreateVehicle(411,1139.2283,1375.8486,11.0222,88.9826,118,117,0);
SetPlayerCheckpoint(playerid,1009.2993,1404.9510,11.0188,7.0);
 AutoSkolaB[playerid] = CP2;
}
}
return 1;
}

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Definace CPček mám...

// Autoškola A
#define CPA2 2
#define CPA3 3
#define CPA4 4
#define CPA5 5
#define CPA6 6
#define CPA7 7
#define CPA8 8
#define CPA9 9
#define CPA10 10
#define CPA11 11
#define CPA12 12
#define CPA13 13
#define CPA14 14
#define CPA15 15
// Autoškola B
#define CP2 2
#define CP3 3
#define CP4 4
#define CP5 5
#define CP6 6
#define CP7 7
#define CP8 8
#define CP9 9
#define CP10 10
#define CP11 11
#define CP12 12
#define CP13 13
#define CP14 14
#define CP15 15
#define CP16 16
#define CP17 17
#define CP18 18
#define CP19 19
#define CP20 20
#define CP21 21
#define CP22 22
#define CP23 23
#define CP24 24

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...