GetPlayerInterior

From SA-MP Wiki

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

← Previous diff
Revision as of 16:37, 3 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Retrieves the player's current interior. A list of currently known interiors with their positions can be found on [[InteriorIDs|this]] page.}} {{Description|Retrieves the player's current interior. A list of currently known interiors with their positions can be found on [[InteriorIDs|this]] page.}}
Line 25: Line 24:
{{SetPlayerInterior}} {{SetPlayerInterior}}
{{GetPlayerVirtualWorld}} {{GetPlayerVirtualWorld}}
- 
-[[ru:GetPlayerInterior]] 
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:GetPlayerInterior]]
 +[(ru:GetPlayerInterior]]

Revision as of 16:37, 3 February 2014



Description:

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 to get the interior ID of.


Return Values:

The interior ID the player is currently in


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 useful, as they are related to this function in one way or another.

[(ru:GetPlayerInterior]]

In other languages