[URL] https://amxx.pl/topic/125219-reply-chat/
Witajcie, przedstawiam Wam mój nowy plugin, (tj. pierwszy
się spodoba. Informacje zawarłem na dole
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!")
}
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!**
amxmodx
amxmisc
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"]
[/url] [url=https://amxx.pl/index.php?app=core&module=attach§ion=attach&attach_id=61950 "Pobierz załącznik"]**PowitanieCHAT.sma**[/url] **1,18 KB** 224 Ilość pobrań [
**PowitanieCHAT.amxx**](/kompilator/plugin/61950"Pobierz plik AMXX")
Załączniki:
PowitanieCHAT.sma