Raised This Month: $ Target: $400
 0% 

Subplugin Submission [T] List of Modified + Requested Plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-22-2014 , 08:50   Re: [ZP] List of Modified + Requested Plugin
Reply With Quote #11

New update!
Quote:
Adding addon: Lighting for Specific Map
Original thread, here.
PHP 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(map31)
    new 
i
    
    
for(i=0;isizeof(g_maps);i++) {
        if(
equal(mapg_maps[i])) {
                    
server_cmd"zp_lighting a" )
            break
        }
    }
    
    for(
i=0;isizeof(g_maps2);i++) {
        if(
equal(mapg_maps2[i])) {
                    
server_cmd"zp_lighting b" )
            break
        }
    }
    
    for(
i=0;isizeof(g_maps3);i++) {
        if(
equal(mapg_maps3[i])) {
                    
server_cmd"zp_lighting c" )
            break
        }
    }


Last edited by zmd94; 07-23-2014 at 04:41.
zmd94 is offline
 



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:13.


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