Fake Join/Quit messages

Discussion in 'CommandHelper Scripts' started by nopresnik, Apr 1, 2012.

  1. nopresnik

    nopresnik Member

    So I have recently had some suspicious griefers who would grief when no mods were on... Solution!
    PHP:
    ##Broadcasts a Fake Join and Quit messages to all users

    mods:/quit = >>>

        broadcast(concat(color(green), concat(,player(),) left the game.))

    <<<

    mods:/join = >>>

        broadcast(concat(color(green), concat(,player(),) joined the game.))

    <<<

    ##End
     
    Or if you have a second vanish plugin, you can also use that by using this code!
    PHP:
    mods:/quit = >>>
        broadcast(concat(color(green), concat(,player(),) left the game.))
        /vanish
    <<<
        #You can change the /vanish to suite your system

    mods:/join = >>>
        broadcast(concat(color(green), concat(,player(),) joined the game.))
        /unvanish
    <<<
        #You can change the /unvanish to suite your system
    Happy April Fools!
  2. Angry_carrot64

    Angry_carrot64 New Member

    how could you change it so it shows up your prefix and nickname instead of your realname
  3. nopresnik

    nopresnik Member

    PHP:
    ##Broadcasts a Fake Join and Quit messages to all users

    mods:/quit = >>>
     
        broadcast(concat(color(green), pinfo(player(), 4), 'left the game.'))
     
    <<<
     
    mods:/join = >>>
     
        broadcast(concat(color(green), pinfo(player(), 4), 'joined the game.'))
     
    <<<
     
    ##End
    EDIT: I'm not sure about prefixes.... Maybe try pinfo(player(), 9) for rank group.