GetPlayerVirtualWorld

From SA-MP Wiki

Jump to: navigation, search


Retrieves the current virtual world the player is in. Note this is not the same as the interior.


Parameters:
(playerid)
playeridPlayer ID


ReturnsThe ID of the world the player is in


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/world", true) == 0)
    {
        new string[32];
        format(string, sizeof(string), "Your virtual world: %d", 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