OnPlayerInteriorChange

From SA-MP Wiki

Jump to: navigation, search


Called when a player changes interior.


Parameters:
(playerid, newinteriorid, oldinteriorid)
playeridThe playerid who changed interior.
newinterioridThe interior the player just changed to.
oldinterioridThe interior the player just changed from.


This callback does not handle returns.


public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    new string[48];
    format(string, sizeof(string), "You went from interior %d to interior %d!",oldinteriorid,newinteriorid);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    return 1;
}

Related Functions

The following functions might be useful, as they're related to this callback in one way or another.


Related Callbacks

The following callbacks might be useful as well, as they're related to this callback in one way or another.

Personal tools
In other languages