Raised This Month: $ Target: $400
 0% 

[HELP] Different lighting on different maps


Post New Thread Reply   
 
Thread Tools Display Modes
mastera40
Member
Join Date: Jul 2014
Old 07-24-2014 , 08:59   Re: [HELP] Different lighting on different maps
Reply With Quote #31

EDIT:
Spoiler
[/QUOTE]

It doesn't work.
mastera40 is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 07-24-2014 , 09:19   Re: [HELP] Different lighting on different maps
Reply With Quote #32

I told you that it's badly coded i can't hit my self with that code to search (You know i can't test right now) who knows why it does not work if you want that much ill make you an XP Core plugin and set zombie classes as you want. Until i post it, use that as it is.
__________________
H.RED.ZONE is offline
mastera40
Member
Join Date: Jul 2014
Old 07-24-2014 , 09:20   Re: [HELP] Different lighting on different maps
Reply With Quote #33

Sounds good. I will wait then.
Thanks !
mastera40 is offline
mastera40
Member
Join Date: Jul 2014
Old 07-24-2014 , 10:47   Re: [HELP] Different lighting on different maps
Reply With Quote #34

Looooooool, I actually fixed it myself... you edited the wrong code, my friend.

I have no knowedge regarding code modifying whatsoever but I did manage to fix it when I looked at the plugin in-depth.

What did I do to fix it ?

Spoiler


A lil bit proud of myself actually.
mastera40 is offline
HamSwit
Member
Join Date: Nov 2014
Location: Romania
Old 01-10-2015 , 03:46   Re: [HELP] Different lighting on different maps
Reply With Quote #35

Quote:
Originally Posted by H.RED.ZONE View Post
Code:
#include <amxmodx>

// Light a
new const g_maps[][] = {
    "zm_dust2",
    "zm_inferno",
    "zm_nuke"
}

// Light b 
new const g_maps2[][] = {
    "zm_dsds",
    "zm_ids",
    "zm_nfsfs"
}

// Light c 
new const g_maps3[][] = {
    "zm_dgrg",
    "zm_igrgr",
    "zm_nrgrr"
}


public plugin_init() {
    register_plugin("map lights", "1.0", "blabla")
    set_task(5.0, "chackMap")
}

public chackMap() {
    new map[32]
    get_mapname(map, 31)
    new i
    
    for(i=0;i< sizeof(g_maps);i++) {
        if(equal(map, g_maps[i])) {
                    server_cmd( "zp_lighting a" )
            break
        }
    }
    
    for(i=0;i< sizeof(g_maps2);i++) {
        if(equal(map, g_maps2[i])) {
                    server_cmd( "zp_lighting b" )
            break
        }
    }
    
    for(i=0;i< sizeof(g_maps3);i++) {
        if(equal(map, g_maps3[i])) {
                    server_cmd( "zp_lighting c" )
            break
        }
    }
}
error 013: no entry point (no public functions)
HamSwit is offline
Send a message via Yahoo to HamSwit Send a message via Skype™ to HamSwit
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-10-2015 , 04:00   Re: [HELP] Different lighting on different maps
Reply With Quote #36

I can compile the code. So, what is the problem?
zmd94 is offline
HamSwit
Member
Join Date: Nov 2014
Location: Romania
Old 01-10-2015 , 04:08   Re: [HELP] Different lighting on different maps
Reply With Quote #37

Oh lol, my mistake...
HamSwit is offline
Send a message via Yahoo to HamSwit Send a message via Skype™ to HamSwit
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 15:16.


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