08.08.2015, 21:25
Hey! You should use a 'Nested Loop'. Let me know if this works.
pawn Код:
COMMAND:opetvozila(playerid,params[])
{
SendAdminText(playerid, "/opetvozila", params);
if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 9)
{
for(new i; i < MAX_VEHICLES; i++)
{
for(new x; x < MAX_PLAYERS; x++)
{
if(!IsPlayerInVehicle(x, i))
{
SetVehicleToRespawn(i);
}
}
}
SendClientMessageToAll(0xFFFFFF, "Vozila su opet ucitana. Mozete ih naci na mjestu gdje su parkirani.");
return 1;
}
return 0;
}