A couple other things:
Quote:
|
if (startswith(#a,this.a))
|
this. strings exist separately on serverside and clientside, so this.a doesn't exist on clientside since you haven't set it. Also, it needs to be #s(this.a), otherwise it will compare the person's account name to the string "this.a" rather than what the string with the name this.a is set to. Also, startswith isn't what you want to use

. Look at what you can use with message codes (things starting with #)
Additionally, you should just check and see if the person's account is in this.a, and then tokenize their chat text, rather than tokenizing their chat text for each command.
As Kaimetsu suggested,
read and understand the KSI-GS. It will help you out

.