Step 1.
Open file events.inl.
Find function public EVENT_PlayerInitialSpawn( idUser )
Add code:
Code:
Code
if ( CVAR_csdm_active == 0)
Screen:
Step 2.
Open file war3ft.inl.
Find function WC3_PostSpawn( idUser )
Add code:
Code:
Code
if (( CVAR_csdm_active > 0 && get_pcvar_num( CVAR_csdm_active ) == 1 ))
WC3_NewSession( idUser );
Screen: