Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

Messages Replacement (v0.0.1)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Messages Replacement
  • First, what is this 'Messages Replacement' plug-in?
It's simple, it replaces any in-game messages ID into a hud (for now) from a small configuration file. Now there's no need to use hardcoded path to add a 'Terrorist won this round' hud when Terrorist actually wins the round (As an example). Via this configuration file you can hook many ID messages and you can change the hud parameters.
  • Why is this shared?
Well, the main one is that I've sawed that in the past a lot of people constantly were suggesting 'Can I change message bla bla bla', next thing is that this hasn't been made before ( I guess, or I didn't search well enough? :roll: ).
  • How this configuration file works?
There are 2 sections. One checks all registered messages and the other one reads hud parameters such as colour, screen position, effects, hold time etc. There is already an example in the config file.
  • How can I install it?
Okay first, you must compile the plug-in locally, then place message_configs.ini in your configs folder. Add the name of your plug-in in your plugins.ini file (message_replacement.amxx)
  • I don't know any messages, can you tell me some?
Well, I also don't have all of them, but I know few of them:
PHP Code:

#Terrorists_Win
#CTs_Win
#Round_Draw
#Bomb_Planted
#Bomb_Defused
#Target_Bombed
#Hostages_Not_Rescued
#Game_will_restart_in
#Game_Commencing
#Target_Bombed 

  • I've added a few messages, but they don't work, why?
In this case the message cannot be hooked. Which means plug-in doesn't support the version of message, OR you probably miswrote it or something.
  • I don't know what these hud parameters contains, what can I do?
In this case I recommend you to visit this link, based here you can easily configure them.
  • I'm curious about plug-ins changelog, how can I see it?
Just press 'Show' and an information will appear.
Spoiler


Suggestions are welcomed. And also, hopefully fewer bugs will be emphasized :grrr:

Attached Files
File Type: sma Get Plugin or Get Source (message_replacement.sma - 4.5 KB)
File Type: ini message_configs.ini (1.2 KB)

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...