Prosty plugin który po wpisaniu na chacie /regulamin lub /kary pokazuje nam tabele kar, regulamin etc.
[php]/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Regulamin"
#define VERSION "1.0"
#define AUTHOR "Sru"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /regulamin","regulamin")
register_clcmd("say /kary","kary")
}
public regulamin(id)
{
show_motd(id, "regulamin.txt", "Regulamin Serwera");
}
public kary(id)
{
show_motd(id, "kary.txt", "Kary na serwerze");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/ [/php]
W /cstrike tworzymy sobie pliki regulamin.txt oraz kary.txt i wklejamy do nich co chcemy np.
Możemy też otworzyć iframe do zew pliku np. motd.php?akcja=regulamin lub motd.php?akcja=kary
[php]/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Regulamin"
#define VERSION "1.0"
#define AUTHOR "Sru"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /regulamin","regulamin")
register_clcmd("say /kary","kary")
}
public regulamin(id)
{
show_motd(id, "regulamin.txt", "Regulamin Serwera");
}
public kary(id)
{
show_motd(id, "kary.txt", "Kary na serwerze");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/ [/php]
W /cstrike tworzymy sobie pliki regulamin.txt oraz kary.txt i wklejamy do nich co chcemy np.
Kod: Zaznacz cały
<h1>Regulamin serwera Reksio FFA</h1>
<ul><li>Nie czitujemy</li><li>Nie bugujemy map</li><li>Nie krzyczymy przez mirko</li></ul>Możemy też otworzyć iframe do zew pliku np. motd.php?akcja=regulamin lub motd.php?akcja=kary