14.03.2014, 19:38
Last try..
pawn Код:
new bool:notnpcvehicle[MAX_VEHICLES];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerNPC(i) && IsPlayerInAnyVehicle(i)) { notnpcvehicle[GetPlayerVehicleID(i)]=true; }
}
for(new v = 0; v < MAX_VEHICLES; v++)
{
if(!notnpcvehicle[v])
{
SetVehicleToRespawn(v);
}
}
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[News] %sRe Spawned All Cars.",name);
SendClientMessageToAll(COLOR_PINK, string);
return 1;
}