Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
September 20, 2019, 10:32:07 pm

Author Topic: My whisper function  (Read 1425 times)

Olga

  • Newbie
  • *
  • Posts: 2
    • View Profile
My whisper function
« on: September 24, 2014, 03:15:37 am »
My whisper function it saves the player name you're whispering so you don't have to keep typing /w "username" to whisper them.


Usage: /w "username" message (note use quotes even if the username doesn't have spaces or it may misbehave ): )
Usage (to change back to the normal chat if you were whispering one): /w
Download: https://mega.co.nz/#!7U0lkI5R!098zgHI3DsxclpNkBrDv2BvDI-DpnTzGME2m6nwoU0k

Sorry if the code isn't clean, I am new to Lua!
« Last Edit: September 26, 2014, 02:23:37 am by Olga »

Darwood37

  • Donator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: My whisper function
« Reply #1 on: September 25, 2014, 10:47:29 pm »
Very nice. Just what the server needed.

Olga

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: My whisper function
« Reply #2 on: September 26, 2014, 02:34:47 am »
I updated a few things and removed unused testing variables in 'client/PM-client.lua'