Using Incognito's Streamer_UpdateEx
#3

You can try create player object under player.
Something like
Код:
stock SetPlayerEnterance(playerid, id){
	if(id == -1) return 0;
	if(IsValidPlayerObject(playerid, PlayerEnteranceObject[playerid])) DestroyPlayerObject(playerid, PlayerEnteranceObject[playerid]);

	PlayerEnteranceObject[playerid] = CreatePlayerObject(playerid, PLATFORM_MODEL, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2]-FLOOR_HEIGHT, 0.0, 0.0, 0.0, 6000.0);
	Streamer_UpdateEx(playerid, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2], .interiorid = AllInteriors[type][iInterior]);
	SetPlayerPos(playerid, Enterance[id][iPos][0], Enterance[id][iPos][1], Enterance[id][iPos][2]);
	SetPlayerInterior(playerid, Enterance[id][iInterior]);
	SetPlayerFacingAngle(playerid, Enterance[id][iPos][3]);
	InEnterance[playerid] = id;
	return 1;
}
Reply


Messages In This Thread
Using Incognito's Streamer_UpdateEx - by CalvinC - 29.09.2015, 15:05
Re: Using Incognito's Streamer_UpdateEx - by Mister0 - 29.09.2015, 21:31
Re: Using Incognito's Streamer_UpdateEx - by Patchwerk - 30.09.2015, 12:22
Re: Using Incognito's Streamer_UpdateEx - by Scenario - 30.09.2015, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)