Passa al contenuto principale

SetPlayerVirtualWorld

Description​

Set the virtual world of a player. They can only see other players or vehicles that are in that same world.

NameDescription
playeridThe ID of the player you want to set the virtual world of.
virtualWorldThe virtual world ID to put the player in.

Returns​

true - The function executed successfully.

false - The function failed to execute. This means the player is not connected.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/world3", true) == 0)
{
SetPlayerVirtualWorld(playerid, 3);
return 1;
}
return 0;
}

Notes​

suggerimento

The default virtual world is 0.