PHP Code:
function onPlayerTouchsMe() {
if (chat == "") {
chat = player.account SPC "has won the race!";
}
}
You'll have to add some command for staff to reset the winner, by using something like this:
PHP Code:
function onPlayerChats() {
if (player.guild == "Staff" && player.chat == "/reset") {
chat = "";
}
}