Set Player Virtual World - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Set Player Virtual World (
/showthread.php?tid=653110)
Set Player Virtual World -
NoteND - 26.04.2018
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
Re: Set Player Virtual World -
IceBilizard - 26.04.2018
something like that
PHP код:
public OnPlayerSpawn(playerid)
{
SetPlayerVirtualWorld(playerid, playerid+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
Re: Set Player Virtual World -
NoteND - 26.04.2018
Thanks
Re: Set Player Virtual World -
Zeus666 - 26.04.2018
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?
Re: Set Player Virtual World -
Dayrion - 26.04.2018
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, ...).