Interior
#1

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

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)