02.11.2016, 19:54
Is there any way to check is VirtualWorld occupied by other player??
for(new j = 0; j < MAX_PLAYERS; j++)
{
if(GetPlayerVirtualWorld(j) == 5)
{
//Do something
}
}
Simply count the people you send to another world, than you know if its occupied
if every player should have its own world use SetPlayerVirtualWorld(playerid, playerid + 1) |
SetPlayerVirtualWorld(playerid, playerid + 1)
SetPlayerVirtualWorld(playerid, playerid+1);
SetPlayerVirtualWorld(targetid, playerid+1);
No, because the playerid is unique to every player and the + 1 prevents from joining the default world (0)
|