home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / jteam092 / motd.qc < prev    next >
Encoding:
Text File  |  1996-08-16  |  830 b   |  47 lines

  1. /*
  2.     motd.qc
  3.  
  4.     Part of The Complete Enhanced Teamplay
  5.  
  6.     John Spickes    jspickes@eng.umd.edu
  7.  
  8.     $Id: MOTD.QC 1.11 1996/08/17 00:22:51 jspickes Exp $
  9.  
  10.     $Log: MOTD.QC $
  11.     Revision 1.11  1996/08/17 00:22:51  jspickes
  12.     Use the .flag entry FL_MOTDVIEWED instead of .motd float.
  13.  
  14. */
  15.  
  16. /*
  17. ================
  18. MOTDShow
  19.  
  20. Display the MOTD.
  21. ================
  22. */
  23. void() MOTDShow =
  24. {
  25.     /* Servers!  Add your motd here! */
  26.     
  27.     sprint(self,"This server uses\n-The Complete Enhanced Teamplay-\nImpulse 25 for current settings.\n");
  28.     sprint(self,"Impulse 26 to redisplay MOTD\n");
  29. };
  30.  
  31. /*
  32. ================
  33. MOTDCheck
  34.  
  35. Display the MOTD if needed, and set self.motd to 1.
  36. ================
  37. */
  38. void() MOTDCheck =
  39. {
  40.     if( !(self.flags & FL_MOTDVIEWED) )
  41.     {
  42.         MOTDShow();
  43.         self.flags = self.flags | FL_MOTDVIEWED;
  44.     }
  45. };
  46.     
  47.