Exaust Fire

Započeo devster, Jul 27, 2023, 22:00:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Tip: Include
Slike ili Video: //
Opis i dodatne informacije: //
Download link: //
Scan link: //
Credits: realnaith

[pawn]
/*
* Exaust Fire Include
* Author: [realnaith]
* Version: 1.0
*/

#define MAX_EXHAUSTS 10

new Float:exhaustOffsets[MAX_EXHAUSTS][3] =
{
    {0.0, -1.5, -1.0},
    {0.0, -1.5, -1.0},
    {0.0, 1.5, -1.0},
    {0.0, 1.5, -1.0}
};

stock CreateExhaustFlame(vehicleid)
{
    if (!IsValidVehicle(vehicleid)) return;

    for (new i = 0; i < MAX_EXHAUSTS; i++)
    {
        new Float:pos[3], Float:rot[3];
        GetVehiclePos(vehicleid, pos[0], pos[1], pos[2]);
        GetVehicleZAngle(vehicleid, rot[0], rot[1], rot[2]);

        pos[0] += exhaustOffsets
  • ;
            pos[1] += exhaustOffsets[1];
            pos[2] += exhaustOffsets[2];

           
            new flameObject = CreateObject(18694, pos[0], pos[1], pos[2], rot[0], rot[1], rot[2]);
            AttachObjectToVehicle(vehicleid, flameObject, pos[0], pos[1], pos[2], rot[0], rot[1], rot[2]);
        }
    }
    [/pawn]