09.08.2015, 08:49
Try this
pawn Код:
CMD:opetvozila(playerid,params[])
{
if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 9)
{
for (new j = 1; j <= MAX_VEHICLES; j++)
{
if (GetVehicleModel(j) == 0) continue;
new moneys1 = 0;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerInVehicle(i, j)) continue;
moneys1 ++;
break;
}
if (moneys1 == 0)
{
SetVehicleToRespawn(j);
}
}
SendClientMessageToAll(0xFFFFFF, "Vozila su opet ucitana. Mozete ih naci na mjestu gdje su parkirani.");
}
else return 0;
return 1;
}