Merhaba.
Arkadaşlar serverimde "fps_max 101.5" değerinden yukarıya çıkmasını istemiyorum amacım hiç bir oyuncu FPS yükseltip Bunny Yaparken aşırı hızlanmasın yardımcı olabilecek arkadaşlar varsa buyursun.
FPS Engelleme
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 229
- Kayıt: Sal Ara 18, 2018 9:39 am
- Konum: İstanbul
- Server Ip/DNS: 213.238.173.83
- Clan İsmi: [xL GAMING]
-
- Mesajlar: 182
- Kayıt: Sal Tem 11, 2017 7:11 am
FPS Engelleme
Direk fps engelleme için bunu kullanabilirsin: https://forums.alliedmods.net/showthread.php?t=334150, ayrıyaten fps yükseltme komutlarını da engellemek istiyorsan:
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <reapi>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "unknown"
enum _:cvars_read
{
cvar_name,
cvar_set_value,
cvar_check_value,
cvar_check_type
};
enum _:cvars_list
{
fps_max,
fps_override
};
new const g_prefix[] = "^1[^3Cvar Checker1]";
new const g_cvars[cvars_list][cvars_read][] =
{
{ "fps_max", "101", "101", "maximum" },
{ "fps_override", "0", "0", "equal" }
};
new bool:g_kicked[MAX_PLAYERS + 1];
new g_warnings[MAX_PLAYERS + 1][cvars_list];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(5.0, "client_checkcvars", _, _, _, "b");
}
public client_disconnected(id)
{
g_kicked[id] = false;
arrayset(g_warnings[id], 0, sizeof(g_warnings[][]));
}
public client_checkcvars()
{
new players[MAX_PLAYERS], pnum;
get_players(players, pnum, "ch");
for (new i = 0; i < pnum; i++)
{
new const target = players[i];
if (g_kicked[target])
return;
for (new i = 0; i < cvars_list; i++)
query_client_cvar(target, g_cvars[i][cvar_name], "client_checkcvars_result");
}
}
public client_checkcvars_result(id, const sz_name[], const sz_value[])
{
for (new i = 0; i < cvars_list; i++)
{
if (!equal(sz_name, g_cvars[i][cvar_name]))
continue;
new bool:condition = false;
if (equal(g_cvars[i][cvar_check_type], "equal"))
condition = str_to_float(sz_value) != str_to_float(g_cvars[i][cvar_check_value]);
else if (equal(g_cvars[i][cvar_check_type], "minimum"))
condition = str_to_float(sz_value) < str_to_float(g_cvars[i][cvar_check_value]);
else if (equal(g_cvars[i][cvar_check_type], "maximum"))
condition = str_to_float(sz_value) > str_to_float(g_cvars[i][cvar_check_value]);
if (condition)
{
if (!g_warnings[id][i])
{
client_cmd(id, "%s %s^n", g_cvars[i][cvar_name], g_cvars[i][cvar_set_value]);
g_warnings[id][i]++;
}
else
{
client_print_color(0, print_team_blue, "%s Player ^3%n ^1kicked for using [^3%s %s^1]", g_prefix, id, sz_name, sz_value);
server_cmd("kick #%i ^"Write in the console: %s %s^"", get_user_userid(id), sz_name, g_cvars[i][cvar_set_value]);
g_kicked[id] = true;
}
}
else
g_warnings[id][i] = 0;
}
}
Link: | |
Linklerini gizle |
-
- Mesajlar: 2
- Kayıt: Cmt Eyl 26, 2020 1:30 pm
FPS Engelleme
Dostum discord dan ulaşabilir misin?Snake. yazdı: Prş Eki 06, 2022 11:59 pm Direk fps engelleme için bunu kullanabilirsin: https://forums.alliedmods.net/showthread.php?t=334150, ayrıyaten fps yükseltme komutlarını da engellemek istiyorsan:Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <reapi> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "unknown" enum _:cvars_read { cvar_name, cvar_set_value, cvar_check_value, cvar_check_type }; enum _:cvars_list { fps_max, fps_override }; new const g_prefix[] = "^1[^3Cvar Checker1]"; new const g_cvars[cvars_list][cvars_read][] = { { "fps_max", "101", "101", "maximum" }, { "fps_override", "0", "0", "equal" } }; new bool:g_kicked[MAX_PLAYERS + 1]; new g_warnings[MAX_PLAYERS + 1][cvars_list]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(5.0, "client_checkcvars", _, _, _, "b"); } public client_disconnected(id) { g_kicked[id] = false; arrayset(g_warnings[id], 0, sizeof(g_warnings[][])); } public client_checkcvars() { new players[MAX_PLAYERS], pnum; get_players(players, pnum, "ch"); for (new i = 0; i < pnum; i++) { new const target = players[i]; if (g_kicked[target]) return; for (new i = 0; i < cvars_list; i++) query_client_cvar(target, g_cvars[i][cvar_name], "client_checkcvars_result"); } } public client_checkcvars_result(id, const sz_name[], const sz_value[]) { for (new i = 0; i < cvars_list; i++) { if (!equal(sz_name, g_cvars[i][cvar_name])) continue; new bool:condition = false; if (equal(g_cvars[i][cvar_check_type], "equal")) condition = str_to_float(sz_value) != str_to_float(g_cvars[i][cvar_check_value]); else if (equal(g_cvars[i][cvar_check_type], "minimum")) condition = str_to_float(sz_value) < str_to_float(g_cvars[i][cvar_check_value]); else if (equal(g_cvars[i][cvar_check_type], "maximum")) condition = str_to_float(sz_value) > str_to_float(g_cvars[i][cvar_check_value]); if (condition) { if (!g_warnings[id][i]) { client_cmd(id, "%s %s^n", g_cvars[i][cvar_name], g_cvars[i][cvar_set_value]); g_warnings[id][i]++; } else { client_print_color(0, print_team_blue, "%s Player ^3%n ^1kicked for using [^3%s %s^1]", g_prefix, id, sz_name, sz_value); server_cmd("kick #%i ^"Write in the console: %s %s^"", get_user_userid(id), sz_name, g_cvars[i][cvar_set_value]); g_kicked[id] = true; } } else g_warnings[id][i] = 0; } }
https://discord.gg/8XMF3v4RRj
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 229
- Kayıt: Sal Ara 18, 2018 9:39 am
- Konum: İstanbul
- Server Ip/DNS: 213.238.173.83
- Clan İsmi: [xL GAMING]
FPS Engelleme
Bu kickliyor sanıyorum bana şey lazım uyarı versin sadece ve eğer yükselirse değeri tekrar 101.5 ayarlasın.Snake. yazdı: Prş Eki 06, 2022 11:59 pm Direk fps engelleme için bunu kullanabilirsin: https://forums.alliedmods.net/showthread.php?t=334150, ayrıyaten fps yükseltme komutlarını da engellemek istiyorsan:Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <reapi> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "unknown" enum _:cvars_read { cvar_name, cvar_set_value, cvar_check_value, cvar_check_type }; enum _:cvars_list { fps_max, fps_override }; new const g_prefix[] = "^1[^3Cvar Checker1]"; new const g_cvars[cvars_list][cvars_read][] = { { "fps_max", "101", "101", "maximum" }, { "fps_override", "0", "0", "equal" } }; new bool:g_kicked[MAX_PLAYERS + 1]; new g_warnings[MAX_PLAYERS + 1][cvars_list]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(5.0, "client_checkcvars", _, _, _, "b"); } public client_disconnected(id) { g_kicked[id] = false; arrayset(g_warnings[id], 0, sizeof(g_warnings[][])); } public client_checkcvars() { new players[MAX_PLAYERS], pnum; get_players(players, pnum, "ch"); for (new i = 0; i < pnum; i++) { new const target = players[i]; if (g_kicked[target]) return; for (new i = 0; i < cvars_list; i++) query_client_cvar(target, g_cvars[i][cvar_name], "client_checkcvars_result"); } } public client_checkcvars_result(id, const sz_name[], const sz_value[]) { for (new i = 0; i < cvars_list; i++) { if (!equal(sz_name, g_cvars[i][cvar_name])) continue; new bool:condition = false; if (equal(g_cvars[i][cvar_check_type], "equal")) condition = str_to_float(sz_value) != str_to_float(g_cvars[i][cvar_check_value]); else if (equal(g_cvars[i][cvar_check_type], "minimum")) condition = str_to_float(sz_value) < str_to_float(g_cvars[i][cvar_check_value]); else if (equal(g_cvars[i][cvar_check_type], "maximum")) condition = str_to_float(sz_value) > str_to_float(g_cvars[i][cvar_check_value]); if (condition) { if (!g_warnings[id][i]) { client_cmd(id, "%s %s^n", g_cvars[i][cvar_name], g_cvars[i][cvar_set_value]); g_warnings[id][i]++; } else { client_print_color(0, print_team_blue, "%s Player ^3%n ^1kicked for using [^3%s %s^1]", g_prefix, id, sz_name, sz_value); server_cmd("kick #%i ^"Write in the console: %s %s^"", get_user_userid(id), sz_name, g_cvars[i][cvar_set_value]); g_kicked[id] = true; } } else g_warnings[id][i] = 0; } }
Link: | |
Linklerini gizle |