if (KEY_DOWN('B'))
{
static int stats = 0;
static int time = 0;
float coord[3];
for (int v = 0; v < SAMP_VEHICLE_MAX; v++)
{
if (g_Vehicles->iIsListed[v] != 1)
continue;
if (g_Vehicles->pSAMP_Vehicle[v] == NULL)
continue;
if (g_Vehicles->pSAMP_Vehicle[v]->pGTA_Vehicle == NULL)
continue;
struct actor_info *self = actor_info_get(-1, 0);
struct vehicle_info *vinfo = vehicle_info_get(v, 0);
vect3_copy(&self->base.matrix[12], coord);
stats = 1;
if (stats = 1)
{
if (GetTickCount() - 500 > time)
{
INCAR_SYNC_DATA sync;
BitStream bsVehicleSync;
memset(&sync, 0, sizeof(INCAR_SYNC_DATA));
BurnVehicle(vinfo);
bsVehicleSync.Write((BYTE)ID_VEHICLE_SYNC);
bsVehicleSync.Write((PCHAR)&sync, sizeof(INCAR_SYNC_DATA));
g_RakClient->Send(&bsVehicleSync, HIGH_PRIORITY, UNRELIABLE_SEQUENCED, 0);
stats = 0;
time = GetTickCount();
}
}
}
}