Thanks guys!
I'm trying to create something where if you say /open (number here), the door would open for that many seconds.
PHP Code:
function onCreated () {
setimg("door.png");
setshape (1,32,32);
}
//#CLIENTSIDE
function onPlayerChats () {
if (player.chat.starts == "/open" && clientr.staff == 1) {
this.time.open = player.chat.substring(6).trim();
this.show();
sleep(???); //see below
this.hide();
}
}
If anyone could tell me what to put inside the sleep function and tell me if I'm doing it right, that would be great!