30.09.2015, 12:22
You can try create player object under player.
Something like
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; }