public plugin_init() {
register_clcmd("say_text","myVoteTallySub")
}
public myVoteTallySub(id) {
new text[64];
read_args(text,63);
if ( contain(text,"yes") > -1 ) {
voteTally++;
}
}
new map[33];
new votableMaps[255];
get_mapname(map, 32);
//one if for each map
if ( contain(map, "helena") > -1 ) {
votableMaps="keledrosprelude daragoth thornlands";
}
new text[64];
new startedMapVoteFlag[1];
startedMapVoteFlag[0] = 0;
read_args(text,63);
if ( contain(text, "votemap") >-1 ) {
//one if for each map
if ( contain(text, "daragoth") > -1 & contain(votableMaps,"daragoth" > -1 ) {
myStartVoteSub();
startedMapVoteFlag[0] = 1;
}
if ( startedMapVoteFlag[0] == 0 ) {
client_print(id, print_chat, "You may only vote for the following maps:");
client_print(id, print_chat, "%s", voteableMaps);
}
}
set_hudmessage(red,green,blue, 0.028, 0.125, 2, 0.02,displaytime, 0.01, 0.1, 4)
to:
set_hudmessage(red,green,blue, 0.1, 0.125, 2, 0.02,displaytime, 0.01, 0.1, 4)
if ( contain(map,"sfor") > -1 ) { client_print(id, print_chat, "Adjacent Areas: calruin challs"); }