Detaljan opis problema😛roblem sa Auto-Skolom,CP-ovi odradio sam nove cp-ove sve idealno i sada dodjem sednem u auto i opet nece da mi ih prikaze
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
if(Polaganje == 1)
{
if(TakingLesson == 1)
{
if(CP == 50)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 51;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1871.4375,-1339.1453,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 51)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 52;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1850.4946,-1265.0940,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 52)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 53;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1730.2720,-1298.7336,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 53)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 54;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1709.7206,-1159.7434,22.9285,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 54)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 55;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1583.4410,-1157.0933,23.2796,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 55)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 56;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1449.7678,-1032.6942,23.2796,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 56)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 57;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1373.9102,-1034.3047,26.3274,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 57)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 58;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1377.2881,-946.1215,34.1875,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 58)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 59;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1168.5950,-944.8901,42.8610,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 59)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 60;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1159.4808,-1130.8142,23.6655,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 60)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 61;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1218.5192,-1151.0103,23.6655,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 61)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 62;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1194.3181,-1567.9564,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 62)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 63;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1294.0065,-1574.1057,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 63)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 64;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1300.2394,-1852.7523,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 64)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 65;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1528.2422,-1873.7793,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 65)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 66;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1690.0194,-1749.0398,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 66)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 67;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1813.0306,-1734.0873,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 67)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 68;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2081.3149,-1755.2157,13.3828,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 68)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 69;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2106.1482,-1370.0094,23.9844,5.0);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
else if(CP == 69)
{
if(AutoSkolaVozila(vehicleid))
{
CP = 999;
DisablePlayerCheckpoint(playerid);
RemovePlayerFromVehicle(playerid);
Delete3DTextLabel(vehicle3Dtext);
PlayerInfo = 1;
Polaganje = 0;
TakingLesson = 0;
VoziPoligon = 0;
SCM(playerid,COLOR_Text,": Cestitam, dobili ste vozacku dozvolu, oprezno vozite!");
JB_GivePlayerMoney(playerid,-2500);
PlayerPlaySound(playerid, 1058, X, Y, Z);
}
}
}
}
