Cs 1.6 Deatmatch Serverimde Düşme Hasarı Yemek İstemiyorum , Yardımcı Olabilecek Varmı?
Düşme Hasarı
)

(28-05-2022, 11:08)rqwson*! Adlı Kullanıcıdan Alıntı: Cs 1.6 Deatmatch Serverimde Düşme Hasarı Yemek İstemiyorum , Yardımcı Olabilecek Varmı?
#include <amxmodx>
#include <engine>
#define FALL_VELOCITY 350.0
#define ADMIN_YETKI ADMIN_RESERVATION
public plugin_init() {
register_plugin("Otelerden Gelen Plugin", "0.2", "akcaliberk");
if(!cvar_exists("mp_falldamage")) {
register_cvar("mp_falldamage", "0");
}
}
new bool:falling[33];
public client_PreThink(id) {
if(get_user_flags(id) && ADMIN_YETKI){
if(get_cvar_num("mp_falldamage") == 0
&& is_user_alive(id)
&& is_user_connected(id)) {
if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {
falling[id] = true;
} else {
falling[id] = false;
}
}
}
}
public client_PostThink(id) {
if(get_user_flags(id) && ADMIN_YETKI){
if(get_cvar_num("mp_falldamage") == 0
&& is_user_alive(id)
&& is_user_connected(id)) {
if(falling[id]) {
entity_set_int(id, EV_INT_watertype, -3);
}
}
}
}(28-05-2022, 22:08)ondi Adlı Kullanıcıdan Alıntı: Dener misin?Attığın eklenti sunucuyu yorabilir.Bunu kullanmanızı öneririm;Kod:#include <amxmodx>
#include <engine>
#define FALL_VELOCITY 350.0
#define ADMIN_YETKI ADMIN_RESERVATION
public plugin_init() {
register_plugin("Otelerden Gelen Plugin", "0.2", "akcaliberk");
if(!cvar_exists("mp_falldamage")) {
register_cvar("mp_falldamage", "0");
}
}
new bool:falling[33];
public client_PreThink(id) {
if(get_user_flags(id) && ADMIN_YETKI){
if(get_cvar_num("mp_falldamage") == 0
&& is_user_alive(id)
&& is_user_connected(id)) {
if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {
falling[id] = true;
} else {
falling[id] = false;
}
}
}
}
public client_PostThink(id) {
if(get_user_flags(id) && ADMIN_YETKI){
if(get_cvar_num("mp_falldamage") == 0
&& is_user_alive(id)
&& is_user_connected(id)) {
if(falling[id]) {
entity_set_int(id, EV_INT_watertype, -3);
}
}
}
}
#include <amxmodx>
#include <reapi>
public plugin_init()
{
register_plugin("No Fall Damage", "1.5", "tahademirbaas");
RegisterHookChain(RG_CSGameRules_FlPlayerFallDamage, "HasariYiyince", .post = true);
}
public HasariYiyince()
{
SetHookChainReturn(ATYPE_FLOAT, 0.0);
return PLUGIN_HANDLED
}