Set Player Virtual World
#1

Hey!

I wanna do something like

Quote:

public OnPlayerSpawn(playerid)
{
SetPlayerVirtualWorld(playerid, empty);
return 1;
}

but that "empty" would represent a random world which is empty. and this would work for all players who spawn
Reply
#2

something like that

PHP код:
public OnPlayerSpawn(playerid)
{
SetPlayerVirtualWorld(playeridplayerid+1);
return 
1;

It will assign virtual world id with playerid+1 like if anyone have 1 playerid then it will set the player virtual world to 2 when he spawn
Reply
#3

Thanks
Reply
#4

I have a question. Why would you set an random virtualworld? Because in this way, no one can see each other.

What is the reason of this action?
Reply
#5

Quote:
Originally Posted by Zeus666
Посмотреть сообщение
I have a question. Why would you set an random virtualworld? Because in this way, no one can see each other.

What is the reason of this action?
When you want to set player's positions to somewhere waiting a spawn or something like that (spawn selection, interaction between the server and the player, ...).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)