View Single Post
  #11  
Old 03-19-2010, 06:03 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by chuninexam View Post
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();

__________________
Quote:
Reply With Quote