View Single Post
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 01-28-2011 , 11:13   [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #1

This Plugin Must work like this.
When We Playng this map zm_egypt_[Evil-Night]
The zp_lighting set to 0
it mean the costom zp lihting are disable.
I made one plugin but it not work

PHP Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Map Tag [evil-night] zp_lighting set 0"
#define VERSION "1.0"
#define AUTHOR "Dare-Devil"
#define SPAWNFLAGS 768
public plugin_init() 
{
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Map Tag [evil-night] zp_lighting set 0"
#define VERSION "1.0"
#define AUTHOR "Dare-Devil"
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 new 
map_name[10]; get_mapname(map_namecharsmax(map_name))
 
 if(
equal(map_name,"%s [Evil-Night]"))
 {
 
server_cmd("zp_lighting 0")
}
}

or this one

PHP Code:
#include <amxmodx>
#define PLUGIN "Map Tag [evil-night] zp_lighting set 0"
#define VERSION "1.0"
#define AUTHOR "Dare-Devil"
 
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 new 
map_name[10]; get_mapname(map_namecharsmax(map_name))
 
 if(
equal(map_name,"%s [Evil-Night]"))
 {
  
set_cvar_string("zp_lighting 0")
}


Last edited by .Dare Devil.; 01-28-2011 at 12:05.
.Dare Devil. is offline