⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
⭐Kurumsal web sitesi barındırma, VDS ve sanal sunucu çözümleri. Name SSD altyapısı, yüksek performans, kesintisiz erişim ve profesyonel teknik destekle hizmetinizde.⭐
Sponsor Görsel 2
SponsorSponsor

Konu

#21
Code biçimi dediğim mesaj atarken [code] şeklinde atarsanız daha rahat okuyabilirim.
Deneyin, eklenti çalışmazsa tekrar eklenti listesini atınız;
PHP Kod:
#include <amxmodx>
#include <reapi>

native zp_infect_user(idinfector 0silent 0rewards 0);

/* Game modes for zp_round_started() */
enum
{
    MODE_INFECTION 1,
    MODE_NEMESIS,
    MODE_ASSASSIN,
    MODE_SURVIVOR,
    MODE_SNIPER,
    MODE_SWARM,
    MODE_MULTI,
    MODE_PLAGUE,
    MODE_ARMAGEDDON,
    MODE_APOCALYPSE,
    MODE_NIGHTMARE
}

new const 
g_szTag[] = "WebAilesi";

new const 
g_szDeathSoundFile[] = "xxx.wav"/* Olunce calar sound/xxx.wav */
new const g_szJumpSoundFile[] = "xxx.wav"/* Yetenek atinca calar sound/xxx.wav */
new const g_szInfectedSoundFile[] = "xxx.wav"/* Secilince calar sound/xxx.wav */

new const g_szNewPlayerModel[] = "ModelIsmi"/* models/player/ModelIsmi/ModelIsmi.mdl */
new const g_szKnifeModel[] = "models/v_bicak.mdl"/* Zombinin elindeki bicak */

new bool:g_iPicked[33], bool:g_iCoolDown[33];
 
public 
plugin_init()
{
    register_plugin("Random Zombie""0.1""LyNcH");

    register_event("CurWeapon""CurWeapon""be");
    RegisterHookChain(RG_CBasePlayer_PreThink"PreThink", .post true);
    RegisterHookChain(RG_CBasePlayer_Killed"PlayerKilled", .post true);
    RegisterHookChain(RG_CBasePlayerWeapon_DefaultDeploy"DefaultDeploy", .post false);
}

public 
plugin_precache()
{
    precache_sound(g_szDeathSoundFile);
    precache_sound(g_szJumpSoundFile);
    precache_sound(g_szInfectedSoundFile);

    precache_model(fmt("models/player/%s/%s.mdl"g_szNewPlayerModelg_szNewPlayerModel));
    precache_model(g_szKnifeModel);
}

public 
client_putinserver(id)
{
    g_iPicked[id] = false;
    g_iCoolDown[id] = false;
}

public 
client_disconnected(id)
{
    g_iPicked[id] = false;
    g_iCoolDown[id] = false;
}

public 
zp_round_started(gamemodeid)
{
    if(gamemode == MODE_NEMESIS || gamemode == MODE_ASSASSIN || gamemode == MODE_SNIPER) return; /* En ust kisimdan bakarak calismasini istemediginiz modlari yazabilirsiniz */

    new Players[32], iNumiRandomPlayer;
    get_players(PlayersiNum"ah");

    if(iNum 1) return;

    iRandomPlayer Players[random_num(0iNum-1)];

    zp_infect_user(iRandomPlayer010);
    rg_set_user_model(iRandomPlayerg_szNewPlayerModel);

    g_iPicked[iRandomPlayer] = true;
    g_iCoolDown[iRandomPlayer] = false;

    CurWeapon(iRandomPlayer);

    emit_sound(iRandomPlayerCHAN_AUTOg_szInfectedSoundFileVOL_NORMATTN_NORM0PITCH_NORM);

    client_print_color(0,0"^1[^3%s^1] ^4%n adli oyuncu zombi oldu."g_szTagiRandomPlayer);
    client_print_color(iRandomPlayer,iRandomPlayer"^1[^3%s^1] ^4CTRL + E basarak uzun atlama yetenegini kullanabilirsin."g_szTag);
}

public 
PlayerKilled(iVictimiAttacker)
{
    if(!is_user_connected(iVictim) || !g_iPicked[iVictim]) return;

    g_iPicked[iVictim] = false;
    
    client_print_color
(0,0"^1[^3%s^1] ^4%n adli oyuncu zombi olduruldu."g_szTagiVictim);

    emit_sound(iVictimCHAN_AUTOg_szDeathSoundFileVOL_NORMATTN_NORM0PITCH_NORM);
}

