Re: Deagles Map Management 2.47
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,8),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,28) 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")} |
BUG:
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? |
Re: Deagles Map Management 2.47
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?
|
Re: Deagles Map Management 2.47
Quote:
|
Re: Deagles Map Management 2.47
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. |
Re: Deagles Map Management 2.47
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. :D
|
Re: Deagles Map Management 2.47
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. |
Re: Deagles Map Management 2.47
the new version 2.47 kick player before map changes.
old version 2.30b works good. pls fix the kickbug. |
Re: Deagles Map Management 2.47
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. |
Re: Deagles Map Management 2.47
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 |
| All times are GMT -4. The time now is 08:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.