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

Module: Map Name Patcher v1.0 [Linux + Windows]


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-15-2012 , 08:30   Re: AMX Mod X: MapName Patcher 1.0 [Linux + Windows]
Reply With Quote #11

Quote:
Originally Posted by xakintosh View Post
Just a question is it possible to change Dust2 ( Bomb ) to Private without dust2 extension.
I don't understand, please rephrase.
You may change map name however you want.
__________________

Last edited by claudiuhks; 10-15-2012 at 08:31.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 10-17-2012 , 17:53   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #12

Cool stuff
I remove the prefix from the map name (de_, cs_, as_, awp_, etc).

PHP Code:
    new szMapName32 ]
    
get_mapnameszMapNamecharsmaxszMapName ) )
    
    if( 
containiszMapName"_" ) != -)
    {
        new 
szMapPrefix10 ]
        new 
szMapSufix32 ]
        
        
strtokszMapNameszMapPrefixcharsmaxszMapPrefix ), szMapSufixcharsmaxszMapSufix ), '_' )
        
        
Patch_MapNameszMapSufix )        
    } 
guipatinador is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-18-2012 , 22:22   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #13

good job guys ,I just lazy to make module
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Brian-__-
Member
Join Date: Jan 2010
Old 10-19-2012 , 12:39   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #14

Is it possible to modify current players num in queries (without stupid fake players)?

Last edited by Brian-__-; 10-19-2012 at 12:40.
Brian-__- is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 10-19-2012 , 14:05   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #15

Quote:
Originally Posted by Brian-__- View Post
Is it possible to modify current players num in queries (without stupid fake players)?
No, not posibble
__________________
kiki33hun is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-28-2013 , 18:11   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #16

small bug

start server

"de_dust" change to "Dust"

restart map - servers crash

because no map "Dust"
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
svida
Junior Member
Join Date: Jul 2010
Location: Ukraine
Old 11-14-2013 , 15:10   Re: Module: MapName Patcher v1.0 [Linux + Windows]
Reply With Quote #17

Problem wight walkguard
https://forums.alliedmods.net/showth...ight=walkguard
svida is offline
Send a message via ICQ to svida Send a message via Skype™ to svida
skatzfz
Senior Member
Join Date: Apr 2014
Old 06-22-2014 , 00:44   Re: Module: Map Name Patcher v1.0 [Linux + Windows]
Reply With Quote #18

Can this change each map name? Because I can only change all map names to the same name

Last edited by skatzfz; 06-22-2014 at 00:51.
skatzfz is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-22-2014 , 00:54   Re: Module: Map Name Patcher v1.0 [Linux + Windows]
Reply With Quote #19

Quote:
Originally Posted by skatzfz View Post
Can this change each map name? Because I can only change all map names to the same name
So read the map name first and then change it depending on what the original map was.
if ( equal(map, "de_dust") )
patch mapname 1
else if ( ...
__________________

Last edited by Black Rose; 06-22-2014 at 11:00.
Black Rose is offline
skatzfz
Senior Member
Join Date: Apr 2014
Old 06-22-2014 , 01:30   Re: Module: Map Name Patcher v1.0 [Linux + Windows]
Reply With Quote #20

Yes after my post i realized how dumb I was

I made this way

Code:
#include < amxmodx >
#include < mapname_patcher >

public plugin_init()
{
    
    new szMapName[ 32 ]
    get_mapname( szMapName, charsmax( szMapName ) )
    
    if(equali(szMapName,"de_dust2"))
    {
    Patch_MapName( "de_dust2 [FZ]" );
    }
}

Last edited by skatzfz; 06-22-2014 at 01:31.
skatzfz 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 01:57.


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