PDA

View Full Version : Override message when using banclient



Ni3ls
25th October 2015, 20:39
Hi all,

Im using the default "banclient ID" command, but I want to edit the message when u ban someone.

self setClientCvar("com_errorTitle", "BANNED");
self setClientCvar("com_errorMessage", "You are Banned by: " +admin.name +"\n" + "^7Reason: "+reason +"");
Everything is defined, because I print it first in the screen using iprintlnbold.
After setting these clientcvars, I execute the "banclient ID" command and the player is banned. However, the messages I want to display in the Box arent show. It uses the default ones.
How can I change/fix this?

milepunta
26th October 2015, 01:08
use custom dvars in error.menu then it will work