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

Deagles' Map Management 3.23


Post New Thread Reply   
 
Thread Tools Display Modes
whoville sheriff
Junior Member
Join Date: May 2007
Old 08-28-2007 , 22:54   Re: Deagles Map Management 2.47
Reply With Quote #21

Very easy to add my cvar to catch nominations. I'm just posting the code used. Here you go:
//first place to add
public say_nextmap(id){
new timeleft = get_timeleft()
new time2=timeleft-timeleft%60
new minutesleft=floatround(float(time2)/60.0)
new mapname[32]
get_mapname(mapname,31)
new smap[32]
get_cvar_string("amx_nextmap",smap,31)
if(minutesleft>=2&&!mselected) {
if(get_cvar_num("nominationsAllowed") == 1){
client_print(0,print_chat,"A Vote will occur in %d %s Say ^"nominations^" for a list of nominations.",(minutesleft==3||minutesleft==2 )?timeleft-100:minutesleft-2,(minutesleft==3||minutesleft==2)?"sec.":"mi n.")
}
}//this is continued


//this is the next place
public listnominations(id)
{
if(get_cvar_num("nominationsAllowed") == 1){
new a=0,string3[512],string1[128]
if(a<nmaps_num)
{
//show_hudmessage(id,"The following maps have been nominated for the next map vote:")
add(string3,511,"Maps that have been nominated for the next map vote:")
}
while(a<nmaps_num)
{
new name1[16]
get_user_name(whonmaps_num[a], name1, 25)
//set_hudmessage(255,0,0, 0.12, 0.3+0.08*float(a), 0, 15.0, 15.04, 1.5, 3.75, 2+a)
//show_hudmessage(id,"%s by: %s",nmaps[a],name1)
format(string1,128,"^n%s by: %s",nmaps[a],name1)
add(string3,511,string1,100)
a++
}
hudtext16(string3,random_num(0,222),random_nu m(0,111),random_num(111,222),300,10,random_nu m(6,,15,id)
}
}

//next spot
public HandleSay(id){
new chat[256]
read_args(chat, 256)
new saymap[256]
saymap=chat
remove_quotes(saymap)
new saymap2[28]
read_args(saymap2,2
remove_quotes(saymap2)
new chat2[32]
format(chat2,31,"cs_%s",saymap2)
if(containi(chat,"lastmapsplayed") != -1){
client_print(id,print_center,"The last maps played are now listed in your console")
show_lastmapsplayed(id)
}
if(containi(chat, "<")!=-1||containi(chat, "?")!=-1||containi(chat, ">")!=-1||containi(chat, "*")!=-1||containi(chat, "&")!=-1||containi(chat, ".")!=-1)
{
return PLUGIN_CONTINUE
}
if(containi(chat, "nominations") != -1)
{
if(get_cvar_num("nominationsAllowed") == 0){
client_print(id,print_chat,"Nominations are not currently allowed, maps will be chosen randomly")
return PLUGIN_HANDLED
}
if(mselected)
client_print(id,print_chat, "Vote in progress....")
else
if(nmaps_num==0)
client_print(id,print_chat, "No maps have been nominated so far, type nominate map_name to nominate a map")
else
listnominations(id)
}
else

//only 2 more to go lol
public handle_nominate(id,map[])
{
if(get_cvar_num("nominationsAllowed") == 0){
client_print(id,print_chat,"Nominations are not currently allowed")
return PLUGIN_HANDLED
}

//last place
plugin_init(){
register_cvar("nominationsAllowed","1")}

Last edited by whoville sheriff; 08-28-2007 at 22:57.
whoville sheriff is offline
James
Senior Member
Join Date: Dec 2004
Old 08-31-2007 , 05:17   BUG:
Reply With Quote #22

In voting doesnt show each player vote.

amx_vote_answers = 1, but this

client_print(0,print_chat,"%L",LANG_PLAYER,"D MAP_CHOSE_MAPEXTENDING", name )
else if ( key < maps_to_select )
client_print(0,print_chat,"%L",LANG_PLAYER,"D MAP_CHOSE_MAP", name, nmaps[nnextmaps[key]] )

doesnt show. With 2.30b works fine, any solution?
__________________
Do good things, and good things happen to you
James is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-31-2007 , 13:23   Re: Deagles Map Management 2.47
Reply With Quote #23

Well thats kinda weird, i highly doubt its the code, cause it works in all my servers. (it shows who voted for what map). Do you have the .txt file where its supposed to be?
__________________
bmann_420 is offline
James
Senior Member
Join Date: Dec 2004
Old 08-31-2007 , 14:12   Re: Deagles Map Management 2.47
Reply With Quote #24

Quote:
Originally Posted by bmann_420 View Post
Well thats kinda weird, i highly doubt its the code, cause it works in all my servers. (it shows who voted for what map). Do you have the .txt file where its supposed to be?
Yes, others messages works... It is strange ..
__________________
Do good things, and good things happen to you
James is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-31-2007 , 15:13   Re: Deagles Map Management 2.47
Reply With Quote #25

Found a small language error.

It's trying to read this:
MAP_LISTMAPS_FINISHED = Finished displaying %d maps in your console.

When it should try and read this:
DMAP_LISTMAPS_FINISHED = Finished displaying %d maps in your console.

You forgot to add the D in DMAP.
hlstriker is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-31-2007 , 15:34   Re: Deagles Map Management 2.47
Reply With Quote #26

Thankx bud, im just trying to Indent alll of the code now, and the indenter gave me 49 errors, which in turn, as you fix them slowly, give you about 70 of em. Im down to 9 and cant seem to get rid of em all. lol When I put out that one, pretty soon here I will make that change and a few others with a new language.
__________________
bmann_420 is offline
CaPtAiN AmErIcA
Junior Member
Join Date: Jun 2007
Location: Best country in the worl
Old 08-31-2007 , 23:36   Re: Deagles Map Management 2.47
Reply With Quote #27

There is a part of this plugin that shows messages about the maps and what-not. In my server, I set it to 20 minutes.

How do I turn that off? I don't need anything flashing on the screen about maps. I tried to set it to zero, but it wouldn't let me.
CaPtAiN AmErIcA is offline
Dominion
Senior Member
Join Date: Jun 2006
Location: Cologne
Old 09-02-2007 , 12:17   Re: Deagles Map Management 2.47
Reply With Quote #28

the new version 2.47 kick player before map changes.
old version 2.30b works good.
pls fix the kickbug.
__________________
Die Fun Server Community
www.gamer-fun.de
Dominion is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 09-02-2007 , 16:03   Re: Deagles Map Management 2.47
Reply With Quote #29

lol, what other plugins do u have running? If I cant reproduce it, then I wont know how to fix it, and I have had 2.47 running for a while on a few of my servers. So its either a conflict, or something else besides the plugin i believe. Unless other people have this issue, I dunno. THeir is over 100 people with this version right now, so I would like to know.

@Captain,

It wouldnt be easy to get those off. And im sure exactly what messages your talking about. If its the HUD's then thats just too much work.
__________________

Last edited by bmann_420; 09-02-2007 at 22:01.
bmann_420 is offline
CaPtAiN AmErIcA
Junior Member
Join Date: Jun 2007
Location: Best country in the worl
Old 09-02-2007 , 22:14   Re: Deagles Map Management 2.47
Reply With Quote #30

It wouldnt be easy to get those off. And im sure exactly what messages your talking about. If its the HUD's then thats just too much work.[/quote]


No problem. I figured it would be quite an undertaking to do that but thought I would ask anyhow. I will just set the messages to every 20 minutes and be done with it. Thanks for the response! +karma for you
CaPtAiN AmErIcA is offline
Reply


Thread Tools
Display Modes

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 04:54.


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