02.09.2013, 14:10
i need to do here:
I want to SweepCost + 3 ONLY if Player drive the car ! and if stop to don't give money for him!
Код:
if(SweepTime[i] > 0)
{
if(SweepTime[i] >= 16)
{
SweepTime[i] = 1;
if(SweepDriver[i] < 999)
{
if(IsPlayerConnected(SweepDriver[i]))
{
return 1;
}
}
}
SweepTime[i] += 1;
SweepCost[i] += 3;
format(string, sizeof(string), "~g~Salariul:%d$", SweepCost[i]);
GameTextForPlayer(i, string, 15000, 1);
}

