⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
SponsorSponsor

Plugin İstek

RE: Plugin İstek
(22-11-2021, 22:06)orucoglukayra Adlı Kullanıcıdan Alıntı: Dener misin ?

PHP Kod:
#include <amxmodx>
#include <reapi>
#include <zombieplague>

new const g_szModel[] = "models/awesome.mdl";

new 
g_iEnt[MAX_PLAYERS+1],
    
g_iModelIndex;

public 
plugin_init()
{
    
register_plugin("Hat for Authorization", "0.1", "` BesTCore;");
    
    
RegisterHookChain(RG_CBasePlayer_Spawn, "RG_CBasePlayer_Spawn_Post", .post = true);
}
public 
zp_user_infected_post(id, infector, nemesis)
{
    if( !infector || nemesis)
    {
        return;
    }
    
    RemoveTheHat
(id);
}
public 
RG_CBasePlayer_Spawn_Post(id)
{
    if(get_member(id, m_bJustConnected))
    {
        return;
    }

    CreateModel(id);
}
public 
CreateHat(const id)
{
    
g_iEnt[id] = rg_create_entity("info_target");

    
CreateModel(id);
}
public 
CreateModel(id)
{
    set_entvar(g_iEnt[id], var_modelindex, g_iModelIndex);
    set_entvar(g_iEnt[id], var_movetype, MOVETYPE_FOLLOW);
    set_entvar(g_iEnt[id], var_aiment, id);
}
RemoveTheHat(const id)
{
    if(!
is_nullent(g_iEnt[id]))
    {
        
set_entvar(g_iEnt[id], var_flags, FL_KILLME);
        
g_iEnt[id] = 0;
    }
}
public 
client_putinserver(id)
{
    if(is_user_alive(id) || !zp_get_user_zombie(id)) {
        CreateHat(id);
    }
}
public 
client_disconnected(id)
{
    
RemoveTheHat(id);
}
public 
plugin_precache()
{
    for(new 
i = 0; i < sizeof(g_szModel); i++)
    {
        
g_iModelIndex = precache_model(fmt("%s", g_szModel));
    }
} 
Bu ADMIN_KICK yetkisi yazarmisin ?
RE: Plugin İstek
(22-11-2021, 22:33)PeterParker Adlı Kullanıcıdan Alıntı:
(22-11-2021, 22:06)orucoglukayra Adlı Kullanıcıdan Alıntı: Dener misin ?

PHP Kod:
#include <amxmodx>
#include <reapi>
#include <zombieplague>

new const g_szModel[] = "models/awesome.mdl";

new 
g_iEnt[MAX_PLAYERS+1],
    
g_iModelIndex;

public 
plugin_init()
{
    
register_plugin("Hat for Authorization", "0.1", "` BesTCore;");
    
    
RegisterHookChain(RG_CBasePlayer_Spawn, "RG_CBasePlayer_Spawn_Post", .post = true);
}
public 
zp_user_infected_post(id, infector, nemesis)
{
    if( !infector || nemesis)
    {
        return;
    }
    
    RemoveTheHat
(id);
}
public 
RG_CBasePlayer_Spawn_Post(id)
{
    if(get_member(id, m_bJustConnected))
    {
        return;
    }

    CreateModel(id);
}
public 
CreateHat(const id)
{
    
g_iEnt[id] = rg_create_entity("info_target");

    
CreateModel(id);
}
public 
CreateModel(id)
{
    set_entvar(g_iEnt[id], var_modelindex, g_iModelIndex);
    set_entvar(g_iEnt[id], var_movetype, MOVETYPE_FOLLOW);
    set_entvar(g_iEnt[id], var_aiment, id);
}
RemoveTheHat(const id)
{
    if(!
is_nullent(g_iEnt[id]))
    {
        
set_entvar(g_iEnt[id], var_flags, FL_KILLME);
        
g_iEnt[id] = 0;
    }
}
public 
client_putinserver(id)
{
    if(is_user_alive(id) || !zp_get_user_zombie(id)) {
        CreateHat(id);
    }
}
public 
client_disconnected(id)
{
    
RemoveTheHat(id);
}
public 
plugin_precache()
{
    for(new 
i = 0; i < sizeof(g_szModel); i++)
    {
        
g_iModelIndex = precache_model(fmt("%s", g_szModel));
    }
} 
Bu ADMIN_KICK yetkisi yazarmisin ?
İsteklerini tek bir mesajda yazarsan daha hızlı çözülür.
Eklentiyi denemedim.
PHP Kod:
#include <amxmodx>
#include <reapi>
#include <zombieplague>

