OnPlayerInteriorChange
From SA-MP Wiki
OnPlayerInteriorChange
Called when a player changes interior.
(playerid, newinteriorid, oldinteriorid)
| playerid | The playerid whose interior changed. |
| newinteriorid | The interior the player just changed to. |
| oldinteriorid | The interior the player just changed from. |
This function does not return a specific value, it's best to simply ignore it.
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid) { new string[128]; 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.
- SetPlayerInterior: Sets a players interior.
- GetPlayerInterior: Gets a players interior.
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnPlayerStateChange: Called when a player changes state.
