- #include <sourcemod>
- #include <sdkhooks>
- #include <colors>
- public Plugin myinfo =
- {
- name = "Reklamy na chat",
- author = "DarkWolf",
- description = "Reklamy na chat",
- version = "1.0",
- url = "https://steamcommunity.com/id/darkwolfart"
- };
- #define MAX_PLAYERS 24 // maksymalna ilosc graczy na serwerze
- #define prefix "\x04INFO\x01"
- int ReklamaInfoo[MAX_PLAYERS+1];
- public void OnClientPutInServer(int client)
- {
- ReklamaInfoo[client] = 0;
- CreateTimer(5.0, ReklamaInfo, client, TIMER_FLAG_NO_MAPCHANGE);
- }
- public Action ReklamaInfo(Handle timer, int client)
- {
- if(!IsValidClient(client)) return;
- switch(ReklamaInfoo[client])
- {
- case 0:
- {
- PrintToChat(client, " \x02=============================================== ", prefix);
- PrintToChat(client, " \x07Witaj na serwerze");
- PrintToChat(client, " Aktualnie jestes na serwerze \x04Only AWP");
- PrintToChat(client, " Zapisz sobie nasze IP: \x04145.239.21.248:27045");
- PrintToChat(client, " Zapraszamy także na nasze forum: \x04HardStrike.eu");
- PrintToChat(client, " \x07Życzymy miłej gry!");
- PrintToChat(client, " \x02=============================================== ", prefix);
- }
- case 1: PrintToChat(client, "[%s] Właścicielami serwera są: \x04ShOOO'xu; \x01& \x04WącKi ツ", prefix);
- case 2: PrintToChat(client, "[%s] Dodaj nasz serwer do ulubionych IP: \x04145.239.21.248:27045", prefix);
- case 3: PrintToChat(client, "[%s] Po grze zapraszamy na forum \x04HardStrike.eu", prefix);
- case 4: PrintToChat(client, "[%s] Jeżeli znalazłeś błąd zgłoś to na \x04forum!", prefix);
- case 5: PrintToChat(client, "[%s] Masz jakąś propozycje? Napisz ją na \x04forum!", prefix);
- case 6: PrintToChat(client, "[%s] Rekrutacja na administratora serwera jest \x04OTWARTA\x01!", prefix);
- case 7: PrintToChat(client, "[%s] Dołącz do naszej społeczności na steam, wpisz \x04!grupa", prefix);
- case 8: PrintToChat(client, "[%s] Na serwerze dostepny jest \x04VIP \x01możesz go kupić kontaktując się z administracją", prefix);
- case 9: PrintToChat(client, "[%s] Napisz \x04!funkcje \x01aby dowiedzieć się co posiada \x04VIP \x01,oraz gdzie można go kupić.", prefix);
- case 10: PrintToChat(client, "[%s] Regulamin serwera dostępny pod \x04!regulamin\x01", prefix);
- case 11: PrintToChat(client, "[%s] Jeżeli potrzebujesz pomocy odwiedz nasze forum: \x04HardStrike.eu", prefix);
- case 12: PrintToChat(client, "[%s] Kontakt z \x02wlascicielami\x01 pod \x04!shooox \x01i \x04!wacki", prefix);
- case 13: PrintToChat(client, "[%s] Aby ustawic sobie \x04range \x01użyj \x04!mm", prefix);
- case 14: PrintToChat(client, "[%s] Aby ustawic sobie \x04żeton \x01użyj \x04!coin", prefix);
- case 15: PrintToChat(client, "[%s] Na serwerze dostępne są \x04noże \x01pod \x04!knife", prefix);
- case 16: PrintToChat(client, "[%s] Na serwerze dostępne są \x04skiny \x01pod \x04!ws", prefix);
- case 17: PrintToChat(client, "[%s] Na serwerze dostępne są \x04rekawiczki \x01pod \x04!gloves", prefix);
- case 18: PrintToChat(client, "[%s] Na serwerze można \x04Betować\x01. Aby dowiedziec się więcej użyj \x04!betowanie", prefix);
- case 19: PrintToChat(client, "[%s] Aby sprawdzic wszystkie dostępne polecenia na serwerze użyj \x04!komendy", prefix);
- case 20: PrintToChat(client, "[%s] Zapraszamy na naszego sieciowego TS'a, IP: \x04ts3.hardstrike.eu", prefix);
- }
- ReklamaInfoo[client]++;
- if(ReklamaInfoo[client] > 20) ReklamaInfoo[client] = 1;
- CreateTimer(16.0, ReklamaInfo, client, TIMER_FLAG_NO_MAPCHANGE);
- }
- public bool IsValidClient(int client)
- {
- if(client >= 1 && client <= MaxClients && IsClientInGame(client))
- return true;
- return false;
- }