Siren on the car
#1

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
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)