[URL] https://amxx.pl/topic/125219-reply-chat/
Witajcie, przedstawiam Wam mój nowy plugin, (tj. pierwszy
![[Image: cool.png]](https://amxx.pl/public/style_emoticons/default/cool.png)
się spodoba. Informacje zawarłem na dole
![[Image: smile.png]](https://amxx.pl/public/style_emoticons/default/smile.png)
SMA:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "PowitanieCHAT"
#define VERSION "0.2"
#define AUTHOR "Kava"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say siema", "funkcja_siema")
register_clcmd("say cze", "funkcja_siema")
register_clcmd("say czesc", "funkcja_siema")
register_clcmd("say elo", "funkcja_siema")
register_clcmd("say witam", "funkcja_siema")
register_clcmd("say siemandero", "funkcja_siema")
register_clcmd("say siemka", "funkcja_siema")
register_clcmd("say eloszka", "funkcja_siema")
register_clcmd("say yo", "funkcja_siema")
register_clcmd("say hi", "funkcja_siema")
register_clcmd("say cwel", "funkcja_flood")
register_clcmd("say ch*j", "funkcja_flood")
register_clcmd("say kurwo", "funkcja_flood")
register_clcmd("say suko", "funkcja_flood")
register_clcmd("say twoja stara", "funkcja_flood")
}
public funkcja_siema(id)
{
client_print(id, print_chat, "[Serwer] Witamy serdecznie na Serwerze! Zyczymy ci milej gry")
}
public funkcja_flood(id)
{
client_print(id, print_chat, "[Serwer] Prosimy nie obrazac graczy. Dziekujemy!")
}
![[Image: opis.png]](http://amxx.pl/foty/grafikap/opis.png)
Działanie pluginu jest takie że za każdym razem, gdy ktoś wpisze na say wyraz
siema itp. plugin odpowie mu
**[Serwer] Witamy serdecznie na Serwrze! Zyczymy ci milej gry**
A gdy napisze wyraz kur** itd. plugin odpowie mu
**[Serwer] Prosimy nie obrazac graczy. Dziekujemy!**
![[Image: ss.png]](http://amxx.pl/foty/grafikap/ss.png)
![[Image: 2rhs48y.png]](http://i39.tinypic.com/2rhs48y.png)
![[Image: 9t1p42.png]](http://i42.tinypic.com/9t1p42.png)
![[Image: wymaganemoduly.png]](http://amxx.pl/foty/grafikap/wymaganemoduly.png)
amxmodx
amxmisc
![[Image: cvary.png]](http://amxx.pl/foty/grafikap/cvary.png)
brak.
![[Image: download.png]](http://amxx.pl/foty/grafikap/download.png)
Załączone pliki
* [url=https://amxx.pl/index.php?app=core&module=attach§ion=attach&attach_id=61950 "Pobierz załącznik"]
![[Image: sma.gif]](https://amxx.pl/public/style_extra/mime_types/sma.gif)
[
![[Image: amxx.gif]](http://amxx.pl/public/style_extra/mime_types/amxx.gif)
"Pobierz plik AMXX")
Załączniki:
PowitanieCHAT.sma