Hey guys ive decided to make a new topic for my plugin since it didnt really belong in the old topic i made, so heres what ive made so far and i would like it if you guys could help me finish it
the idea is:
Quote:
|
in ns we have alot of trouble with combat matches ending when we dont so what the mod does is 5 mins before the end of a co_ map it will keep a eye out to see if the word extend has been said more then 5 times and if it has it will call for a vote and if it gets yes it increases the sv_combattime up by like 10 mins
|
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <ns>
#define PLUGIN "extend caller"
#define VERSION "0.0.1"
#define AUTHOR "semaja2"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_sayextend", "extend", ADMIN_SLAY, "Set to 1 to enable")
/* ns_is_combat ( ) -----removed for now------
if ns_is_combat==1
return PLUGIN_HANDLED*/
}
public extend () {
new maptime = get_cvar_num ( const sv_combattime[] )
set_cvar_num ( const sv_combattime[],maptime++10 )
return PLUGIN_HANDLED
}
[/small]