SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <amxmodx> | |
| 2 | #include <amxmisc> | |
| 3 | #include <colorchat> | |
| 4 | ||
| 5 | #define PRISTUP ADMIN_LEVEL_A | |
| 6 | ||
| 7 | enum _:Cvarovi { reklama, prikazivanje, usao };
| |
| 8 | new ImenaCvarova[Cvarovi][] = { "reklama", "prikazivanje_pravila", "pravila_na_konektovanju" };
| |
| 9 | new VrednostiCvarova[Cvarovi][] = { "120.0", "1", "0" };
| |
| 10 | new Cvar[Cvarovi]; | |
| 11 | new const szCmds[][] = { "say /pravila", "say_team /pravila", "say /rules", "say_team /rules"
| |
| 12 | }; | |
| 13 | ||
| 14 | public plugin_init() {
| |
| 15 | register_plugin("Pravila", "2.0", "N3u[T]r4L");
| |
| 16 | for(new i = 0; i < sizeof ImenaCvarova; i++) | |
| 17 | Cvar[i] = register_cvar(ImenaCvarova[i], VrednostiCvarova[i]); | |
| 18 | for(new i; i < sizeof szCmds; i++) register_clcmd(szCmds[i], "Pravila"); | |
| 19 | register_concmd("amx_rule", "cmd_rule", PRISTUP, "<nick> - pokazuje igracu pravila");
| |
| 20 | set_task(get_pcvar_float(Cvar[reklama]), "Reklama", _, _, _, "b"); | |
| 21 | } | |
| 22 | ||
| 23 | public client_putinserver(id) if(get_pcvar_num(Cvar[usao]) == 1) set_task(5.0, "Pravila", id); | |
| 24 | ||
| 25 | public Pravila(id) {
| |
| 26 | switch(get_pcvar_num(Cvar[prikazivanje])) {
| |
| 27 | case 1: Motd(id); | |
| 28 | ||
| 29 | } | |
| 30 | return PLUGIN_CONTINUE; | |
| 31 | } | |
| 32 | ||
| 33 | ||
| 34 | public cmd_rule(id, level, cid) {
| |
| 35 | if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED; | |
| 36 | ||
| 37 | new szArgs[33], szAdminName[33]; | |
| 38 | read_argv(1, szArgs, charsmax(szArgs)); | |
| 39 | get_user_name(id, szAdminName, charsmax(szAdminName)); | |
| 40 | ||
| 41 | new szPlayer = cmd_target(id, szArgs); | |
| 42 | ||
| 43 | switch(get_pcvar_num(Cvar[prikazivanje])) {
| |
| 44 | case 1: Motd(szPlayer); | |
| 45 | ||
| 46 | } | |
| 47 | ColorChat(szPlayer, TEAM_COLOR, "Admin %s vam je pokazao pravila", szAdminName); | |
| 48 | return PLUGIN_CONTINUE; | |
| 49 | } | |
| 50 | ||
| 51 | public Motd(id) {
| |
| 52 | static motd[1501], len; | |
| 53 | - | len = formatex(motd, 1500,"<body ^"style=...^="overflow: scroll;" bgcolor=#000000><font color=#87cefa><pre>"); |
| 53 | + | len = formatex(motd, 1500,"<body ^"style=overflow: scroll;^" bgcolor=#000000><font color=#87cefa><pre>"); |
| 54 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^"><B>Serbian-Spski</B> </font></h4></center>"); | |
| 55 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"red^"><B>-----------------------</B> </font></h4></center>"); | |
| 56 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"white^">Na Serveru je ZABRANJENO:</font></h4></center>"); | |
| 57 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Gordon + Komplet za Prva Pomoc = BAN 1 dan isto vazi i za admine!</font></h4></center>"); | |
| 58 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Gordon + Bullet proof ili bilo koji drugi pancir = BAN 3 dana isto vazi i za admine!</font></h4></center>"); | |
| 59 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Assasin klasa + AWP MASTER = BAN !!!</font></h4></center>"); | |
| 60 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Zabranjeno je koriscenje predmeta HeRocket i HeExpert na stazama fy_snow, de_dust2_2x2 i fy_pool_day</font></h4></center>"); | |
| 61 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Smaranje za cheat !</B> </font></h4></center>"); | |
| 62 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Ako bacite vise od 1 he rakete u rundi, bicete kikovani!</B> </font></h4></center>"); | |
| 63 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Za klase Vatrena,Napadac,Predator + He rocket = BAN 1 dan isto vazi i za admine</font></h4></center>"); | |
| 64 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Za klasu Defender zabranjena je upotreba predmeta AWP !!!</font></h4></center>"); | |
| 65 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Vredjanje igraca na serveru !</font></h4></center>"); | |
| 66 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Bilo koji vid varanja !</font></h4></center>"); | |
| 67 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Koriscenje nickova admina !</font></h4></center>"); | |
| 68 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"white^">NEPOSTOVANJE = KAZNA ADMINA</font></h4></center>"); | |
| 69 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"red^"><B>-----------------------</B> </font></h4></center>"); | |
| 70 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"red^"><B>Engleski-English</B> </font></h4></center>"); | |
| 71 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"red^"><B>-----------------------</B> </font></h4></center>"); | |
| 72 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"white^">Na Serveru je ZABRANJENO:</font></h4></center>"); | |
| 73 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Gordon + Bullet proof or any pancir = BAN 3 days same goes for admins!</font></h4></center>"); | |
| 74 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- ANNOUNCEMENT Gordon + Komplet za Prva Pomoc = BAN 1 dan isto vazi i za admine!</font></h4></center>"); | |
| 75 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Assasin class + AWP MASTER = BAN !!!</font></h4></center>"); | |
| 76 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- It is forbidden to use item HeRocket and HeExpert on maps fy_snow, de_dust2_2x2 and fy_pool_day!</font></h4></center>"); | |
| 77 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Reporting constantly for cheaters!</B> </font></h4></center>"); | |
| 78 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Use more than 1 he rakete per round, you will be kicked!</font></h4></center>"); | |
| 79 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- For class Vatrena,Napadac,Predator + tHe rocket = BAN 1 day same goes for admins!</font></h4></center>") | |
| 80 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- For class Defender forbidden use of item AWP</font></h4></center>"); | |
| 81 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Insulting players!</font></h4></center>"); | |
| 82 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Any type of cheating!</font></h4></center>"); | |
| 83 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"yellow^">- Using admin nicks!</font></h4></center>"); | |
| 84 | len += formatex(motd[len], 1500-len,"<center><h4><font color=^"white^">IGNORING THIS RULES = ADMIN PUNISHMENT</font></h4></center>"); | |
| 85 | ||
| 86 | ||
| 87 | ||
| 88 | show_motd(id, motd, "Pravila"); | |
| 89 | } | |
| 90 | public Reklama() ColorChat(0, TEAM_COLOR, "Da vidite Pravila servera say^3 /pravila!To see rules of this server say^3 /rules"); |