Raised This Month: $ Target: $400
 0% 

if map name do this else do that


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Artifact
Veteran Member
Join Date: Jul 2010
Old 09-10-2012 , 18:09   Re: if map name do this else do that
Reply With Quote #2

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

new const g_maps[]=
{
    
"de_dust2",
    
"de_inferno",
    
"de_nuke"
}

public 
plugin_init() {
    
register_plugin("""""")
    
set_task(5.0"chackMap")
}

public 
chackMap()
{
    new 
map[32]
    
get_mapname(map31)
    for(new 
i=0;i<=g_maps[i];i++)
    {
        if(!
equal(mapg_maps))
        {
            
//do something
        
}
    }

untested
__________________

Last edited by Artifact; 09-11-2012 at 07:23.
Artifact 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 08:22.


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