Is There Any Way..............?
#8

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetPVarInt(i, "elegy", 1);
        SetPVarInt(i, "elegywhite", CreateObject(18652,0,0,0,0,0,0));
        SetPVarInt(i, "elegywhite1", CreateObject(18652,0,0,0,0,0,0));
        AttachObjectToVehicle(GetPVarInt(i, "elegywhite"), Elegy, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
        AttachObjectToVehicle(GetPVarInt(i, "elegywhite1"), Elegy, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
        SetPVarInt(i, "daspoiler", CreateObject(1139,0,0,0,0,0,0));
        AttachObjectToVehicle(GetPVarInt(i, "daspoiler"), Elegy, -0.0039, -2.0976, 0.309, 0.0, 0.0, 0.0);
    }
    return 1;
}
Try that. It will attach the objects to the vehicle when a player enters it. In my opinion OnVehicleSpawn didn't work because the vehicles didn't actually spawn as they were added or something. I am not sure, but that should make it work ^^. And OnVehicleSpawn - You need a command to make the code work that respawns the vehicles.
Reply


Messages In This Thread
Is There Any Way..............? - by Danyal - 02.12.2011, 17:22
Re: Is There Any Way..............? - by Danyal - 03.12.2011, 03:56
Re: Is There Any Way..............? - by grand.Theft.Otto - 03.12.2011, 03:58
Re: Is There Any Way..............? - by Danyal - 03.12.2011, 06:01
Re: Is There Any Way..............? - by Danyal - 03.12.2011, 11:21
Re: Is There Any Way..............? - by MadSkillz - 03.12.2011, 11:41
Re: Is There Any Way..............? - by Danyal - 03.12.2011, 11:55
Re: Is There Any Way..............? - by PlayHard - 03.12.2011, 12:38
Re: Is There Any Way..............? - by Danyal - 04.12.2011, 12:27

Forum Jump:


Users browsing this thread: 1 Guest(s)