mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 08:04:39 +00:00
No menu until canVote
This commit is contained in:
parent
678b9d5708
commit
fad3656c7b
1 changed files with 3 additions and 0 deletions
|
|
@ -1063,6 +1063,9 @@ function LakRabbitGame::sendGameVoteMenu( %game, %client, %key )
|
||||||
|
|
||||||
%isAdmin = ( %client.isAdmin || %client.isSuperAdmin );
|
%isAdmin = ( %client.isAdmin || %client.isSuperAdmin );
|
||||||
|
|
||||||
|
if(!%client.canVote && !%isAdmin)
|
||||||
|
return;
|
||||||
|
|
||||||
if( %game.scheduleVote $= "" )
|
if( %game.scheduleVote $= "" )
|
||||||
{
|
{
|
||||||
if(!%isAdmin)
|
if(!%isAdmin)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue