if(CvijecePosao == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 687.3334,-1302.5668,13.3668))
{
if(VoziloVrtlara2(GetPlayerVehicleID(playerid)))
{
new rand = random(sizeof(cvijececp));
SetPlayerCheckpoint(playerid, cvijececp, cvijececp, cvijececp, 3.0);
SetTimer("PosaoTimer", 5000, false);
SCM(playerid, -1, ""SPLAVA"Sada odvezite cvijece do trgovine.");
TogglePlayerControllable(playerid, 0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, /*Ne znam sto ide ovdje*/)
{
if(VoziloVrtlara2(GetPlayerVehicleID(playerid)))
{
DisablePlayerCheckpoint(playerid);
SetTimer("PosaoTimer", 5000, false);
SCM(playerid, -1, ""SPLAVA"Zavrsili ste posao i dobili $250.");
TogglePlayerControllable(playerid, 0);
AC_BS_GivePlayerMoney(playerid, 250);
}
}
}Ne znam Å¡to ide na IsPlayerConnect, znaÄi da meni makne taj random CP na kojem sam i da mi da pare kad sam gotov sa poslom. Hvala!
