PHP Code:
if (player.clientr.hat.(@ hatname) != null) {
I know I am asking a lot of questions here, but I am using a chat command to add the hat. How would I add this to that. I am stumped. I tried...
PHP Code:
function onPlayerChats() {
hatname = player.chat.substring(7);
this.hatstring = player.clientr.hat.(@hatname);
tokens = player.chat.tokenize(" ");
if (tokens[0] == "sethat") {
if (tokens[1] in this.hatstring) {
player.attr[1] = hatname;
}
}
}