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.