From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:49, 18 July 2017
OstGot (Talk | contribs)

← Previous diff
Revision as of 00:50, 27 June 2018
Freaksken (Talk | contribs)
(Remove Russian)
Next diff →
Line 10: Line 10:
{{Note|Always returns 0 for NPCs.}} {{Note|Always returns 0 for NPCs.}}
<pawn> <pawn>
public OnPlayerCommandText(playerid,text[]) public OnPlayerCommandText(playerid,text[])

Revision as of 00:50, 27 June 2018


Retrieves the player's current interior. A list of currently known interiors with their positions can be found on this page.

playeridThe player to get the interior ID of.

Return Values:

The interior ID the player is currently in



Always returns 0 for NPCs.

Example Usage:

public OnPlayerCommandText(playerid,text[])
    if(strcmp(cmdtext,"/int",true) == 0)
        new string[128];
        format(string, sizeof(string), "You are in interior %i",GetPlayerInterior(playerid));
        SendClientMessage(playerid, 0xFF8000FF, string);
        return 1;
    return 0;

Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools
In other languages