Detaljan opis problema: Pa nikako da kad polozim test, nisam stavio koordinate gde igrac mora da bude ali svejedno mora biti van vozila, kad je van vozila i polozi ovaj 1. deo testa i udje u vozilo nece da mu se pojavi prvi checkpoint.. zASTO? Pomagajte 😢
Dio skripte:
Komanda
CMD:polaganje(playerid, params[])
{
if(PlayerInfo == 1) return SCM(playerid, COLOR_GREY,"{FFFF00}{AFAFAF} Vec imate dozvolu!");
{
ShowPlayerDialog(playerid, 453, DIALOG_STYLE_LIST, "{66FFFF}1.Kojom stranom se vozi u saobracaju?", "Levom\nDesnom\nNijednom", "Ok", "Izlaz");
polaze = 1;
TogglePlayerControllable(playerid, 1);
}
return 1;
}DIALOZI
if(dialogid == 453)
{
if(response)
{
if (listitem == 0)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 1)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Tacno!");
ShowPlayerDialog(playerid, 454, DIALOG_STYLE_LIST, "{66FFFF}2.Kad nas policija zaustavi mi?", "Stanemo sa strane\nBezimo\nVredjamo ih", "Ok", "Izlaz");
}
if(listitem == 2)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
}
return 1;
}
if(dialogid == 454)
{
if(response)
{
if (listitem == 0)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Tacno!");
ShowPlayerDialog(playerid, 455, DIALOG_STYLE_LIST, "{66FFFF}3.Preticanje drugih vozila dozvoljeno je kad je?", "Isprekidana linija\nOstra krivina\nPuna linija", "Ok", "Izlaz");
}
if(listitem == 1)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 2)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
}
return 1;
}
if(dialogid == 455)
{
if(response)
{
if (listitem == 0)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Tacno!");
ShowPlayerDialog(playerid, 456, DIALOG_STYLE_LIST, "{66FFFF}4.Vozilo mora da ima upaljena svetla?", "Po danu\nPo noci\nUvek", "Ok", "Izlaz");
}
if(listitem == 1)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 2)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
}
return 1;
}
if(dialogid == 456)
{
if(response)
{
if (listitem == 0)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 1)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 2)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Tacno!");
ShowPlayerDialog(playerid, 457, DIALOG_STYLE_LIST, "{66FFFF}5.Na motorima nosenje kacige je?", "Obavezno\nNije obavezno", "Ok", "Izlaz");
}
}
return 1;
}
if(dialogid == 456)
{
if(response)
{
if (listitem == 0)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Pali ste na testu!");
polaze = 0;
}
if(listitem == 1)
{
SCM(playerid, COLOR_WHITE, "{66FFFF}[LZ|POLAGANJE]{AFAFAF} Tacno!");
polaze = 1;
CP = 200;
}
}
return 1;
}ONPLAYERENTERCHECKPOINT
{
if(CP==200)
{
if(IsPlayerInVehicle(playerid, askola) || IsPlayerInVehicle(playerid, askola) || IsPlayerInVehicle(playerid, askola) || IsPlayerInVehicle(playerid, askola) || IsPlayerInVehicle(playerid, askola))
{
DisablePlayerCheckpoint(playerid);
CP = 201;
SetPlayerCheckpoint(playerid, 2056.1038, -1922.1115, 13.1162, 4.0);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"{66FFFF}[LZ|POLAGANJE]{AFAFAF} Nite u vozilu za polaganje!");
DisablePlayerCheckpoint(playerid);
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
polaze = 0;
}
}
else if(CP==201)
{
DisablePlayerCheckpoint(playerid);
CP = 202;
SetPlayerCheckpoint(playerid, 2115.1514,-1472.5181,23.3842, 4.0);
}
else if(CP==202)
{
DisablePlayerCheckpoint(playerid);
CP = 203;
SetPlayerCheckpoint(playerid, 2093.9626,-1383.0918,23.3957, 4.0);
}
else if(CP==203)
{
DisablePlayerCheckpoint(playerid);
CP = 204;
SetPlayerCheckpoint(playerid, 2052.5044,-1258.1188,23.3872, 4.0);
}
else if(CP==204)
{
DisablePlayerCheckpoint(playerid);
CP = 205;
SetPlayerCheckpoint(playerid,1866.2235,-1257.8346,12.9525, 4.0);
}
else if(CP==205)
{
DisablePlayerCheckpoint(playerid);
CP = 206;
SetPlayerCheckpoint(playerid, 1588.2035,-1158.6080,23.4718, 4.0);
}
else if(CP==206)
{
DisablePlayerCheckpoint(playerid);
CP = 207;
SetPlayerCheckpoint(playerid, 1488.1998,-1031.6838,23.2176, 4.0);
}
else if(CP==207)
{
DisablePlayerCheckpoint(playerid);
CP = 208;
SetPlayerCheckpoint(playerid, 1479.9788,-1149.8796,23.4598, 4.0);
}
else if(CP==208)
{
DisablePlayerCheckpoint(playerid);
CP = 209;
SetPlayerCheckpoint(playerid, 1453.4370,-1305.4153,12.9481, 4.0);
}
else if(CP==209)
{
DisablePlayerCheckpoint(playerid);
CP = 210;
SetPlayerCheckpoint(playerid, 1426.5884,-1715.3302,12.9570, 4.0);
}
else if(CP==210)
{
DisablePlayerCheckpoint(playerid);
CP = 211;
SetPlayerCheckpoint(playerid, 1811.3322,-1734.2949,12.9619, 4.0);
}
else if(CP==211)
{
DisablePlayerCheckpoint(playerid);
CP = 212;
SetPlayerCheckpoint(playerid,1957.2544,-1753.8309,12.9574, 4.0);
}
else if(CP==212)
{
DisablePlayerCheckpoint(playerid);
CP = 213;
SetPlayerCheckpoint(playerid, 2072.8093,-1814.8051,12.9493, 4.0);
}
else if(CP==213)
{
DisablePlayerCheckpoint(playerid);
CP = 214;
SetPlayerCheckpoint(playerid, 2055.5566,-1921.6302,13.1073, 4.0);
}
else if(CP==214)
{
new pName;
new str;
GetPlayerName(playerid, pName, 24);
pName[strfind(pName,"_")] = ' ';
GivePlayerMoney(playerid, -500);
format(str, 128,"{66FFFF}[LZ|POLAGANJE]: {AFAFAF}Cestitamo %s! polozili ste i sada imate vozacku dozvolu.", pName);
SendClientMessage(playerid, COLOR_LIGHTBLUE, str);
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
polaze = 0;
PlayerInfo = 1;
DisablePlayerCheckpoint(playerid);
}
else
{
DisablePlayerCheckpoint(playerid);
}
return 1;
}Sta mi ne valja ovde?
Neke slike/video za lakse dobivanje pomoci(neobavezno):
