
02-01-2011, 10:59 PM
|
the fake one
|
 |
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
Quote:
Originally Posted by MrOmega
I've always used findPlayer( account).communityname and findPlayerByCommunityName( cname).account for when I've been wanting to do that. Also, since not every player has a community name set I usually do
PHP Code:
temp.pl = findPlayer( account); temp.pName = !( temp.pl.communityname)? temp.pl.account: temp.pl.communityname
Just to avoided the annoyance, but as stated in that thread, offline accounts, well, there's no support. I worked around this awhile ago by making a DBNPC and putting account in an array, then whenever the player logged on, if their account was in their, then some function would run. I agree with the RC issues, usually communitynames are easier to remember than accounts.
|
I'm wondering if you even read the thread I linked to...
Quote:
Originally Posted by cbk1994
The reason these commands are needed is not for findPlayer, but for when accounts are offline.
|
|
|
|