GetPlayerInterior
From SA-MP Wiki
(Difference between revisions)
Revision as of 16:37, 3 February 2014 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 16:38, 3 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 21: | Line 21: | ||
} | } | ||
</pawn> | </pawn> | ||
+ | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{SetPlayerInterior}} | {{SetPlayerInterior}} | ||
Line 28: | Line 29: | ||
[[fr:GetPlayerInterior]] | [[fr:GetPlayerInterior]] | ||
- | [(ru:GetPlayerInterior]] | + | [[ru:GetPlayerInterior]] |
Revision as of 16:38, 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.
(playerid)
playerid | The 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.
- SetPlayerInterior: Set a player's interior.
- GetPlayerVirtualWorld: Check what virtual world a player is in.