ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   Explode Cars (https://forum.antichat.xyz/showthread.php?t=1304308)

FYA 11.03.2014 10:34

Hello everyone,

how can explode Streamed Cars?

MISTER_GONWIK 11.03.2014 10:42

if you do not try to do it myself, you're life will depend on other

p.s. Google T.

FYA 11.03.2014 22:16

Why Cars doesn't burn? :wall:

Код:





Код:

if (KEY_DOWN('B'))
{
static int stats = 0;
static int time = 0;
float coord[3];
for (int v = 0; v 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();
}
}
}
}



Время: 19:16