I've done this in the past. so perhaps I just forgot how to join the classes. But it's not working. Is this correct?:
NPC:
PHP Code:
//#CLIENTSIDE
function onCreated(){
player.join("player_classtest");
player.chat = "Class should be joined now";
}
Class player_classtest:
PHP Code:
//#CLIENTSIDE
function onPlayerchats(){
if(player.chat == "/testclass"){
player.chat = "It works!";
echo("It really works!");
}
}
What am I doing wrong this time?
