Virtual World...
#2

Код:
OnPlayerStateChange(playerid, newstate, oldstate) 
{
     new carid = GetPlayerVehicleID(playerid);
     new carmodel = GetVehicleModel(carid);
     if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
     {
          if(carmodel == 51)
          {
               SetPlayerInterior(playerid, interiorid);
               SetPlayerPos(playerid, x, y, z);
          }
          else return SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z); <--brings the car also
     }
}
This should work but if it doesnt please feel freee to message me on here and i can try to help you with you're issues.

Try this, if it doesnt work then please feel free to show me what happens or you're errors.

I ican try to hel pyou out as much as posisble.
Reply


Messages In This Thread
Virtual World... - by dorperez - 07.01.2012, 10:09
Re : Virtual World... - by rbcrp - 07.01.2012, 15:24
Re: Virtual World... - by dorperez - 08.01.2012, 11:45
Re : Virtual World... - by rbcrp - 08.01.2012, 15:05
Re: Virtual World... - by dorperez - 08.01.2012, 17:58
Re: Virtual World... - by dorperez - 11.01.2012, 04:46

Forum Jump:


Users browsing this thread: 1 Guest(s)