Need help.
#2

Use this:
pawn Код:
//global
new gPrevVehicle[ MAX_PLAYERS ];
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
  gPrevVehicle[ playerid ] = vehicleid;
  return true;
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) //If this code doesn't work, use the next code
{
  if( oldstate == PLAYER_STATE DRIVER && newstate == PLAYER_STATE_ONFOOT )
    PutPlayerInVehicle( playerid, gPrevVehicle[ playerid ], 0 );
  return true;
}
That should work.
Reply


Messages In This Thread
Need help. - by lakierka - 14.12.2009, 17:03
Re: Need help. - by LarzI - 14.12.2009, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)