// MODE script

// definitions
[color=#cc0000]//________________________________
//global variable system for object synchro  !!!DONT CHANGE THOSE!!!
#define GVAR_SERVER     600 //channel for server  ( dont add SC_MP_Gvar_SetSynchro for that) 0 - not server, 1 - server
#define GVAR_COUNT      601 //channel for count of Global variables (dont add SC_MP_Gvar_SetSynchro for that)
#define GVAR_USE_start  602 //channel for start nr. of Global variable channel
//________________________________
[/color]
....



....
int ScriptMain(s_SC_NET_info *info)
....
....

   case SC_NET_MES_LEVELINIT:
[color=#cc0000]      //_____________________________________automatic custom global variables_________________
      for (i=GVAR_USE_start;i<GVAR_USE_start+SC_ggi(GVAR_COUNT)+1;i++){   //custom global variables
         SC_MP_Gvar_SetSynchro(i); 
      }
      //_______________________________________________________________________________
[/color]
      ...
      ...


      
[color=#cc0000]      SC_sgi(GVAR_SERVER,0); // 0 = not server. 0 for all now, but server PC changed it later to 1[/color]

      if (info->param2){
         if (info->param1){// it's server

[color=#cc0000]            //____________
            SC_sgi(GVAR_SERVER,1);//For object scripts 
            //then object script have info is it on server or client machine
            //its not synchronized Global Variable 
            //____________[/color]

            ....