Called when a player changes interior. Can be triggered by SetPlayerInterior or when a player enter/exits a building.
|playerid||The playerid who changed interior.|
|newinteriorid||The interior the player is now in.|
|oldinteriorid||The interior the player was in before.|
It is always called first in gamemode.
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
format(string, sizeof(string), "You went from interior %d to interior %d!", oldinteriorid, newinteriorid);
SendClientMessage(playerid, COLOR_ORANGE, string);