SetPlayerVirtualWorld

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:45, 4 July 2013
Smithy (Talk | contribs)

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

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Set the virtual world of a player. They can only see other players or vehicles if they are in that same world.}} {{Description|Set the virtual world of a player. They can only see other players or vehicles if they are in that same world.}}
Line 25: Line 24:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:SetPlayerVirtualWorld]]

Revision as of 16:40, 3 February 2014



Description:

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


Parameters:
(playerid,worldid)
playeridThe ID of the player you want to set the virtual world of.
worldidThe virtual world ID to put the player in.


Return Values:

This function does not return any specific values.


Image:32px-Ambox_warning_orange.png

Note

The default virtual world is 0.


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

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages