OnPlayerInteriorChange

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:01, 31 July 2013
Smithy (Talk | contribs)

← Previous diff
Revision as of 04:42, 2 February 2014
Connor Mead (Talk | contribs)
(add fr link)
Next diff →
Line 32: Line 32:
[[Category:Scripting Callbacks]] [[Category:Scripting Callbacks]]
 +[[fr:OnPlayerInteriorChange]]
[[ru:OnPlayerInteriorChange]] [[ru:OnPlayerInteriorChange]]

Revision as of 04:42, 2 February 2014



Description:

Called when a player changes interior.


Parameters:
(playerid, newinteriorid, oldinteriorid)
playeridThe playerid who changed interior.
newinterioridThe interior the player is now in.
oldinterioridThe interior the player was in.


Return Values:

This callback does not handle returns.


Image:32px-Ambox_warning_orange.png

Note

This is also called when SetPlayerInterior is used.


public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    new string[42];
    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 are related to this callback in one way or another.

In other languages