Help With Vehicles...
#1

Hey guys,

I have interior for 5 trucks and i want to do that every truck has a diffrent virtual world.

For Increas:

I enter truck 1 interior and the virtual world is defined on 1.
And when I enter truck 2 interior and the virtual world is defined on 2.


Tnx!
Reply
#2

Not sure if you mean this but I'll give it a go:

pawn Код:
new truck[2]; //creating the truck variable to determine which virtual world we should get.

public OnGameModeInit()
{
    truck[0] = AddStaticVehicle(................); // put your current script of creating the truck here.
    truck[1] = AddStaticVehicle(................); // same here ;)
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == truck[0]) {
        SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 1);
        SetPlayerVirtualWorld(playerid, 1);
    }
    if(vehicleid == truck[1]) {
        SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 2);
        SetPlayerVirtualWorld(playerid, 2);
    }
}
Reply
#3

Didn't worked
Reply
#4

You have to edit it to your own script.
Reply
#5

I know man xD didn't worked...
Reply
#6

Edit: Worked Tnx ! But if I want to put the interior in my vehicle system ...?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)