Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Who's Server?  (Read 1856 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Who's Server?
« on: 05 Jun 2003, 11:34:02 »
I want a script to run only on the server, not at any clients. Is this possible, and how?
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

deaddog

  • Guest
Re:Who's Server?
« Reply #1 on: 05 Jun 2003, 15:39:26 »
That's easy.

Create a gamelogic and name it "server", or anything really.  You could call it "i_am_not_the_server" if you want.  :)

In your script, place this in the first line:

?!local "name of gamelogic":exit  

example:
?!local server:exit

Gamelogics are only created on the server computer.



« Last Edit: 05 Jun 2003, 15:40:01 by deaddog »