Raised This Month: $ Target: $400
 0% 

BlackOut


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 10-03-2007 , 21:13   BlackOut
Reply With Quote #1

im trying to edit a plugin M249-M4A1 made it BlackOuts Maps
Would this work?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "Map Blackout"
#define VERSION "1.0"
#define AUTHOR "M249-M4A1"
new p_lights
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_concmd("amx_blackout""BlackOut",ADMIN_IMMUNITY,"- Turns All Lights Off")
 
p_lights register_cvar"amx_blakcoutlights""a" );
}
public 
BlackOut() {
 new 
mapname[33]
 
get_mapname(mapname32)
 
  
set_lights(float(get_pcvar_num(p_lights)), id)
  
 return 
PLUGIN_HANDLED

__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode