03.09.2010, 10:19
How to fix this command /savecar
Quote:
GetPlayerPos( playerid, CarToX, CarToY, CarToZ); physical_car_id = CreateVehicle(carid, CarToX, CarToY+4, CarToZ, 90, -1, -1, -1); format( string, sizeof( string ), "You have spawned model ID %d. If you wish to save this, type /savecar.", carid); SendClientMessage( playerid, WHITE, string); AdminSpawned[SpawnedVehicles] = physical_car_id; SpawnedVehicles++; PutPlayerInVehicle( playerid, physical_car_id, 0 ); LinkVehicleToInterior(physical_car_id, GetPlayerInterior( playerid ) ); SetVehicleVirtualWorld(physical_car_id, GetPlayerVirtualWorld( playerid ) ); } else { SendClientMessage( playerid, WHITE, "Despawn the current spawned vehicles before spawning any more (or attempting to do so)." ); } } } return 1; } |