![]() |
Checking playercount in another level
How would I check playercount in a level that the player isnt in.I'm having another brainfart and cannot figure this out.
NPC Code: |
PHP Code:
|
I figured it out like 2 minutes ago but thank you.
Quote:
|
Perhaps try to reuse levels rather than copying and deleting them often?
|
Does that reduce lag or something?
|
Quote:
But I just think reusing copied levels is a better way to do it. And only create more copies if you go over the amount already existing, and then delete extra copies down to the default amount. |
I was setting it up so the players name is in the levelname. I don't exactly know how to do what you are talking about though. If you could give me an example or the Commands to look up that would be great.
|
Quote:
Quote:
Basically I would just have some system track what accounts are using what levels and create new levels if there aren't enough already and delete extras when they're not used anymore. |
Oh ok, and yes i'm using account names.
edit: I ran into a problem, when someone logs off and then the level is deleted they get stuck 'loading'. Is there any way to check if the player's level has been deleted. Like would FindFile() or would player.level = NULL work? |
Normally people are put back to the start level when they login to a level that doesn't exist.
|
I was testing on a Trial so I don't know if that makes any difference, it came out of observer and it kept 'loading.'
|
Quote:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
You may clip our wings, but we will always remember what it was like to fly.
|
Quote:
|
| All times are GMT +2. The time now is 08:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.