Raised This Month: $51 Target: $400
 12% 

[Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0


Post New Thread Reply   
 
Thread Tools Display Modes
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
wisam187
Senior Member
Join Date: Jan 2011
Location: In My Own World
Old 01-28-2011 , 11:54   Re: it is possible to make This.
Reply With Quote #2

why giving yourself so much pain?

try this plugin....
https://forums.alliedmods.net/showthread.php?t=97020

put the .txt file attached there in the following file:

cstrike\addons\amxmodx\data\lang

you can vote for the light you want
__________________
If you fail to plan..... you plan to fail.

the real mistake is the one which we dont learn from it
wisam187 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 01-28-2011 , 12:01   Re: it is possible to make This.
Reply With Quote #3

Quote:
Originally Posted by wisam187 View Post
why giving yourself so much pain?

try this plugin....
https://forums.alliedmods.net/showthread.php?t=97020

put the .txt file attached there in the following file:

cstrike\addons\amxmodx\data\lang

you can vote for the light you want
i mean this plugin . when map "zm_egypt_[Evil-Night]"
zp_lighting set 0 .
when map tag is [Evil-Night] then this plugin set zp_lighting 0
but my plugin dont work.
.Dare Devil. is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 01-28-2011 , 12:17   Re: [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #4

first , bad coded , second , zp_lighting command should be strings , not numbers.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 01-28-2011 , 12:22   Re: [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #5

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(
containi(map_name,"[Evil-Night]"))
     {
          
set_cvar_num("zp_lighting"0)
     }

__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-28-2011 , 12:25   Re: [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #6

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 
szMapName[32// bigger size 
    
get_mapname(szMapNamecharsmax(szMapName))

    if(
containi(szMapName"[Evil-Night]"))
        
set_cvar_string("zp_lighting""0")

__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 01-28-2011 , 12:36   Re: [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #7

Thanks nikhilgupta345 and meTaLiCroSS , But what is the difference between set_cvar_string and set_cvar_num.
.Dare Devil. is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-28-2011 , 13:11   Re: [Need Little Help] Map Tag "_[Evil-Night]" zp_lighting set 0
Reply With Quote #8

Quote:
Originally Posted by .Dare Devil. View Post
Thanks nikhilgupta345 and meTaLiCroSS , But what is the difference between set_cvar_string and set_cvar_num.
The ZP core gets the cvar value as an string, not as a number.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Reply



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 20:38.


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