2 Things :)
#10

pawn Код:
new car_one;
new car_two;

car_one = AddStaticVehicle(414, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // First vehicle
car_two = AddStaticVehicle(414, 2209.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // First vehicle


public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == car_one) // First vehicle.
    {
        SetPlayerPos(playerid, 2066, -7101, 367); // Interior Coordinates.
        SetPlayerInterior(playerid, 1); // Interior which you choosen.
        SetPlayerVirtualWorld(playerid, 1); // And the virtual world.
        }
        if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == car_two) // Second vehicle.
    {
        SetPlayerPos(playerid, 2066, -7101, 367); // Interior Coordinates.
        SetPlayerInterior(playerid, 1); // Interior which you choosen.
        SetPlayerVirtualWorld(playerid, 2); // And the virtual world.
        }
    return 1;
}
Not tested, but the princip is pretty clear, I hope so.
Reply


Messages In This Thread
2 Things :) - by dorperez - 08.11.2011, 14:00
Re: 2 Things :) - by Kasis - 08.11.2011, 14:26
Re: 2 Things :) - by dorperez - 08.11.2011, 14:27
Re: 2 Things :) - by Kasis - 08.11.2011, 14:34
Re: 2 Things :) - by dorperez - 08.11.2011, 14:37
Re: 2 Things :) - by Kasis - 08.11.2011, 14:46
Re: 2 Things :) - by dorperez - 08.11.2011, 14:55
Re: 2 Things :) - by SmiT - 08.11.2011, 15:02
Re: 2 Things :) - by Kostas' - 08.11.2011, 15:02
Re: 2 Things :) - by Kasis - 08.11.2011, 15:06

Forum Jump:


Users browsing this thread: 3 Guest(s)