Pro public sunucumuzda de_dust2_long vb. tarzı maplarda flashbang satın almayı kapatmak için bir eklenti arıyoruz yardımcı olabilir misiniz ?
Küçük maplarda flashbang yasaklama
)

(12-11-2024, 21:01)Maravilha Adlı Kullanıcıdan Alıntı: https://www.webailesi.com/konu-csduragi-...lama-31700sadece long için değil belirli maplarda yasaklama imkanı var mı ?
#include <amxmodx>
#define PLUGIN "de_dust2_long Yasak"
#define VERSION "1.0"
#define AUTHOR "Yek'-ta"
new const szMaps[][] = {
"de_dust2_long",
"fy_snow"
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new haritaismi[32]
get_mapname(haritaismi, charsmax(haritaismi))
for (new i = 0; i < sizeof szMaps; i++) {
if (equal(haritaismi, szMaps[i])) {
server_cmd("amx_restrict on flash");
server_cmd("amx_restrict on smokegrenade");
server_cmd("amx_restrict on awp");
return;
} else {
server_cmd("amx_restrict off flash")
server_cmd("amx_restrict off smokegrenade")
server_cmd("amx_restrict off awp")
}
}
}(12-11-2024, 21:59)Maravilha Adlı Kullanıcıdan Alıntı:sana zahmet sadece flashı yasaklar mısın diğerlerini kaldıralım bir de hud mesajı eklersek bu mapta flashbang yasaklanmıştır diye sevinirimKod:#include <amxmodx>
#define PLUGIN "de_dust2_long Yasak"
#define VERSION "1.0"
#define AUTHOR "Yek'-ta"
new const szMaps[][] = {
"de_dust2_long",
"fy_snow"
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new haritaismi[32]
get_mapname(haritaismi, charsmax(haritaismi))
for (new i = 0; i < sizeof szMaps; i++) {
if (equal(haritaismi, szMaps[i])) {
server_cmd("amx_restrict on flash");
server_cmd("amx_restrict on smokegrenade");
server_cmd("amx_restrict on awp");
return;
} else {
server_cmd("amx_restrict off flash")
server_cmd("amx_restrict off smokegrenade")
server_cmd("amx_restrict off awp")
}
}
}
#include <amxmodx>
#define PLUGIN "de_dust2_long Yasak"
#define VERSION "1.0"
#define AUTHOR "Yek'-ta"
new const szMaps[][] = {
"de_dust2_long",
"fy_snow"
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new haritaismi[32]
get_mapname(haritaismi, charsmax(haritaismi))
for (new i = 0; i < sizeof szMaps; i++) {
if (equal(haritaismi, szMaps[i])) {
server_cmd("amx_restrict on flash");
return;
} else {
server_cmd("amx_restrict off flash")
}
}
}