Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
how to make a command when somewone type /duel 1 /duel 2 /duel 3 etc...to appear in a virtual world? plz help
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
ok but how to make my own virtual world?
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
i mean when somebody type "/duel 1" for example to appear in LS on that big high block for example....? plz help
Posts: 92
Threads: 1
Joined: Feb 2009
Reputation:
0
The virtual worlds already exist, all you need to do is put someone in it. Just make "/duel1" like a normal teleport command but add SetPlayerVirtualWorld(playerid, worldid) in to it, where worldid is the number of the virtual world you would like to use (it can be anything from 1 to 2,147,483,647, but for simplicity's sake you should probably just use 1). When a player spawns the player's virtual world is set back to the default, 0.
Posts: 92
Threads: 1
Joined: Feb 2009
Reputation:
0
The default virtual world for someone to be in is 0, so assuming you haven't used SetPlayerVirtualWorld anywhere else in your script, SetPlayerVirtualWorld(playerid, 0); will not put the player in a different virtual world.