7 posts,
3 people · 3,653 views
Thread Rating: ★★★★★
| closedChanging of Darkness on Maps |
| Started by {SR} *Raggy* on 09-02-2006, 08:23 PM |
started this thread
Posts: 370Threads: 27
Joined: Apr 2006
09-02-2006, 08:23 PM
#1
I was wondering if anyone knew how to change the darkness of a map on DoD?
posted here
Posts: 2,068Threads: 103
Joined: May 2005
09-02-2006, 08:36 PM
#2
this might be sorta like what you're looking for..nnhttp://mods.teamcdrive.com/download.php?view.46
posted here
Posts: 794Threads: 54
Joined: May 2005
09-02-2006, 08:36 PM
#3
I was wondering if anyone knew how to change the darkness of a map on DoD?n n
n/* AMXX - amx_lightsn*n* Copyright 2004, Written by Rattlern* This file is provided as is (absolutely no warranties)n*n* Change Logsn* v1.2 - Added Admin Checkn* v1.1 - Added [off] or [OFF] commandsn* v1.0 - Actually workedn*n* Commandsn* ====================n* amx_lights <a through z> -- Sets the light leveln* amx_lights off or OFF -- Normal light leveln*n*n* Requirementsn* ====================n* The following modules are requiredn*n* [amxmodx.inc]n* [engine.inc]n* [amxmisc.inc]n*n*n*/n// Declare Commandsn//====================n#include <amxmodx>n#include <engine>n#include <amxmisc>n// p2k_lightsn//====================npublic admin_lights(id,level,cid)n{nif (!cmd_access(id,level,cid,2)){nconsole_print(id,"[AMXX] You have no access to that command.")nreturn PLUGIN_HANDLEDn}n nnew cmdarg[32]nread_argv(1,cmdarg,31)n nif (equal(cmdarg,"off")||equal(cmdarg,"OFF")){nset_lights("#OFF")nconsole_print(id,"[AMXX] Light Returned To Normal.")n}nelse{nset_lights(cmdarg)nconsole_print(id,"[AMXX] Light Change Successful.")n}nreturn PLUGIN_HANDLEDn}n// Declare Commandsn//====================npublic plugin_init()n{nregister_plugin("P2K Server Commands","1.2","Rattler")nregister_concmd("amx_lights","admin_lights",ADMIN_CVAR,"[a-z] - Light level | [off] - Normal Lights")n}nn namx_lights [a-z] - Light level | [off] - Normal Lightsn nexamples:namx_lights j -set lighting to "j" levelnamx_lights off - normal lighting
started this thread
Posts: 370Threads: 27
Joined: Apr 2006
09-03-2006, 09:35 AM
#4
Lol thanks for your replies at the same time. I'll try the both of those plugins. Thanks again guys Ye always help people like me out :)
posted here
Posts: 794Threads: 54
Joined: May 2005
09-03-2006, 03:01 PM
#5
Lol thanks for your replies at the same time. I'll try the both of those plugins. Thanks again guys Ye always help people like me out :)nLMAO, I realized afterwards that we posted at the same time, and discovered that I had somehow overlooked diamonds code on his site... use his version, I like his stuff, and he writes some easy to read code... I would rather have his name as the author, then some other guy I never met... which is why I switched to his plugin after reading his post...
posted here
Posts: 2,068Threads: 103
Joined: May 2005
09-03-2006, 08:45 PM
#6
lmao... you people are strange
started this thread
Posts: 370Threads: 27
Joined: Apr 2006
09-04-2006, 02:42 PM
#7
LOL I only stated that ye posted at the same time :P

