PDA

View Full Version : Old vote with !command



thOuMta
29th December 2015, 09:10
Hello,

I try make !votemap_maprestart for exemple but with the old cod2 vote system nothing more.



case "votemap_maprestart":
self.id=self getEntityNumber();
self setClientCvar ("clientcmd", "say !votemap_maprestart");
self openMenu ("clientcmd");
self closeMenu ("clientcmd");
wait 0.1;
self openMenu(game["menu_callvote"]);
self ExecClientCmd( "callvote map_restart" );
wait 0.1;
self closeMenu(game["menu_callvote"]);
self thread tellmessage(self.name + " ^7CallVote map_rotate");
return;


If someone can tell me :) i think is " self ExecClientCmd( "callvote map_restart" ); "
Thanks.

IzNoGoD
29th December 2015, 13:53
seta sv_floodprotect "0"

thOuMta
29th December 2015, 15:13
the same doesn't work

IzNoGoD
29th December 2015, 15:16
are you sure it's set?

thOuMta
29th December 2015, 15:19
yes ofc :)

Selbie
30th December 2015, 12:58
Try:



case "votemap_maprestart":
self setClientCvar ("clientcmd", "say !votemap_maprestart; callvote map_restart;");
self openMenu ("clientcmd");
self closeMenu ("clientcmd");
wait .1;
self thread tellmessage(self.name + " ^7CallVote map_rotate");
break;

thOuMta
30th December 2015, 14:32
Working ! thx :)
But sometime i got a message "Unknown command getinfo" & "Unknown command getstatus"

maxdamage99
1st January 2016, 17:05
th0uMta you use libcod?!

Ni3ls
2nd January 2016, 08:23
yes he does ;)