Quote:
|
Originally Posted by Prozac
hmm .. no access to the player's comments through a player
|
Also, a very simple example of getting comments:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/comments")) {
requesttext("comments", player.chat.substring(10).trim());
}
}
function onReceiveText(texttype, textoptions, textlines) {
if (temp.texttype == "comments") {
echo("Comments for: " @ temp.textoptions);
for (temp.line: temp.textlines) {
echo(temp.line);
}
}
}
Comments will appear on the console/log (F2).
Command: /comments account
Note: This only works if you have rights to view comments.