View Single Post
  #8  
Old 07-07-2013, 11:38 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Pretty certain that wiki article is incorrect. I don't think the player object is passed as a parameter, either (player will be in scope; for onPlayerLogin it won't be in scope and will be passed).

In weapons and NPCs (including Control-NPC), you can use onPlayerLogin(pl). If I'm not mistaken, you can only use onActionPlayerOnline() in Control-NPC.

edit: yes, just tested, everything above is correct, the wiki article is wrong
__________________
Reply With Quote