Raised This Month: $ Target: $400
 0% 

Own Mapchooser


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 10-30-2013 , 10:26   Own Mapchooser
Reply With Quote #1

Hello.
GoldSrc (CS) (without AMXX) have own mapcycle system ("mapcycle.txt"), and it works even works AMXX Mapchooser system.

Default Mapchooser system of AMXX works via two plugins:
Code:
nextmap.amxx        ; displays next map in mapcycle
mapchooser.amxx        ; allows to vote for next map
And we can see this "hack" in "nextmap.sma":
PHP Code:
public changeMap()
{
    new 
string[32]
    new 
Float:chattime get_cvar_float("mp_chattime")
    
    
set_cvar_float("mp_chattime"chattime 2.0)        // make sure mp_chattime is long
    
new len getNextMapName(string31) + 1
    set_task
(chattime"delayedChange"0stringlen)    // change with 1.5 sec. delay

For example, I want create my own mapchooser (mapcycle) system.
And I do not want to use this "hack". What are the options?
Can I set default nextmap (not amx_nextmap, like from "mapcycle.txt") for server via AMXX?

Last edited by Phant; 10-30-2013 at 10:31.
Phant is offline
Send a message via ICQ to Phant
 



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 23:19.


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