Jump to content
prohost

[CS:GO] Jak spolszczyć pluginy :-)

Recommended Posts

Nasz plugin spolszczamy w pliku .phrases znajdującym się w addons/sourcemod/translations.

 

Na przykład:

 

//**********************************************  Valid Colors	***********************************************
// {NORMAL}, {DARKRED}, {PINK}, {YELLOW}, {GREEN}, {LIGHTGREEN}, {RED}, {GRAY}, {BLUE}, {DARKBLUE}, {PURPLE}  *
//*************************************************************************************************************

"Phrases"
{
	"Command Access Denied Message"
	{		
		"en"		"{RED}You do not have access to this command."
	}

	"Knife Menu Disabled Message"
	{		
		"en"		"{RED}The Knife Menu has been disabled. Try using the {RED}!knifesname {NORMAL}chat triggers."
	}

	"Knife Access Denied Message"
	{		
		"en"		"{RED}You do not have access to this knife."
	}
	
	"No Longer Has Access to Current Knife"
	{
		"en"		"{RED}You no longer have access to your previously selected knife." 
	}
	
	"Spawn and Welcome Message"
	{		
		"en"		"Type {GREEN}!knife {NORMAL}or {RED}chat triggers {NORMAL}to select a new knife skin."
	}

	"Chat Triggers Message"
	{		
		"en"		"Triggers: {DARKRED}!bayonet {PINK}!gut {GREEN}!flip {RED}!m9 {GRAY}!karambit {DARKBLUE}!huntsman {PURPLE}!butterfly {YELLOW}!golden {BLUE}!default"
	}

	"Bayonet Given Message"
	{		
		"en"		"{DARKRED}You have chosen the Bayonet!"
	}

	"Gut Given Message"
	{		
		"en"		"{PINK}You have chosen the Gut knife!"
	}

	"Flip Given Message"
	{		
		"en"		"{GREEN}You have chosen the Flip knife!"
	}

	"M9 Given Message"
	{		
		"en"		"{RED}You have chosen the M9-Bayonet!"
	}

	"Karambit Given Message"
	{		
		"en"		"{GRAY}You have chosen the Karambit!"
	}

	"Huntsman Given Message"
	{		
		"en"		"{DARKBLUE}You have chosen the Huntsman knife!"
	}

	"Butterfly Given Message"
	{		
		"en"		"{PURPLE}You have chosen the Butterfly knife!"
	}

	"Default Given Message"
	{		
		"en"		"{BLUE}You have chosen the Default knife!"
	}

	"Golden Given Message"
	{		
		"en"		"{YELLOW}You have chosen the Golden knife!"
	}

 

Spolszczony będzie wyglądał w ten sposób:

 

//**********************************************  Valid Colors	***********************************************
// {NORMAL}, {DARKRED}, {PINK}, {YELLOW}, {GREEN}, {LIGHTGREEN}, {RED}, {GRAY}, {BLUE}, {DARKBLUE}, {PURPLE}  *
//*************************************************************************************************************

"Phrases"
{
  "Command Access Denied Message"
    {        
        "pl"        "{RED}Nie masz uprawnień do tej komendy"
    }
  
"Knife Menu Disabled Message"
  {		
    "en"		"{RED}Tłumaczysz na polski {RED}Polski {NORMAL}Polski"
  }

  "Knife Access Denied Message"
  {		
    "en"		"{RED}Nie masz uprawnień do tego noża"
  }
  
  "No Longer Has Access to Current Knife"
  {
    "en"		"{RED}Polski" 
  }
  
  "Spawn and Welcome Message"
  {		
    "en"		"{GREEN}Polski"
  }

  "Chat Triggers Message"
  {		
    "en"		"Poslki"
  }

  "Bayonet Given Message"
  {		
    "en"		"{DARKRED}Wybrałeś nóż Bayonet"
  }

  "Gut Given Message"
  {		
    "en"		"{PINK}Polskii"
  }

  "Flip Given Message"
  {		
    "en"		"{GREEN}Polski"
  }

  "M9 Given Message"
  {		
    "en"		"{RED}Polski"
  }

  "Karambit Given Message"
  {		
    "en"		"{GRAY}Polski"
  }

  "Huntsman Given Message"
  {		
    "en"		"{DARKBLUE}polski"
  }

  "Butterfly Given Message"
  {		
    "en"		"{PURPLE}Polski"
  }

  "Default Given Message"
  {		
    "en"		"{BLUE}Polski"
  }

  "Golden Given Message"
  {		
    "en"		"{YELLOW}Polski"
  }

 

{PINK}
{BLUE}
{YELLOW}
{GREEN}
{RED}
{DARKRED}
{PURPLE}
 
Są to kolory!

 

Jeżeli wstawimy na początek wiadomości kolor {RED} to wiadomość która będzie pokazywana na chacie będzie w kolorze czerwonym. Tak samo z innymi kolorami. Jeżeli chcesz mieć domyślny kolor nie wstawiasz nic.

Edited by bicek

Share this post


Link to post
Share on other sites

według mnie poradnik słaby.

- w tym przypadku występują kolory z powodu użycia modułu csgocolochat (czy jakoś tak).

- nie we wszystkich pluginch są pliki językowe.

- lepiej zostawić wersję en i zrobić dodatkowo własną pl (myślę o:)

 "Command Access Denied Message"
    {        
        "pl"        "{RED}Nie masz uprawnień do tej komendy."
        "en"        "{RED}You do not have access to this command."
    }

 

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Bioły
      Co tu dużo pisać? Plugin dodaje możliwość „lepszego" powiadamiania graczy o przeładowaniu mapy. Może komuś się przyda 😉
      Działanie:
      P.S. Literówka w overlayu jest poprawiona.
      Dobranocka.rar
    • By Walorek
      Zbliża się okres swiateczny. Macie jakies fajne pluginy na serwer?🙂
    • By MYGO.pl
      Description:

      Agents chooser plugin with multiple features and improvements.


      Feature list:

      -Menu for CT and TT and depending your choice you will see only agents for CT or TT.
      -Selection saved.
      -Apply agents models instantly.
      -Cvar for prevent that agents models overwritte custom models of others plugins.
      -A good menu interface when you can navigate between menus easily.
      -Much more soon!


      Cvars:
      Put in server.cfg
      Code: sm_csgoagents_timer "0.2" // Time on Spawn for apply agent skins
      sm_csgoagents_nooverwrittecustom "1" // No apply agent model if the user already have a custom model. 1 = no apply when custom model, 0 = disable this feature
      Commands:

      Code: !agents - Open the main menu
      Root Commands:

      Code: !agents_generatemodels - Generate a cfg file with all the agents models for use in a skinchooser plugin.
      !agents_generatestoremodels - Generate a cfg file with all the agents models for use in a store plugin.
      Todo list:

      -Add multilanguage support.
      -Add a cvar for prevent that custom models override agents models.
      -Zombiereloaded support.


      Download:

      Main repository
      Direct download
      Code changes


      Note: I know that already exist a agents plugin in a external website but this is a new version made from scratch by me with multiple improvements and changes and I want to give it support actively here in the forum. I will ignore offtopic comments and remember that do offtopic in a plugin thread is not allowed and your comment could be deleted and sanctioned, thanks and enjoy. Wyświetl pełny artykuł
    • By MYGO.pl
      Description:

      Force to use default players models for people that have a agent model.

      Requeriments:

      DHooks


      Download:

      Main repository
      Direct download
      Code changes Wyświetl pełny artykuł
    • By MYGO.pl
      Description:

      Show in scoreboard the country flag icons of the players.


      Screenshots:




      Download:

      Main repository
      Direct download
      Code changes

      Note: cfg file still pending to configure with all the country flags. You can find all the country flag images here (the index is the number after the "level" name) and you can see all the code2 for each country here. I will update github cfg file with more flags if someone want to help on add the flags. Wyświetl pełny artykuł
×
×
  • Create New...