playerworld

Started by Cool, May 30, 2016, 10:36 PM

Previous topic - Next topic

Cool

i wtching in many server that player world in one server two world possible that i know but will its show one world players to another world players??
and how i can create two world please tell me in detail. :P

Finch Real

Well If One player is in world 1 then he cannot see any other player present in world 2
Use of this system is very simple
Use This:
function onPlayerSpawn( player )
{
player.World = 2;
MessagePlayer( "w00t Ye Mang! i am in world 2", player );
}
My Snipet Showroom

http://pastebin.com/5KKuU5cg

EK.IceFlake

Worlds already exist, more specifically, a few billion of them; more than you'll ever need.
To use them, you should use the int CPlayer.World property. For example
function onPlayerSpawn(player)
{
    if (player.Team == 1) player.World = 2;
    else player.World = 1;
    return 1;
}
This may be useful if the team 1 is on another gamemode, if anyone spawns with team ID 1 he will be put into world 2. Any other team and he stays in the default world; 1.