Add more flag colors

This commit is contained in:
fishyWET 2015-07-13 12:36:16 +01:00 committed by rubenwardy
parent d8821e542b
commit 3f888b51c5
26 changed files with 20 additions and 3 deletions

View File

@ -248,7 +248,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
ctf.team(ctf.players[name].team).data.color = fields.color
ctf.save()
else
minetest.chat_send_player(name,"Color "..fields.color.." does not exist!")
local colors = ""
for color, code in pairs(ctf.flag_colors) do
if color ~= "" then
color ..= ", "
end
color ..= color
end
minetest.chat_send_player(name,"Color "..fields.color..
" does not exist! Available: " .. colors)
end
end
return true

View File

@ -23,9 +23,18 @@ minetest.register_privilege("ctf_admin", {
-- Colors
ctf.flag_colors = {
red = "0xFF0000",
red = "0xFF0000",
cyan = "0x00FFFF",
blue = "0x0000FF",
purple = "0x800080",
yellow = "0xFFFF00",
green = "0x00FF00",
blue = "0x0000FF"
pink = "0xFF00FF",
silver = "0xC0C0C0",
gray = "0x808080",
black = "0x000000",
orange = "0xFFA500",
gold = "0x808000"
}
-- Modules

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

View File

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 776 B

View File

Before

Width:  |  Height:  |  Size: 732 B

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

View File

Before

Width:  |  Height:  |  Size: 826 B

After

Width:  |  Height:  |  Size: 826 B

View File

Before

Width:  |  Height:  |  Size: 775 B

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

View File

Before

Width:  |  Height:  |  Size: 812 B

After

Width:  |  Height:  |  Size: 812 B

View File

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B