ID:161446
![]() May 5 2008, 4:36 pm
|
|
How do i make so that when the host logs on it makes you ask what max players to logon like the limit of people can join.
|
![]() May 6 2008, 8:35 pm
|
|
var/PlayerCount=0 of course youll have to merge that with the previous code... |
var just trying to help, would this work? o.o |
lol fizzle just peruses the forums waiting to pounce on me. Though i think i have to give him this round!
|
Popisfizzy wrote:
If you have to choose between Garthor and Falacy, choose Garthor every single time, without fail. would my method work though ;o |
Eternity Productions wrote:
would my method work though ;o It would not work. You fail to call ..() in client/New() or client/Del(). Failing to call the default behaviour for client/New() will result in a mob not being created for the client, thus logging the client off. |
Eternity Productions wrote:
would my method work though ;o yours is pretty much what Garthor put <.< though for some reason neither of you have it call the parent in client/Del o.O |
Unknown Person wrote:
Eternity Productions wrote:did that because i dont need people ripping D: |
Use world/IsBanned() to determine if a player can join or not because of too many players being logged in.
|
Can i ask one more thing ? So on status i would put something like this [PlayerCount]/[PlayerLimit]?
|
SoloKid wrote:
How do i make so that when the host logs on it makes you ask what max players to logon like the limit of people can join. var/list/clients[0] //list of currently online players Exercise #1: Implement this snippet in your game, without blatantly copying and pasting it. Keep in mind that some procs such as client/New(), client/Del(), mob/Login() and world/New() should not be overridden at another point in the project, as it will cause confusion later on. Exercise #2: Try to make a list of reserved players. This list should be editable by the host. Players on this list will receive immunity from the player limit, and may login even if the limit has been reached. -- Data |