Quote:
Originally Posted by chuninexam
Is there no scripts that work both in offline and online conditions anymore?
|
Common GS1 scripts typically work but those should/most likely will be replaced with proper class scripts and placed in levels with minimal code like so:
PHP Code:
function onCreated() {
this.join("door");
}
Then in the door class script:
PHP Code:
//#CLIENTSIDE
function onPlayerTouchsMe() {
// Hide the door
hide();
// Pause the script for 3 seconds
waitfor(this, "Wait", 3);
// Un-hide the door
show();
}