SA-MP Forums Archive
Interior - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior (/showthread.php?tid=156408)



Interior - Freddy Z - 22.06.2010

I want players to get in an interior when they press g near a vehicle, what functions should i use?



Re: Interior - Kar - 22.06.2010

http://forum.sa-mp.com/index.php?topic=51642.0

edit it and change it to from the bus id and make it onplayerentervehicle set u to that interior


Re: Interior - gtapolicemods - 22.06.2010

here is an example of some code when you enter an enforcer


Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(GetPlayerVehicleID(playerid)) == 427)
	{
   	SetPlayerPos(playerid, 2084.479980, -1374.825928, 300.628052);
   	SetPlayerFacingAngle(playerid, 0);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 1);
		Inenforcer[playerid] = GetPlayerVehicleID(playerid);
	}
	return 1;
}
that maybe useful to you, but you question really doesn't elaborate a whole lot on what you want