View Single Post
  #8  
Old 09-26-2011, 12:22 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
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.
__________________
Reply With Quote