GetPlayerInterior

From SA-MP Wiki

Jump to: navigation, search


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


Parameters:
(playerid)
playeridThe player you want to get the interior of.
ReturnsThe interior the player is in


public OnPlayerCommandText(playerid,text[])
{
    if(strcmp(cmdtext,"/int",true) == 0)
    {
        new string[128];
        format(string, sizeof(string), "Interior: %i",GetPlayerInterior(playerid));
        SendClientMessage(playerid, 0xFF8000FF, string);
        return 1;
    }
    return 0;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages