Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Pomoc z komendami GM - pliki terabithia


Rekomendowane odpowiedzi

Opublikowano

Witam , Siema , ELDO 

 

Dodałem do common gm'ka w grze go mam ale nie działają mi komendy tzn. pisze jaki normalny "gracz" 

 

Tak jest ranga impementor , tak mam gm'a inaczej by mi go nad głową nie wyświetlało ...

 

https://scontent-waw1-1.xx.fbcdn.net/v/t35.0-12/24826032_1588545397878523_163053878_o.png?oh=9880518a63b7736cbce7009b0d278bd3&oe=5A28062A

 

 

sygna.png

  • Aive zmienił(a) tytuł na Pomoc z komendami GM - pliki terabithia
Opublikowano

	def __SendChatPacket(self, text, type):
        kolor_krolestwa = self.EMPIRE_NAME.get(net.GetEmpireID(), "")
#        if text[0] == '/':
#            if ENABLE_CHAT_COMMAND or constInfo.CONSOLE_ENABLE:
#                pass
#            else:
#                return
	        if net.IsChatInsultIn(text):
            chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
        else:
            playerName = player.GetName()
            if '/' == text[0] and 's' == text[1] and 'e' == text[2] and 't' == text[3] and '_' == text[4] and 'w' == text[5] and 'a' == text[6] and 'l' == text[7] and 'k' == text[8] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and 's' == text[1] and 'e' == text[2] and 't' == text[3] and '_' == text[4] and 'r' == text[5] and 'u' == text[6] and 'n' == text[7] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            if '/' == text[0] and 'l' == text[1] and 'o' == text[2] and 'g' == text[3] and 'o' == text[4] and 'u' == text[5] and 't' == text[6] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and 'q' == text[1] and 'u' == text[2] and 'i' == text[3] and 't' == text[4] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and (playerName == 'TreeN' or playerName == 'Winchester'):
                net.SendChatPacket(text)
                return
            elif chat.CHAT_TYPE_SHOUT == type:
                text = kolor_krolestwa + "|Hmsg:" + playerName + "|h" + playerName + "|h|r : " + text
            else:
                text = playerName + " : " + text
            net.SendChatPacket(text, type)
	

Ja pierdole, serio? To niezły pajton. ~ Hard Coding.

  • 3 miesiące temu...
Opublikowano
Dnia 5.12.2017 o 16:45, Lovable napisał:

 


	def __SendChatPacket(self, text, type):
        kolor_krolestwa = self.EMPIRE_NAME.get(net.GetEmpireID(), "")
#        if text[0] == '/':
#            if ENABLE_CHAT_COMMAND or constInfo.CONSOLE_ENABLE:
#                pass
#            else:
#                return
	        if net.IsChatInsultIn(text):
            chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
        else:
            playerName = player.GetName()
            if '/' == text[0] and 's' == text[1] and 'e' == text[2] and 't' == text[3] and '_' == text[4] and 'w' == text[5] and 'a' == text[6] and 'l' == text[7] and 'k' == text[8] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and 's' == text[1] and 'e' == text[2] and 't' == text[3] and '_' == text[4] and 'r' == text[5] and 'u' == text[6] and 'n' == text[7] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            if '/' == text[0] and 'l' == text[1] and 'o' == text[2] and 'g' == text[3] and 'o' == text[4] and 'u' == text[5] and 't' == text[6] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and 'q' == text[1] and 'u' == text[2] and 'i' == text[3] and 't' == text[4] and (playerName != 'TreeN' or playerName != 'Winchester'):
                net.SendChatPacket(text)
                return
            elif '/' == text[0] and (playerName == 'TreeN' or playerName == 'Winchester'):
                net.SendChatPacket(text)
                return
            elif chat.CHAT_TYPE_SHOUT == type:
                text = kolor_krolestwa + "|Hmsg:" + playerName + "|h" + playerName + "|h|r : " + text
            else:
                text = playerName + " : " + text
            net.SendChatPacket(text, type)
	

 

Ja pierdole, serio? To niezły pajton. ~ Hard Coding.

gdzie to znajde ??

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...