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

[CS:GO] Team Join Announce


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Team Join Announce
Discord: http://discords.pw/nerpcsgo
This plugin provides information in the chat for when players join a team.

There's not much "information", other than the name of the client, aswell as the country he connects from. I've had some private plugins on my list, just never released them yet, because I thought it wouldn't be a good idea for me to release it because I wanted to be one of a kind using this plugin.
(from what I know, I'm the only one.) Enjoy this release.


Requirements:
  • Sourcemod 1.8 or higher.
    SDKtools, Geoip & Cstrike for compiling


Installation:
Simply just drag & drop the .smx file into: addons/sourcemod/plugins. Unless you want to make your own version of this release, you just copy the code & start :). Let me know if you can make it better than I could :/ xD

Build:
The build is very simplistic, I use this method to get the client's team if it selects team CT and have it hooked up to player_team with a timer on 0.2 secconds.

Code:

if(GetClientTeam(client) == CS_TEAM_CT)
{
        new String:name[99], String:IP[99], String:Country[99];
               
        GetClientName(client, name, sizeof(name));
               
        GetClientIP(client, IP, sizeof(IP), true);
               
        if(!GeoipCountry(IP, Country, sizeof Country))
        {
                Country = "Unknown Country";
        }
       
        PrintToChatAll(" + \x03%s \x01has joined the \x0BCT-Team \x01from \x04%s", name, Country);
}

Have fun with the release!
My goals in life:
  • Become a knowledgeable coder.
  • Get a girlfriend & hopefully married.
  • Become the student of the year in class.
  • Never skip school because of an injury.
  • Have fun with friends :)

Attached Files
File Type: sp Get Plugin or Get Source (Team Join Announce.sp - 2.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...