07.01.2012, 15:24
Код:
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 } }
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.