hwlp to fix command /savecar
#1

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;
}

Reply


Messages In This Thread
hwlp to fix command /savecar - by gondes - 03.09.2010, 10:19
Re: hwlp to fix command /savecar - by [HiC]TheKiller - 03.09.2010, 10:51
Re: hwlp to fix command /savecar - by Kyosaur - 03.09.2010, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)