08.09.2013, 14:10
I have a /car command with model preview menu in a FS. When i try to respawn all vehicles, only these which are in the GM are respawned? Can someone help me? I want to respawn the cars in the FS too
The problem is that when i respawn the cars spawned by a dialog menu they are destroyed but from this menu - not
pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0) {
new bool:vehicleused[MAX_VEHICLES];
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
vehicleused[GetPlayerVehicleID(i)] = true;
}
}
for(new i=1; i < MAX_VEHICLES; i++)
{
if(!vehicleused[i])
{
SetVehicleToRespawn(i);
}
}
SendClientMessage(playerid, 0x32CD32, "balba!");
SendClientMessageToAll(0x32CD32, "sth!");
return 1;
}