Quote:
Originally Posted by Frankie
I can't get it -.-
PHP Code:
function Admin_TextList1.onDblClick()
{
temp.toks = params[1].tokenize(":");
for (temp.pl: allplayers)
{
if (pl == temp.toks[0] && pl.headimg == "era_head-remotecontrol.png")
{
this.pmAccount = pl;
}
}
(@ "-Playerlist").openPMWindow({findPlayer(this.pmAccount)}, false);
}
it's supposed to PM the RCs but if you have player and RC open it will try PMing the player.
so I'm using the allplayers so I can get the ID of the RC and not the player, but I can't get it to work right.
|
Wouldn't you want it to check for player.level = NULL? If not then why.