public 
DefaultDeploy(const entszViewModel[], szWeaponModel[], iAnimszAnimExt[], skiplocal
{
    new id get_member(entm_pPlayer);

    if(get_member(entm_iId) != WEAPON_KNIFE)
    {
        return;
    }

    if(!is_user_alive(id) || !g_iPicked[id]) 
    {
        return;
    }

    SetHookChainArg(2ATYPE_STRINGg_szKnifeModel);
}

public 
CurWeapon(const id)
{
    if(!is_user_alive(id) || !is_user_connected(id))
    {
        return PLUGIN_HANDLED;
    }
    
    
static iWeaponIdiWeaponId get_user_weapon(id);

    if(g_iPicked[id])
    {
        if(iWeaponId == CSW_KNIFE)
        {
            set_entvar(idvar_viewmodelg_szKnifeModel);
        }

        set_entvar(idvar_maxspeed500.0);
        return PLUGIN_HANDLED;
    }

    return PLUGIN_CONTINUE;
}

public 
PreThink(const id)
{
    if(!g_iPicked[id]) return; 
    if(!is_user_alive(id)) return; /* Sadece tek bir oyuncuyu sorguladigi icin is_user_alive kullandim yoksa degiskene atanir */

    static iButtoniButton get_entvar(idvar_button);
    static iOldButtoniOldButton get_entvar(idvar_oldbuttons);

    if((iButton IN_USE) && (iButton IN_DUCK) && !(iOldButton IN_USE) && !g_iCoolDown[id])
    {
        static Float:fVelocity[3];
        velocity_by_aim(id700fVelocity);

        set_entvar(idvar_velocityfVelocity);

        emit_sound(idCHAN_AUTOg_szJumpSoundFileVOL_NORMATTN_NORM0PITCH_NORM);

        g_iCoolDown[id] = true;
        set_task(5.0"ResetCooldown"id);
    }
}

public 
ResetCooldown(id)
{
    if(is_user_connected(id))
    {
        g_iCoolDown[id] = false;

        client_print_color(id,id"^1[^3%s^1] ^4Yetenek bekleme suresi bitti."g_szTag);
        client_print_color(id,id"^1[^3%s^1] ^4CTRL + E basarak uzun atlama yetenegini kullanabilirsin."g_szTag);
    }

Steam:Tıkla • Discord: lynchk
#22
hocam olduda bırkac sorun var

Birincisi bıcak ve modelı okumuyor yanı yuklenmıyor ses dosyaları yuklendı

İkincisi hersey bırbırıne gırıyor gelecek el ınsanken zombıyken uzun zıplamaya devam edebılıyorum ınsan oldugunda olen muzıkte calıyor.

Bunlar rounda gore ayarlarsanız uygun olur. yanı kalıcı olmasın yoksa gelecek el uzun zıplıyor olen muzık calıyor yazı yazıyor saydan vs

Birde ozel modlarda calısıyor hocam onlarında kapanması lazım ozel mod basladıgında
Son Düzenleme: 20-09-2023, 23:37, Düzenleyen: tilki andrei.
#23
Ben kendim denedim modeli ve bıçak skinini giydiriyor bir sıkıntı yok.
Zombi eklentisinden dolayı çakışma yapıyordur plugins.ini'de en aşağı yazıp deneyin.
PHP Kod:
#include <amxmodx>
#include <reapi>

native zp_infect_user(idinfector 0silent 0rewards 0);

/* Game modes for zp_round_started() */
enum
{
    MODE_INFECTION 1,
    MODE_NEMESIS,
    MODE_ASSASSIN,
    MODE_SURVIVOR,
    MODE_SNIPER,
    MODE_SWARM,
    MODE_MULTI,
    MODE_PLAGUE,
    MODE_ARMAGEDDON,
    MODE_APOCALYPSE,
    MODE_NIGHTMARE
}

new const 
g_szTag[] = "WebAilesi";

new const 
g_szDeathSoundFile[] = "xxx.wav"/* Olunce calar sound/xxx.wav */
new const g_szJumpSoundFile[] = "xxx.wav"/* Yetenek atinca calar sound/xxx.wav */
new const g_szInfectedSoundFile[] = "xxx.wav"/* Secilince calar sound/xxx.wav */

new const g_szNewPlayerModel[] = "ModelIsmi"/* models/player/ModelIsmi/ModelIsmi.mdl */
new const g_szKnifeModel[] = "models/v_bicak.mdl"/* Zombinin elindeki bicak */

new bool:g_iPicked[33], bool:g_iCoolDown[33], bool:iAlive[MAX_CLIENTS+1];
 
public 
plugin_init()
{
    register_plugin("Random Zombie""0.1""LyNcH");

    register_event("CurWeapon""CurWeapon""be");
    RegisterHookChain(RG_CBasePlayer_PreThink"PreThink", .post true);
    RegisterHookChain(RG_CBasePlayer_Spawn"PlayerSpawn", .post true);
    RegisterHookChain(RG_CBasePlayer_Killed"PlayerKilled", .post true);
    RegisterHookChain(RG_CBasePlayerWeapon_DefaultDeploy"DefaultDeploy", .post false);
}

public 
plugin_precache()
{
    precache_sound(g_szDeathSoundFile);
    precache_sound(g_szJumpSoundFile);
    precache_sound(g_szInfectedSoundFile);

    precache_model(fmt("models/player/%s/%s.mdl"g_szNewPlayerModelg_szNewPlayerModel));
    precache_model(g_szKnifeModel);
}

public 
client_putinserver(id)
{
    g_iPicked[id] = false;
    g_iCoolDown[id] = false;
    iAlive[id] = false;
}

public 
client_disconnected(id)
{
    g_iPicked[id] = false;
    g_iCoolDown[id] = false;
    iAlive[id] = false;
}

public 
zp_round_started(gamemodeid)
{
    if(gamemode == MODE_NEMESIS || gamemode == MODE_ASSASSIN || gamemode == MODE_SNIPER) return; /* En ust kisimdan bakarak calismasini istemediginiz modlari yazabilirsiniz */

    new Players[32], iNumiRandomPlayer;
    get_players(PlayersiNum"ah");

    if(iNum 1) return;

    iRandomPlayer Players[random_num(0iNum-1)];

    zp_infect_user(iRandomPlayer010);
    rg_set_user_model(iRandomPlayerg_szNewPlayerModel);

    g_iPicked[iRandomPlayer] = true;
    g_iCoolDown[iRandomPlayer] = false;

    CurWeapon(iRandomPlayer);

    emit_sound(iRandomPlayerCHAN_AUTOg_szInfectedSoundFileVOL_NORMATTN_NORM0PITCH_NORM);

    client_print_color(0,0"^1[^3%s^1] ^4%n adli oyuncu zombi oldu."g_szTagiRandomPlayer);
    client_print_color(iRandomPlayer,iRandomPlayer"^1[^3%s^1] ^4CTRL + E basarak uzun atlama yetenegini kullanabilirsin."g_szTag);
}

public 
PlayerSpawn(const id)
{
    if(!is_user_alive(id))
    {
        return;
    }

    g_iPicked[id] = false;
    iAlive[id] = true;
}

public 
PlayerKilled(iVictimiAttacker)
{
    if(!is_user_connected(iVictim)) return;

    iAlive[iVictim] = false;

    if(g_iPicked[iVictim])
    {
        g_iPicked[iVictim] = false;
        
        client_print_color
(0,0"^1[^3%s^1] ^4%n adli oyuncu zombi olduruldu."g_szTagiVictim);

        emit_sound(iVictimCHAN_AUTOg_szDeathSoundFileVOL_NORMATTN_NORM0PITCH_NORM);
    }
}

public 
DefaultDeploy(const entszViewModel[], szWeaponModel[], iAnimszAnimExt[], skiplocal
{
    new id get_member(entm_pPlayer);

    if(get_member(entm_iId) != WEAPON_KNIFE)
    {
        return;
    }

    if(!is_user_alive(id) || !g_iPicked[id]) 
    {
        return;
    }

    SetHookChainArg(2ATYPE_STRINGg_szKnifeModel);
}

public 
CurWeapon(const id)
{
    if(!is_user_alive(id) || !is_user_connected(id))
    {
        return PLUGIN_HANDLED;
    }
    
    
static iWeaponIdiWeaponId get_user_weapon(id);

    if(g_iPicked[id])
    {
        if(iWeaponId == CSW_KNIFE)
        {
            set_entvar(idvar_viewmodelg_szKnifeModel);
        }

        set_entvar(idvar_maxspeed500.0);
        return PLUGIN_HANDLED;
    }

    return PLUGIN_CONTINUE;
}

public 
PreThink(const id)
{
    if(!g_iPicked[id] || !iAlive[id]) return;

    static iButtoniButton get_entvar(idvar_button);
    static iOldButtoniOldButton get_entvar(idvar_oldbuttons);

    if((iButton IN_USE) && (iButton IN_DUCK) && !(iOldButton IN_USE) && !g_iCoolDown[id])
    {
        static Float:fVelocity[3];
        velocity_by_aim(id700fVelocity);

        set_entvar(idvar_velocityfVelocity);

        emit_sound(idCHAN_AUTOg_szJumpSoundFileVOL_NORMATTN_NORM0PITCH_NORM);

        g_iCoolDown[id] = true;
        set_task(5.0"ResetCooldown"id);
    }
}

public 
ResetCooldown(id)
{
    if(is_user_connected(id))
    {
        g_iCoolDown[id] = false;

        client_print_color(id,id"^1[^3%s^1] ^4Yetenek bekleme suresi bitti."g_szTag);
        client_print_color(id,id"^1[^3%s^1] ^4CTRL + E basarak uzun atlama yetenegini kullanabilirsin."g_szTag);
    }

Steam:Tıkla • Discord: lynchk
#24
yok hocam bende model ve bıcagı okumuyor ya
#25
İstek konusu, @Lynchk adlı kullanıcı tarafından 3 gün içinde çözülmüştür.
İsteği çözdüğü için Lynchk Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
Lynchk Adlı kullanıcı sizin dışınızda toplam 710 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