SetPlayerVirtualWorld
From SA-MP Wiki
(Difference between revisions)
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.
(playerid,worldid)
playerid | The ID of the player you want to set the virtual world of. |
worldid | The virtual world ID to put the player in. |
Return Values:
This function does not return any specific values.
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.
- GetPlayerVirtualWorld: Check what virtual world a player is in.
- SetVehicleVirtualWorld: Set the virtual world of a vehicle.