Raised This Month: $ Target: $400
 0% 

Map Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-05-2017 , 15:42   Map Name
Reply With Quote #1

Hello Friends,
I want a plugin that is different than others.
I want to shorten the name of map. For example, I am tryna connect to server, I will download de_dust2.bsp, there will a vote. Everybody will vote to change the weather. Rainy or Sunny.
And after the vote, for example rainy wins and the map will be restarting. Map name will be "dust2(rain)" but the users won't download new map.
If you help me, thanks so much
PurposeLessx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-05-2017 , 16:11   Re: Map Name
Reply With Quote #2

Skies.....
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-05-2017 , 16:19   Re: Map Name
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Skies.....
What do you mean?
PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-05-2017 , 16:57   Re: Map Name
Reply With Quote #4

Change the sky.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-05-2017 , 17:14   Re: Map Name
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Change the sky.
No I want to change the name of map. The thing that's important, is changing the name of map.
I wanna shorten it.
PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-05-2017 , 17:36   Re: Map Name
Reply With Quote #6

Then rename the file.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-05-2017 , 17:41   Re: Map Name
Reply With Quote #7

Here's what you are looking for.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-05-2017 , 17:45   Re: Map Name
Reply With Quote #8

Quote:
Originally Posted by NiHiLaNTh View Post
Here's what you are looking for.
You're a king!!! Thanks
PurposeLessx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-05-2017 , 17:50   Re: Map Name
Reply With Quote #9

I want it but it is not working. Could you check the mistake in the plugin?

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

#include < svn_version >

#if AMXX_VERSION_NUM >= 175
    #pragma reqlib mapname_patcher

    #if !defined AMXMODX_NOAUTOLOAD
        #pragma loadlib mapname_patcher
    #endif
#else
    #pragma library mapname_patcher
#endif

/* MapName length should be longer than 0 and shorter than 129 */
native Patch_MapNameMapName[ ] );

#define MAPNAME_PATCHER_INCLUDED

#endif

public plugin_init() {
    
register_plugin("MapName""1.0""PurposeLess")
}

public 
plugin_cfg()
    
Patch_MapName("PurposeLess"
And here are these mistakes

Code:
/home/araclar/compiler/include/svn_version.inc(14) : warning 201: redefinition of constant/macro (symbol "AMXX_VERSION")
/home/araclar/compiler/include/svn_version.inc(15) : warning 201: redefinition of constant/macro (symbol "AMXX_VERSION_NUM")
/home/araclar/compiler/include/svn_version.inc(16) : error 021: symbol already defined: "AMXX_VERSION_STR"
//cstrike/addons/amxmodx/scripting/mapxsa.sma(21) : error 026: no matching "#if..."

2 Errors.
Could not locate output file /cstrike/addons/amxmodx/plugins/mapxsa.amx (compile failed).

Last edited by PurposeLessx; 07-05-2017 at 18:24.
PurposeLessx is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-06-2017 , 05:08   Re: Map Name
Reply With Quote #10

Instead of all this
Code:
#include < svn_version >

#if AMXX_VERSION_NUM >= 175
    #pragma reqlib mapname_patcher

    #if !defined AMXMODX_NOAUTOLOAD
        #pragma loadlib mapname_patcher
    #endif
#else
    #pragma library mapname_patcher
#endif

/* MapName length should be longer than 0 and shorter than 129 */
native Patch_MapName( MapName[ ] );

#define MAPNAME_PATCHER_INCLUDED

#endif
Add simply this
Code:
native Patch_MapName( MapName[ ] );
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
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 22:48.


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