08.08.2015, 21:07
How to set this cmd to respawn only unused vehicles,curently it respawns vehicles that are being driven (its anyoning). REP +1 who helps
CMD:
CMD:
PHP код:
COMMAND:opetvozila(playerid,params[])
{
SendAdminText(playerid, "/opetvozila", params);
if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] > 9)
{
for(new i; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
SendClientMessageToAll(0xFFFFFF, "Vozila su opet ucitana. Mozete ih naci na mjestu gdje su parkirani.");
return 1;
}
return 0;
}