SA-MP Forums Archive
Siren on the car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Siren on the car (/showthread.php?tid=432770)



Siren on the car - Povis - 24.04.2013

Hello, I need help to make a sirens on a different cordinates and a different vehicles.

So question is how I can make cause on sultan and on cheetah will put that siren in good cordinates, because now that siren is in middle on the roof

This is my code (now):

Код:
CMD:sirena(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    if(sirenaU == false)
    {
        sirena = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
        AttachObjectToVehicle(sirena, GetPlayerVehicleID(playerid), 0.374999, 0.000000, 0.684999, 0.000000, 0.000000, 0.000000);
        sirenaU = true;

    } else {
        DestroyObject(sirena);
		sirenaU = false;
  	}
    return 1;
}
Код:
new
    sirena,
    bool:sirenaU;
Sry for bad english


Re: Siren on the car - Slaykler - 24.04.2013

Create Different Spawn Positions For the Sirens

Example:

new boolirenaCheetah

and then detect if the player is in a cheetah then create a stock with each vehicles cordinates in for more precise acurracy


Re: Siren on the car - Povis - 24.04.2013

Sorry but I don't know how to do it :/