server içi say_team hak.
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 1302
- Kayıt: Sal Haz 26, 2018 10:39 pm
- Server Ip/DNS: cs32.csduragi.com
- Clan İsmi: HellforceGaming
server içi say_team hak.
arkadaşlar bazı kişiler say_team @ bunu kullanarak serverde küfür argo kullanıyorlar gag vs atılmıyor yasaklı komutlara ekledim denedim işe yaramadı bunun önüne nasıl gecebiliriz..
Link: | |
Linklerini gizle |
-
- Mesajlar: 1402
- Kayıt: Sal Oca 29, 2019 11:28 pm
- Clan İsmi: MoonGaming
server içi say_team hak.
Say teamı engelleyen admin tag sistemi var onu deneyin.
Link: | |
Linklerini gizle |
server içi say_team hak.
gag eklentisini plugins.ini nin en üstüne ekleyin engellenir.
Link: | |
Linklerini gizle |
server içi say_team hak.
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#define PLUGIN "Sayteam"
#define VERSION "123"
#define AUTHOR "123"
enum Color
{
NORMAL = 1, // clients scr_concolor cvar color
GREEN, // Green Color
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
}
new TeamName[][] =
{
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case NORMAL: // clients scr_concolor cvar color
{
message[0] = 0x01;
}
case GREEN: // Green
{
message[0] = 0x04;
}
default: // White, Red, Blue
{
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';
static team, ColorChange, index, MSG_Type;
if(id)
{
MSG_Type = MSG_ONE;
index = id;
} else {
index = FindPlayer();
MSG_Type = MSG_ALL;
}
team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);
if(ColorChange)
{
Team_Info(index, MSG_Type, TeamName[team]);
}
}
ShowColorMessage(id, type, message[])
{
message_begin(type, get_user_msgid("SayText"), _, id);
write_byte(id)
write_string(message);
message_end();
}
Team_Info(id, type, team[])
{
message_begin(type, get_user_msgid("TeamInfo"), _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type)
{
switch(Type)
{
case RED:
{
return Team_Info(index, type, TeamName[1]);
}
case BLUE:
{
return Team_Info(index, type, TeamName[2]);
}
case GREY:
{
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}
FindPlayer()
{
static i;
i = -1;
while(i <= get_maxplayers())
{
if(is_user_connected(++i))
{
return i;
}
}
return -1;
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say_team","blackmanBlock")
}
public blackmanBlock(id) {
new arg[32];
read_argv(1,arg,31)
if(arg[0]=='@') {
console_print(id,"Say_Team @ Bu Sekilde Kullanimi Server Tarafindan Yasaklanmistir")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 1302
- Kayıt: Sal Haz 26, 2018 10:39 pm
- Server Ip/DNS: cs32.csduragi.com
- Clan İsmi: HellforceGaming
-
- Mesajlar: 572
- Kayıt: Sal Kas 21, 2017 5:10 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: LasTShoT | Clan
- İletişim:
server içi say_team hak.
buyur dene dönüş bekliyorum.
Kod: Tümünü seç
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Persians"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say_team","persians")
}
public persians(id){
new say[248]
read_args(say,247)
remove_quotes(say)
if(say[0] == '@'){
chat_color(id,"Bu Kisim Yonetici Tarafindan Kapatilmistir.")
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
stock chat_color(const id, const input[], any:...) {
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!team2", "^0")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Link: | |
Linklerini gizle |
-
- Mesajlar: 221
- Kayıt: Cmt Kas 02, 2019 1:44 pm
server içi say_team hak.
Üstad Gene harikalar yaratmışssın ben denedim bende çalıştıMr.Persians yazdı: ↑Çrş Haz 03, 2020 7:51 pm buyur dene dönüş bekliyorum.
Kod: Tümünü seç
#include <amxmodx> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Persians" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say_team","persians") } public persians(id){ new say[248] read_args(say,247) remove_quotes(say) if(say[0] == '@'){ chat_color(id,"Bu Kisim Yonetici Tarafindan Kapatilmistir.") return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } stock chat_color(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") replace_all(msg, 190, "!team2", "^0") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
Link: | |
Linklerini gizle |
-
- Mesajlar: 572
- Kayıt: Sal Kas 21, 2017 5:10 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: LasTShoT | Clan
- İletişim:
server içi say_team hak.
işinize yarıyorsa daha ne olsunpustonicky yazdı: ↑Çrş Haz 03, 2020 10:17 pmÜstad Gene harikalar yaratmışssın ben denedim bende çalıştıMr.Persians yazdı: ↑Çrş Haz 03, 2020 7:51 pm buyur dene dönüş bekliyorum.
Kod: Tümünü seç
#include <amxmodx> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Persians" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say_team","persians") } public persians(id){ new say[248] read_args(say,247) remove_quotes(say) if(say[0] == '@'){ chat_color(id,"Bu Kisim Yonetici Tarafindan Kapatilmistir.") return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } stock chat_color(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") replace_all(msg, 190, "!team2", "^0") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
Link: | |
Linklerini gizle |