new const g_szModel[] = "models/awesome.mdl";

new 
g_iEnt[MAX_PLAYERS+1],
    g_iModelIndex;

public 
plugin_init()
{
    register_plugin("Hat for Authorization", "0.1", "` BesTCore;");
    
    RegisterHookChain
(RG_CBasePlayer_Spawn, "RG_CBasePlayer_Spawn_Post", .post = true);
}
public 
zp_user_infected_post(id, infector, nemesis)
{
    if( !infector || nemesis)
    {
        return;
    }
    
    RemoveTheHat
(id);
}
public 
RG_CBasePlayer_Spawn_Post(id)
{
    if(
get_member(id, m_bJustConnected))
    {
        return;
    }

    if(!(
get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    
CreateModel(id);
    }
public 
CreateHat(const id)
{
    g_iEnt[id] = rg_create_entity("info_target");

    CreateModel(id);
}
public 
CreateModel(id)
{
    set_entvar(g_iEnt[id], var_modelindex, g_iModelIndex);
    set_entvar(g_iEnt[id], var_movetype, MOVETYPE_FOLLOW);
    set_entvar(g_iEnt[id], var_aiment, id);
}
RemoveTheHat(const id)
{
    if(!is_nullent(g_iEnt[id]))
    {
        set_entvar(g_iEnt[id], var_flags, FL_KILLME);
        g_iEnt[id] = 0;
    }
}
public 
client_putinserver(id)
{
    if(!(
get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    if(
is_user_alive(id) || !zp_get_user_zombie(id)) {
        
CreateHat(id);
    }
}
public 
client_disconnected(id)
{
    RemoveTheHat(id);
}
public 
plugin_precache()
{
    for(new i = 0; i < sizeof(g_szModel); i++)
    {
        g_iModelIndex = precache_model(fmt("%s", g_szModel));
    }
} 
Steam:Tıkla • Discord: lynchk
RE: Plugin İstek
(23-11-2021, 18:06)orucoglukayra Adlı Kullanıcıdan Alıntı:
(22-11-2021, 22:33)PeterParker Adlı Kullanıcıdan Alıntı: Bu ADMIN_KICK yetkisi yazarmisin ?
İsteklerini tek bir mesajda yazarsan daha hızlı çözülür.
Eklentiyi denemedim.
PHP Kod:
#include <amxmodx>
#include <reapi>
#include <zombieplague>

new const g_szModel[] = "models/awesome.mdl";

new 
g_iEnt[MAX_PLAYERS+1],
    g_iModelIndex;

public 
plugin_init()
{
    register_plugin("Hat for Authorization", "0.1", "` BesTCore;");
    
    RegisterHookChain
(RG_CBasePlayer_Spawn, "RG_CBasePlayer_Spawn_Post", .post = true);
}
public 
zp_user_infected_post(id, infector, nemesis)
{
    if( !infector || nemesis)
    {
        return;
    }
    
    RemoveTheHat
(id);
}
public 
RG_CBasePlayer_Spawn_Post(id)
{
    if(
get_member(id, m_bJustConnected))
    {
        return;
    }

    if(!(
get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    
CreateModel(id);
    }
public 
CreateHat(const id)
{
    g_iEnt[id] = rg_create_entity("info_target");

    CreateModel(id);
}
public 
CreateModel(id)
{
    set_entvar(g_iEnt[id], var_modelindex, g_iModelIndex);
    set_entvar(g_iEnt[id], var_movetype, MOVETYPE_FOLLOW);
    set_entvar(g_iEnt[id], var_aiment, id);
}
RemoveTheHat(const id)
{
    if(!is_nullent(g_iEnt[id]))
    {
        set_entvar(g_iEnt[id], var_flags, FL_KILLME);
        g_iEnt[id] = 0;
    }
}
public 
client_putinserver(id)
{
    if(!(
get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    if(
is_user_alive(id) || !zp_get_user_zombie(id)) {
        
CreateHat(id);
    }
}
public 
client_disconnected(id)
{
    RemoveTheHat(id);
}
public 
plugin_precache()
{
    for(new i = 0; i < sizeof(g_szModel); i++)
    {
        g_iModelIndex = precache_model(fmt("%s", g_szModel));
    }
} 
Olmadi knk zombielerdede gozukuyor.. Sapka modeli
RE: Plugin İstek
PHP Kod:
#include <amxmodx>
#include <reapi>
#include <zombieplague>

new const g_szModel[] = "models/awesome.mdl";

new 
g_iEnt[MAX_PLAYERS+1],
    g_iModelIndex;

public 
plugin_init()
{
    register_plugin("Hat for Authorization", "0.1", "` BesTCore;");
    
    RegisterHookChain
(RG_CBasePlayer_Spawn, "RG_CBasePlayer_Spawn_Post", .post = true);
}
public 
zp_user_infected_post(id, infector, nemesis)
{
    if( !infector || nemesis)
    {
        return;
    }
    
    RemoveTheHat
(id);
}
public 
RG_CBasePlayer_Spawn_Post(id)
{
    if(get_member(id, m_bJustConnected))
    {
        return;
    }

    if(!(get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    if(zp_get_user_zombie(id)){
        return;
    }

    CreateModel(id);
}
public 
CreateHat(const id)
{
    g_iEnt[id] = rg_create_entity("info_target");

    CreateModel(id);
}
public 
CreateModel(id)
{
    set_entvar(g_iEnt[id], var_modelindex, g_iModelIndex);
    set_entvar(g_iEnt[id], var_movetype, MOVETYPE_FOLLOW);
    set_entvar(g_iEnt[id], var_aiment, id);
}
RemoveTheHat(const id)
{
    if(!is_nullent(g_iEnt[id]))
    {
        set_entvar(g_iEnt[id], var_flags, FL_KILLME);
        g_iEnt[id] = 0;
    }
}
public 
client_putinserver(id)
{
    if(!(get_user_flags(id) & ADMIN_KICK)) {
        return;
    }

    if(is_user_alive(id) || !zp_get_user_zombie(id)) {
        CreateHat(id);
    }
}
public 
client_disconnected(id)
{
    RemoveTheHat(id);
}
public 
plugin_precache()
{
    for(new i = 0; i < sizeof(g_szModel); i++)
    {
        g_iModelIndex = precache_model(fmt("%s", g_szModel));
    }
} 

Konunuzu ben çözmedim. Size daha çok yardımcı olan kişiyi çözdü olarak bildiriniz.
Son Düzenleme: 23-11-2021, 23:37, Düzenleyen: scuro
RE: Plugin İstek
İstek konusu, @"orucoglukayra" adlı kullanıcı tarafından 4 gün içinde çözülmüştür.
İsteği çözdüğü için orucoglukayra Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
orucoglukayra Adlı kullanıcı sizin dışınızda toplam 188 kişiye yardım etmiştir.

Herhangi bir konuda hata olduğunu düşünüyorsanız destek sistemi üzerinden iletişim kurabilirsiniz.

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da
Konuyu Okuyanlar: 1 Ziyaretçi
Task