06.11.2017, 14:49
Try this one i think it should work.
Test this but i think it should work also you might want to add the VW and Interior
Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid) { if(oldinteriorid == 0 && newinteriorid == 3) { new Float:iF[3]; GetPlayerPos(playerid, iF[0], iF[1], iF[2]); SetPVarFloat(playerid, "LSX", iF[0]); SetPVarFloat(playerid, "LSY", iF[1]); SetPVarFloat(playerid, "LSZ", iF[2]); SetPVarInt(playerid, "LSINT", GetPlayerInterior(playerid)); SetPVarInt(playerid, "LSVW", GetPlayerVirtualWorld(playerid)); } if(oldinteriorid == 3 && newinteriorid == 0) { SetPlayerPos(playerid,GetPVarFloat(playerid, "LSX"),GetPVarFloat(playerid, "LSY"),GetPVarFloat(playerid, "LSZ")); } return 1; }