Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › DoD Plugins › Test Plugins › Realism Settings
1 post · 5,523 views Thread Rating: ★★★★★
closedRealism Settings
Started by miguelster11 on 03-12-2011, 03:20 AM
M miguelster11
started this thread
Posts: 1
Threads: 1
Joined: Feb 2011
03-12-2011, 03:20 AM #1

So basically I was sitting and I remembered how it took a while for me to type in commands in console like amx_cvar "mp_friendlyfire 1" so I could start a realism. But this was about a year ago I quit day of defeat and wanted to give you guys an idea you guys can finish it off if you want.nI didnt really check the errors or tried to compile got to lazy sorry x|nn

// Just an idea of what I was thinking of releasing but didnt quite finish it.n// If someone wants to finish it & or release it, do it.n#include < amxmodx >n#include < dodprintc > // Was suppose to be a DOD ColorChatnn#define rs "Realism Settings"nnew rc_onnnpublic plugin_init( ) {n	register_plugin ( "DOD: Realism Settings", "1.0", "Miguelster11" )n	rc_on = register_concmd ("amx_realism", "rc", ADMIN_KICK, "Off:0/On:1/Pregame:2 " )n}nnrc( id, level ) {n	if(!(get_user_flags( id )  & level ) ) {n		console_print( id, "You have no access to that command." )n		return PLUGIN_HANDLEDn	}n	if ( rc_on == 0 ) {n		server_cmd( "exec server.cfg" ) // executes server settingsn		dod_printc( 0, "[%s] Mode: Off", rs )n		dod_printc( 0, "[%s] Executed Server Configuration", rs );n		//thirdperson[0] = false; <-- It was going to allow them to use thirdperson againn	}n	else if ( rc_on == 1 ) {n		dod_printc( 0, "[%s] Realism Mode: On", rs )n		server_cmd( "sv_alltalk 0" )n		server_cmd( "mp_friendlyfire 1" )n		// I quit DOD A Year ago so I don't know any of the settings use for realism.n		//thirdperson[0] = true; <-- Basically it was going to turn off thirdperson mode.n		set_task( 1.0, "rc_realism", 0 )n	}n	else if ( rc_on => 2 ) {n		dod_printc( 0, "[%s] Pregame Mode: On", rs )n		server_cmd( "sv_alltalk 1" )n		server_cmd( "mp_friendlyfire 1" )n		// I quit DOD A Year ago so I don't know any of the settings use for realism.n		//thirdperson[0] = true; <-- Basically it was going to turn off thirdperson mode.n		set_task( 1.0, "rc_pregame", 0 )n	}n}nnrc_realism( ) {n	dod_printc( 0, "[%s] Alltalk: Off", rs )n	dod_printc( 0, "[%s] Friendly Fire: On", rs )n}nnrc_pregame( ) {n	dod_printc( 0, "[%s] Alltalk: On", rs )n	dod_printc( 0, "[%s] Friendlyfire: On", rs )n}
Archive › Old Forum Threads › DoD Plugins › Test Plugins › Realism Settings
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC