-
Old vote with !command
Hello,
I try make !votemap_maprestart for exemple but with the old cod2 vote system nothing more.
PHP Code:
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.
-
-
-
-
-
Try:
Code:
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;
-
Working ! thx :)
But sometime i got a message "Unknown command getinfo" & "Unknown command getstatus"
-
-