08.11.2011, 15:06
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;
}