07.07.2011, 14:57
SetVehicleToRespawn(vehicleid); Just Respawns vehicle where it was when I started the server. What I want to do is lets say /parkvehicle (already done this) and the when I type /respawnvehicles vehicles would respawn at the parked places. I tried to make /respawn like this:
But it doesn't really work. When I respawn vehicles for a first time everything seems to be fine, but when I try to respawn them for the second time all cars gets doubled.
P.S. sorry for possible grammar mistakes.
pawn Code:
if (strcmp("/respawn", cmdtext, true, 10) == 0)
{
SaveAllVehicles();
DestroyAllVehicles();
LoadAllVehicles();
return 1;
}
P.S. sorry for possible grammar mistakes.