Započeo Danisha
•23. Jan. 2013.• Zaključano[POMOC] Polaganje
493
pregleda
13
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
23. Jan. 2013.
Skripta koju koristim:ravens
Detaljan opis problema:e ovako napravio sam polaganje i kada kucam buydrving mene baci tamo ja sjednem u kola i idem do prvog cp i cim udjem u njega on nestane i nema mi drugog koji bi trebao biti
Dio skripte:
ovo je dio u /buydriving kad me tamo baci
Neke slike/video za lakse dobivanje pomoci(neobavezno): ////
Detaljan opis problema:e ovako napravio sam polaganje i kada kucam buydrving mene baci tamo ja sjednem u kola i idem do prvog cp i cim udjem u njega on nestane i nema mi drugog koji bi trebao biti
Dio skripte:
//POLAGANJE
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!AutoSkolaAuto(newcar))
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
return 1;
}
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.7server uklonjen!6,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
DisablePlayerCheckpoint(playerid);
CP = 0;
IgracPolaze = 0;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo = 0;
ObjektiZaPolaganje(playerid);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2019.0187,-168.3068,35.0365,6);
CP = 1000;
IgracPolaze = 1;ovo je dio u /buydriving kad me tamo baci
Neke slike/video za lakse dobivanje pomoci(neobavezno): ////
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
839
Postovi:
195
Teme:
Pridružio se:Jul 2012
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
839
Postovi:
195
Teme:
Pridružio se:Jul 2012
23. Jan. 2013.
Vidi ovdje ti je graska.........
U komaandi ti se mora prvi CP poklapat sa CP ovima
Evo ti od CP-ova
a evo od komande i vidis da se ne poklapaju
U komaandi ti se mora prvi CP poklapat sa CP ovima
Evo ti od CP-ova
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}a evo od komande i vidis da se ne poklapaju
SetPlayerCheckpoint(playerid,-2019.0187,-168.3068,35.0365,6);Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,725
Postovi:
152
Teme:
Pridružio se:Apr. 2011
23. Jan. 2013.
//POLAGANJE
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!AutoSkolaAuto(newcar))
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
return 1;
}
if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.7server uklonjen!6,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
DisablePlayerCheckpoint(playerid);
CP = 0;
IgracPolaze = 0;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}Ako nece tako,onda provjeri da li imas iste ID-ove CP-ova kao i ovdje
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
839
Postovi:
195
Teme:
Pridružio se:Jul 2012
23. Jan. 2013.
Ovako mora moc :/
SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo = 0;
ObjektiZaPolaganje(playerid);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,6);
CP = 1000;
IgracPolaze = 1;
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!AutoSkolaAuto(newcar))
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
return 1;
}
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.7server uklonjen!6,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
DisablePlayerCheckpoint(playerid);
CP = 0;
IgracPolaze = 0;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
839
Postovi:
195
Teme:
Pridružio se:Jul 2012
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
236
Postovi:
17
Teme:
Pridružio se:Mar. 2012
24. Jan. 2013.
Ovo ovako izgleda dobro, ali ako si stavio to odmah ispod public OnPlayerEnterRaceCheckpoint(playerid) znaci ti kodovi su ti prvi za taj public onda mislim da moras ovo da stavis na pocetnku
Sto znaci da bi kod trebao ovako da izgleda
if(CP == 999) { DisablePlayerCheckpoint(playerid); }Sto znaci da bi kod trebao ovako da izgleda
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!AutoSkolaAuto(newcar))
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
return 1;
}
if(CP == 999) { DisablePlayerCheckpoint(playerid); }
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.7server uklonjen!6,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
DisablePlayerCheckpoint(playerid);
CP = 0;
IgracPolaze = 0;
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava