Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pelerin Yada Sırt Kalkanı parlatma
#1
Bazı serverlerde gördüm sırt kalkanları parlıyordu adminlerin çok hosuma gitti amx_cvar hat_glow 1 komutu işe yaramıyor Mga kullanıcısıyım Bunun Plugini mi var yoksa cvar komutylamı yapıyorlar Acil Yardım
Reply
#2
Plugini var bende görmüştüm ama her model için ayrı plugin yapılması gerekiyor diye biliyorum.. Biraz araştırayım bulursam söylerim Smile
Reply
#3
Buyur Smile

к4dανяα;127776 Wrote:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <cstrike>
#include <fakemeta>

stock fm_set_entity_visibility(indexvisible 1set_pev(index,  pev_effectsvisible == pev(indexpev_effects) & ~EF_NODRAW :  pev(indexpev_effects) | EF_NODRAW)

new 
sevmek[33]
new 
cvar_enable
new MODEL_MARK[]     = "models/mark/LawPelerin2.mdl" //Pelerinin yuklu oldugu yol ve modelin adini yaz
new P_Glow

static const PLUGIN_NAME[]     = "Munzur"
static const PLUGIN_AUTHOR[]     = "k4davra"
static const PLUGIN_VERSION[]    = "1.2"

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
    
register_cvar(PLUGIN_NAMEPLUGIN_VERSIONFCVAR_SPONLY|FCVAR_SERVER)    
    
cvar_enable register_cvar("Munzur_Pelerin""1")
    
P_Glow            register_cvar("hat_glow",            "2")    //0=None,1=GlowWithPlayer,2=TeamColor
}

public 
plugin_precache()
{
    
precache_model(MODEL_MARK)    
    
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gign/gign.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/gsg9/gsg9.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/sas/sas.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/urban/urban.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/vip/vip.mdl")

    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/arctic/arctic.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/guerilla/guerilla.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/leet/leet.mdl")
    
force_unmodified(force_model_samebounds,{0,0,0},{0,0,0},"models/player/terror/terror.mdl")    
}

public 
client_connect(id)
{
    if(
sevmek[id] > 0)
        
remove_entity(sevmek[id])
    
sevmek[id] = 0
}

public 
client_disconnect(id)
{
    if(
sevmek[id] > 0)
        
remove_entity(sevmek[id])
    
sevmek[id] = 0
}

public 
client_PreThink(id)
{
    if(!
is_user_connected(id))
        return 
PLUGIN_CONTINUE
    
    
if(!is_user_alive(id) && sevmek[id] > 0)
    {
        
remove_entity(sevmek[id])
        
sevmek[id] = 0
        
        
return PLUGIN_CONTINUE
    
}
    
    if (!(
get_user_flags(id) & ADMIN_LEVEL_H))
    {
        
remove_entity(sevmek[id])
        
sevmek[id] = 0
        
        
return PLUGIN_CONTINUE
    
}
    
    if(!
get_pcvar_num(cvar_enable))
        return 
PLUGIN_CONTINUE
        
    
if(!is_user_alive(id))
        return 
PLUGIN_CONTINUE
        
    
if(sevmek[id] < 1)
    {
        
sevmek[id] = create_entity("info_target")
        if(
sevmek[id] > 0)
        {
            
entity_set_int(sevmek[id], EV_INT_movetypeMOVETYPE_FOLLOW)
            
entity_set_edict(sevmek[id], EV_ENT_aimentid)
            
entity_set_model(sevmek[id], MODEL_MARK)
            
glowhat(id)
        }
    }
    
    if (
sevmek[id] > 0)
    {
        new 
modelID get_model_id(id)
        
entity_set_int(sevmek[id], EV_INT_bodymodelID)
    }

    if(
sevmek[id] < 1)
        return 
PLUGIN_CONTINUE

    
return PLUGIN_CONTINUE
}

new 
modelname[9][] ={
    
"gign",
    
"gsg9",
    
"sas",
    
"urban",
    
"vip",
    
"arctic",
    
"guerilla",
    
"leet",
    
"terror"
}

public 
get_model_id(id)
{
    new 
modelStr[32], iNum=32modelID
    get_user_info
(id,"model",modelStr,iNum)
    
    for(new 
09i++)
    {
        if (
equali (modelStrmodelname[i]) )
        {
            
modelID i
        
}
    }    
    return 
modelID
}

glowhat(id) {
    if (!
pev_valid(sevmek[id])) return
    if (
get_pcvar_num(P_Glow) != 0) {    //If Glowing Hats Are Enabled
        
set_pev(sevmek[id], pev_renderfx,    kRenderFxGlowShell)
        if (
get_pcvar_num(P_Glow) == 2) {    //If Not Team Specific, Use Player Glow On Hat
            
new Float:curcolors[3], Float:curamt
            pev
(idpev_rendercolorcurcolors)
            
pev(idpev_renderamtcuramt)
            
set_pev(sevmek[id], pev_rendercolorcurcolors)
            
set_pev(sevmek[id], pev_renderamtcuramt)
        } else {                                
//If Team Specific, Red=T, Blue=CT
            
if (get_user_team(id) == 1) {
                
set_pev(sevmek[id], pev_rendercolor, {255.00.00.0})
            } else if (
get_user_team(id) == 2) {
                
set_pev(sevmek[id], pev_rendercolor, {0.00.0255.0})
            }
            
set_pev(sevmek[id], pev_renderamt,    50.0)
        }
    } else {
        
set_pev(sevmek[id], pev_renderfx,    kRenderFxNone)
        
set_pev(sevmek[id], pev_renderamt,    0.0)
    }
    
fm_set_entity_visibility(sevmek[id], 1)
    return



Al Paşam
[/i]


Attached Files
.sma   Model-Glow.sma (Size: 4.87 KB / Downloads: 1,023)
Reply
#4
Ben model'in ışıklı olduğunu zannediyordum Big Grin
İletişim;

Steam Profil

Reply
#5
muratcan1616 dateline='' Wrote: Ben model'in ışıklı olduğunu zannediyordum Big Grin

Ciddi misin? Big Grin
Reply
#6
Evet çünkü kendi serverime yüklemiştim yazın plugin olmadan parlıyordum Big Grin
İletişim;

Steam Profil

Reply
#7
Bu PHp kodu calıstı ancak sadece beyaz parlıyor kırmızı nasıl yapabilirim ?
Reply
#8
kilic41 dateline='' Wrote: Bu PHp kodu calıstı ancak sadece beyaz parlıyor kırmızı nasıl yapabilirim ?

Tekrar deneyin...


Attached Files
.sma   Model-Glow.sma (Size: 4.2 KB / Downloads: 402)
.amxx   Model-Glow.amxx (Size: 5.15 KB / Downloads: 249)
Steam ID: STEAM_1:0:70428872
Steam Name: Seps!s
Skype: jdm.csplague

Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
Albert Einstein
Reply
#9
Çözülmüş İsteklere Taşındı.
Steam ID: STEAM_1:0:70428872
Steam Name: Seps!s
Skype: jdm.csplague

Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
Albert Einstein
Reply
#10
Bunlar Çalışmıyor Bilginizz olsun Casusun verdigi calıstı ancak Beyaz parlıyor JDM ninkini yapınca sw çökuyor MGA Kullanıcısıyım
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Parlak pelerin plugin lazım artiz42 8 4,682 03-08-16, 20:45
Last Post: murat1366
  [İSTEK]Pelerin bond 7 2,501 05-02-13, 17:25
Last Post: akcaliberkk
  Top15 1-cisine Pelerin Yardim meox 10 3,771 01-10-12, 20:18
Last Post: grkann
  [İSTEK]Beyler Slotlara Özel Pelerin Pluginini İstiyorum c4* 7 4,618 21-01-12, 03:06
Last Post: NiCoMeDiA
  top 15 de 1.ciye pelerin yardım!!!! by_resul 7 2,926 17-01-12, 17:04
Last Post: Schwertle_vbulletin4_import1

Foruma Atla:


Users browsing this thread: 1 Guest(s)