Virtual World
#4

Well, it ain't that hard. Use OnPlayerEnterVehicle.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        new pVW = GetPlayerVirtualWorld(playerid);
        SetVehicleVirtualWorld(vehicleid, pVW);
    return 1;
}
Or, if that won't work, try using OnPlayerStateChange:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2)
    {
        new pVW = GetPlayerVirtualWorld(playerid);
        new vID = GetPlayerVehicleID(playerid);
        SetVehicleVirtualWorld(vID, pVW);
    }
    return 1;
}
Reply


Messages In This Thread
Virtual World - by shahartal - 02.08.2011, 11:44
Re: Virtual World - by MetalScript - 02.08.2011, 12:22
Re: Virtual World - by shahartal - 02.08.2011, 12:27
Re: Virtual World - by antonio112 - 02.08.2011, 12:42
Re: Virtual World - by shahartal - 02.08.2011, 13:46
Re: Virtual World - by shahartal - 03.08.2011, 12:35
Re: Virtual World - by shahartal - 04.08.2011, 12:22
Re: Virtual World - by MadeMan - 04.08.2011, 12:30
Re: Virtual World - by shahartal - 04.08.2011, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)