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

[HELP] Different lighting on different maps


Post New Thread Reply   
 
Thread Tools Display Modes
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-22-2014 , 16:11   Re: [HELP] Different lighting on different maps
Reply With Quote #11

Quote:
Originally Posted by mastera40 View Post
I have another question: How can I create random spawn points for maps ?
I added a couple of maps that don't have a csdm respawn file.
I answered on your PM, but here is answer here as well => https://forums.alliedmods.net/showth...32086?p=432086
__________________
H.RED.ZONE is offline
mastera40
Member
Join Date: Jul 2014
Old 07-22-2014 , 16:55   Re: [HELP] Different lighting on different maps
Reply With Quote #12

Thanks !
One more thing... I am using the plugin "Zombie Werewolf and extra item silver bullets" but I found a bug.
When you are a human you still don't get damaged if you have selected the werewolf class. Can you try to fix this ?
Attached Files
File Type: sma Get Plugin or Get Source (zp_class_werewolf.sma - 263 views - 8.1 KB)
mastera40 is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-22-2014 , 17:11   Re: [HELP] Different lighting on different maps
Reply With Quote #13

Quote:
Originally Posted by mastera40 View Post
Thanks !
One more thing... I am using the plugin "Zombie Werewolf and extra item silver bullets" but I found a bug.
When you are a human you still don't get damaged if you have selected the werewolf class. Can you try to fix this ?
Bad coded don't use it. In case you don't want to take my advice try this:
Spoiler
__________________
H.RED.ZONE is offline
Drissdev1
Senior Member
Join Date: Jun 2014
Old 07-22-2014 , 21:03   Re: [HELP] Different lighting on different maps
Reply With Quote #14

Thanks H.RED.ZONE
__________________
Drissdev1 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-22-2014 , 21:38   Re: [HELP] Different lighting on different maps
Reply With Quote #15

@H.RED.ZONE
If that plugin is badly coded then what you just wrote is not plugin at all.

My version:
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
set_task0.1"little_delay" // just in case i guess
}

public 
little_delay()
{
    new 
m[32]
    
get_mapname(mcharsmax(m))
    new 
fn[64]
    
formatfncharsmax(fn), "maps/%s.ini")
    if( 
file_exists(fn) )
    {
        new 
fl[64]
        
fopen(fn"rt")
        while (
&& !feof(f))
        {
            
fgets(flcharsmax(l))
            
replace(lcharsmax(l), "^n""")
            if( 
l[0] == '/' || l[0] == ' ' || !l[0] ) continue
            
server_cmd)
        }
        if (
ffclose(f// always forgot this ...
    
}

How this works:
Create in map folder for example de_dust2.ini
write inside of file this:
Quote:
zp_lighting c
And then in de_dust2 map you have c lighting level.
You can also put there any command from zombieplague.cfg you want, it will work.

Last edited by .Dare Devil.; 07-22-2014 at 21:43.
.Dare Devil. is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 07-22-2014 , 22:18   Re: [HELP] Different lighting on different maps
Reply With Quote #16

The best way is to put mapname.cfg on amxmodx/configs/maps with zp_lighting X cvar.
__________________



pacheco is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-23-2014 , 01:50   Re: [HELP] Different lighting on different maps
Reply With Quote #17

Quote:
Originally Posted by pacheco View Post
The best way is to put mapname.cfg on amxmodx/configs/maps with zp_lighting X cvar.
sadly no one seems to know that things ...
.Dare Devil. is offline
mastera40
Member
Join Date: Jul 2014
Old 07-23-2014 , 04:34   Re: [HELP] Different lighting on different maps
Reply With Quote #18

Quote:
Originally Posted by H.RED.ZONE View Post
Bad coded don't use it. In case you don't want to take my advice try this:
Spoiler
I do not understand you... the plugin now works perfectly. Why do you keep repeating "don't use it" when it works without problems.
P.S. The plugin works great, thank you for your help !

Last edited by mastera40; 07-23-2014 at 04:35.
mastera40 is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-23-2014 , 07:22   Re: [HELP] Different lighting on different maps
Reply With Quote #19

Quote:
Originally Posted by .Dare Devil. View Post
@H.RED.ZONE
If that plugin is badly coded then what you just wrote is not plugin at all.
It's an example and its not a plugin however you call this one a plugin? You didn't registered it because yours one is same as my just an example.

Quote:
Originally Posted by mastera40 View Post
I do not understand you... the plugin now works perfectly. Why do you keep repeating "don't use it" when it works without problems.
P.S. The plugin works great, thank you for your help !
I know it works but it would be much better if you ask people to optimize it, and no problem im glad to help as always (:
__________________
H.RED.ZONE is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-23-2014 , 07:39   Re: [HELP] Different lighting on different maps
Reply With Quote #20

Quote:
Originally Posted by H.RED.ZONE View Post
It's an example and its not a plugin however you call this one a plugin? You didn't registered it because yours one is same as my just an example.

Too lazy to write something useful to you...

Last edited by .Dare Devil.; 07-23-2014 at 07:39.
.Dare Devil. 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 02:27.


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