The kickplayer function you are wondering about is quite easy. It is a player made function primarily for that NPC. Example...
PHP Code:
//#CLIENTSIDE
function onCreated() {
testing(); //Call the function
// The players chat will change to Tested!
}
function Testing() { //Create the function
player.chat = "Tested";
}
You can create you own functions for all sorts of purposes. Here you can see I have created the function
Testing(). When the function is called, the players chat will change to
Tested.
You can now use that function throughout your script.