12.02.2012, 03:08
Quote:
i mean i want to check if xenia is online. and it is not possible to use IsPlayerConnected to check if she is online
|
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.