GetPlayerVirtualWorld

From SA-MP Wiki

Jump to: navigation, search


Description:

Retrieves the current virtual world the player is in.


Image:32px-Ambox_warning_orange.png

Note

Virtual worlds are not the same as interiors.


Parameters:
(playerid)
playeridThe ID of the player to get the virtual world of.


Return Values:

The ID of the virtual world the player is currently in.


Example Usage:

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/world", true))
    {
        new string[32];
        format(string, sizeof(string), "Your virtual world: %i", GetPlayerVirtualWorld(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, 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
Navigation
Toolbox
In other languages