1. sayfa (Toplam 1 sayfa)
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 2:55 pm
gönderen Ayaz Hepyek
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..
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 3:01 pm
gönderen LoseBasgan
Say teamı engelleyen admin tag sistemi var onu deneyin.
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 3:56 pm
gönderen Yek'-ta
gag eklentisini plugins.ini nin en üstüne ekleyin engellenir.
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 4:18 pm
gönderen burak
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 }
*/
bu şekil bişeyi plugnis ini en üstüne yazarsan engelleyebilir
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 4:27 pm
gönderen Ayaz Hepyek
teşekkürler akşam denicem.
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 7:51 pm
gönderen Mr.Persians
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();
}
}
}
}
server içi say_team hak.
Gönderilme zamanı: Çrş Haz 03, 2020 10:17 pm
gönderen pustonicky
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();
}
}
}
}
Üstad Gene harikalar yaratmışssın ben denedim bende çalıştı
server içi say_team hak.
Gönderilme zamanı: Cmt Haz 06, 2020 8:15 pm
gönderen Mr.Persians
pustonicky yazdı: Çrş Haz 03, 2020 10:17 pm
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();
}
}
}
}
Üstad Gene harikalar yaratmışssın ben denedim bende çalıştı
işinize yarıyorsa daha ne olsun
