Detaljan opis problema: napravio sam organizaciju za prijevoz raznih tereta,u njoj sam napravio posao za prijevoz vode, pokusavao sam napraviti da se taj posao moze obavljati samo ako si u auto od organizacije,ali bezuspjesno.. nisam bas spretan kad je rijec o vozilima
Dio skripte:
YCMD:prevozivodu(playerid, params[], help)
{
if(PlayerInfo == 6 || PlayerInfo == 6)
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1251.8401,-2060.5129,59.8479))
{
if(GetPVarInt(playerid,"prevozivodu") == 1) return SCM(playerid,SVETLOPLAVA,"xHambo: Vec prevozis vodu.");
SetPVarInt(playerid,"prevozivodu",1);
SetPVarInt(playerid,"CP",3);
SCM(playerid,BELA,"xHambo| Prati crveni marker oznacen na mapi.");
SetPlayerCheckpoint(playerid,1390.7563,-1758.5790,13.9718,3.0);
PlayerPlaySound(playerid, 1058, 0, 0, 0);
}
else SCM(playerid,BELA,"BC| Nemas posao ili nisi na mjestu utovara.");
return 1;
}if(GetPVarInt(playerid,"prevozivodu") == 1)
{
if(GetPVarInt(playerid,"CP") == 3)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",4);
SetPlayerCheckpoint(playerid,1670.4335,-1773.1953,4.5604,3.0);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 4)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",5);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,2611.9170,-2238.0127,0.4156,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 5)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",6);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,2609.9993,-2233.3562,0.4032,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 6)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",7);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,14.2738,-1526.4071,4.5597,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 7)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",8);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,-159.6467,-1117.2186,5.7979,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 8)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",9);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,-324.4180,-1272.7264,20.4683,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 9)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"CP",10);
GameTextForPlayer(playerid, "~g~nastavi ;)", 1000, 1);
SetPlayerCheckpoint(playerid,-591.4807,-1479.8271,13.4505,3.0);
PlayerPlaySound(playerid, 1138, 0, 0, 0);
}
else if(GetPVarInt(playerid,"CP") == 10)
{
DisablePlayerCheckpoint(playerid);
SetPVarInt(playerid,"prevozivodu",0);
RemovePlayerFromVehicle(playerid);
AC_BS_GivePlayerMoney(playerid, 2650);
SCM(playerid,BELA,"Zavrsio si rutu i zaradio nesto novca.(2650$)");
PlayerPlaySound(playerid, 1138, 0, 0, 0);
SetPVarInt(playerid,"CP",0);.
}
return 1;
}| LCNVozila = AddStaticVehicleEx(414,1273.9553,-2042.4509,59.1682,91.0983,1,1,1000); //mali kamion 1 LCNVozila = AddStaticVehicleEx(414,1274.0303,-2036.6136,59.1440,89.4394,1,1,1000); //mali kamion 2 LCNVozila = AddStaticVehicleEx(403,1268.9729,-2013.7429,59.7889,179.9999,1,1,1000); // veliki 1 LCNVozila = AddStaticVehicleEx(403,1260.3701,-2014.0514,60.0166,180.7513,1,1,1000); // veliki 2 LCNVozila = AddStaticVehicleEx(403,1252.2406,-2013.6694,60.2489,180.9057,1,1,1000); // veliki 3 LCNVozila = AddStaticVehicleEx(433,1246.3567,-2022.8113,60.2560,197.3034,1,1,1000); // veliki 4 LCNVozila = AddStaticVehicleEx(591,1250.1254,-2036.2700,60.1408,271.7988,1,1,1000); // prikolica 2 LCNVozila = AddStaticVehicleEx(584,1250.4011,-2042.8062,60.1342,267.2938,1,1,1000); // prikolica 1 LCNVozila = AddStaticVehicleEx(482,1274.9482,-2024.5951,59.1194,93.0199,1,1,1000); // Burrito 1 LCNVozila = AddStaticVehicleEx(482,1275.6316,-2014.0702,59.0912,163.4853,1,1,1000); // Burrito 2 |
Neke slike/video za lakse dobivanje pomoci(neobavezno): ako treba,nije problem
