1. Axy

    Axy

    I'm trying to create my own simple join/leave messages plugin, but for some reason I can't make it work. Here is my code so far:

    Code:
    var notices = {
        Title : "Notices",
        Author : "Axy",
        Version : V(1, 0, 0),
        HasConfig : false,
        Init : function () {
            print("Notices: Plugin Loaded");
        },
        OnPlayerInit : function(player) {
            print(player.diplayName + " has joined the server.");
        },
        OnPlayerDisconnected : function(player) {
            print(player.diplayName + " has quit.");
        }
    }
    On connect and disconnect through the console I only get "unidentified has joined" or "unidentified has quit" -- not sure how to locate the name through the "player".
     
  2. I know why :) u copied the hook from the docs right ?

    1. },
    2. OnPlayerInit : function(player) {
    3. print(player.diplayName + " has joined the server.");
    4. },
    5. OnPlayerDisconnected : function(player) {
    6. print(player.diplayName + " has quit.");
    7. }
    in docs it says (player.diplayName) not (player.displayName) change the diplay to display
     
  3. Axy

    Axy

    OH MY GOD.
     
  4. Yeah remember check everything 3or 5 times :)
     
  5. Wulf

    Wulf Community Admin

    Nice find, corrected it. :)