Fixed Two Bugs

This commit is contained in:
Cooldude2606
2018-10-13 18:02:54 +01:00
parent dd5b1ac907
commit 50d74d5eed
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ ThisModule.Gui = Gui.popup{
local btn = next:draw(title)
btn.style.width = 20
btn.style.height = 20
if Role and Role.allowed(frame.player_index,'create-poll') or player.admin then
if Role and Role.allowed(frame.player_index,'create-poll') or game.players[frame.player_index].admin then
local btn = create_poll:draw(title)
btn.style.width = 20
btn.style.height = 20