Hello. I'm trying to make a countdown timer, but it doesn't seem to be working. I'm also not sure of the best way to go about it.
Here is what I have so far:
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.timer == 15;
this.chat = "Countdown";
}
function onPlayerChats() {
if (player.chat == "/count") {
this.timer == 15;
onTimeOut();
}
}
function onTimeOut() {
this.timer - 1;
this.chat = this.timer;
setTimer(1);
}