How to check if player is online?
#6

Quote:
Originally Posted by Dr.Heinz
Посмотреть сообщение
i mean i want to check if xenia is online. and it is not possible to use IsPlayerConnected to check if she is online
Why not?
Use ReturnUser to get the ID and then do an IsPlayerConnected check.
As I posted above:
if(IsPlayerConnected(ReturnUser("xenia")))

ReturnUser gives you the ID of the player or INVALID_PLAYER_ID, if not connected.
And IsPlayerConnected checks if the person is connected.

Edit: The function "ReturnUser" is located in utils.inc, in case you didn't include it already.
Reply


Messages In This Thread
How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:02
Re: How to check if player is online? - by nmader - 12.02.2012, 03:05
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:06
Re: How to check if player is online? - by Nuke547 - 12.02.2012, 03:06
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:06
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:08
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:10
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:12
Re: How to check if player is online? - by Dr.Heinz - 12.02.2012, 03:36
Re: How to check if player is online? - by Germanator - 12.02.2012, 03:46

Forum Jump:


Users browsing this thread: 3 Guest(s)