Detaljan opis problema: Trebam komandu kojom cu zapoceti rad, ako stavim "obicnu komadnu koju imam za ostale poslove tipa cistaca ulica tamo me trazi CPU a ovdje nemam zato jer sam stavio animacije"
Dio skripte:
else if(IsMilkingCows > 0)//Farmer posao
{
if(IsMilkingCows == 1)
{
MlekoVreme += 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -440.3669,-1449.5958,21.8242,1.0);
IsMilkingCows = 2;
}
else if(IsMilkingCows == 2)
{
MlekoVreme += 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -428.6936,-1451.8950,23.6756,1.0);
IsMilkingCows = 3;
}
else if(IsMilkingCows == 3)
{
MlekoVreme += 1;//1
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -431.0050,-1437.3032,23.1534,1.0);
IsMilkingCows = 4;
}
else if(IsMilkingCows == 4)
{
MlekoVreme += 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -449.1731,-1426.6814,19.9092,1.0);
IsMilkingCows = 5;
}
else if(IsMilkingCows == 5)
{
MlekoVreme += 1;
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 0, 1, 0);
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -424.8969,-1424.3967,23.2194,1.0);
IsMilkingCows = 6;
}
else if(IsMilkingCows == 6)
{
CowEndTime += 1;
//TogglePlayerControllable(playerid, 0);
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 513.1797,1117.5254,14.9977,5.0); //ZADNJI CP
IsMilkingCows = 7;
}
else if(IsMilkingCows == 7)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Farmer_Gazda kaze: Odlicno si to uradio!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Farmer_Gazda kaze: Zaradio si 100$!");
IsMilkingCows = 0;
GivePlayerMoney(playerid, 100);
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno): //
