CSPLague
Admin - Slot Şapka - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+--- Thread: Admin - Slot Şapka (/showthread.php?tid=11127)

Pages: 1 2


Admin - Slot Şapka - kanun67 - 04-01-15

PHP Code:
/* AMX Mod X
*   Admin Mark
*
* (c) Copyright 2007 by KaLoSZyFeR
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*       Plugin marks admin by adding on his head special helmet or beret. Size of model
*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)
*    like in other plugins such as KaOs' "Admin Models".
*
*     FEATURES
*       - if admin is CT, he wears special helmet
*    - if admin is T, he wears special beret
*
*
*     CVARS
*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin
*
*     VERSIONS
*       1.0   first release
*    1.1   added forcing standard models, optimized some code
*    1.2   changed really smart part of code (1 word...)
*
*/

#include <amxmodx>
#include <cstrike>
#include <engine>

new g_adminmarkEnt[33]
new 
cvar_enable
new MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"

static const PLUGIN_NAME[]     = "Admin Mark"
static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"
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("amx_admin_mark""1")
}

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(
g_adminmarkEnt[id] > 0)
        
remove_entity(g_adminmarkEnt[id])
    
g_adminmarkEnt[id] = 0
}

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

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

    if(
g_adminmarkEnt[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

Bu admin şapkası için fakat slotlara da ayrı bir şapka modeli vermek istiyoruz ama yetki sistemini bilmiyorum yardım edicek varmı[/i]


Cevap: Admin - Slot Şapka - mlhcnshn - 04-01-15

PHP Code:
/* AMX Mod X 
*   Admin Mark 

* (c) Copyright 2007 by KaLoSZyFeR 

* This file is provided as is (no warranties) 

*     DESCRIPTION 
*       Plugin marks admin by adding on his head special helmet or beret. Size of model 
*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb) 
*    like in other plugins such as KaOs' "Admin Models". 

*     FEATURES 
*       - if admin is CT, he wears special helmet 
*    - if admin is T, he wears special beret 


*     CVARS 
*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin 

*     VERSIONS 
*       1.0   first release 
*    1.1   added forcing standard models, optimized some code 
*    1.2   changed really smart part of code (1 word...) 

*/ 

#include <amxmodx> 
#include <cstrike> 
#include <engine> 

#define YETKI ADMIN_RESERVATION // Burdaki Yetki Sapka Icin Slotlara Verecegin Yetki

new g_adminmarkEnt[33
new 
cvar_enable 
new MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"  // Slot Sapka Modeli Uzantisi ile Degistireceksin

static const PLUGIN_NAME[]     = "Admin Mark" 
static const PLUGIN_AUTHOR[]     = "KaLoSZyFeR"
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("amx_admin_mark""1"


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(
g_adminmarkEnt[id] > 0
        
remove_entity(g_adminmarkEnt[id]) 
    
g_adminmarkEnt[id] = 


public 
client_disconnect(id

    if(
g_adminmarkEnt[id] > 0
        
remove_entity(g_adminmarkEnt[id]) 
    
g_adminmarkEnt[id] = 


public 
client_PreThink(id

    if(!
is_user_connected(id)) 
        return 
PLUGIN_CONTINUE 
     
    
if(!is_user_alive(id) && g_adminmarkEnt[id] > 0
    { 
        
remove_entity(g_adminmarkEnt[id]) 
        
g_adminmarkEnt[id] = 
         
        
return PLUGIN_CONTINUE 
    

     
    if (!(
get_user_flags(id) & YETKI) || get_user_flags(id) & ADMIN_KICK)  // "C" Yetkisi Yani Admin Yetkisi Var ise Veya Slot Yetkisi Yok ise Sapka Verme
    

        
remove_entity(g_adminmarkEnt[id]) 
        
g_adminmarkEnt[id] = 
         
        
return PLUGIN_CONTINUE 
    

     
    if(!
get_pcvar_num(cvar_enable)) 
        return 
PLUGIN_CONTINUE 
         
    
if(!is_user_alive(id)) 
        return 
PLUGIN_CONTINUE 
         
    
if(g_adminmarkEnt[id] < 1
    { 
        
g_adminmarkEnt[id] = create_entity("info_target"
        if(
g_adminmarkEnt[id] > 0
        { 
            
entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW
            
entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid
            
entity_set_model(g_adminmarkEnt[id], MODEL_MARK)             
        } 
    } 
     
    if (
g_adminmarkEnt[id] > 0
    { 
        new 
modelID get_model_id(id
        
entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID
    } 

    if(
g_adminmarkEnt[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 
        

    }     
    return 
modelID 

[/i]


Cevap: Admin - Slot Şapka - kanun67 - 04-01-15

Quote:#define YETKI ADMIN_RESERVATION
h yetkisi ile olsun istiyorum


Cevap: Admin - Slot Şapka - kanun67 - 04-01-15

PHP Code:
if (!(get_user_flags(id) & YETKI) || get_user_flags(id) & ADMIN_KICK)  // "H" 
böylemi olmalı


Cevap: Admin - Slot Şapka - memoaho123 - 04-01-15

ADMIN_KICK Yerine ADMIN_CFG Yaz.


Cevap: Admin - Slot Şapka - kanun67 - 04-01-15

Admin Şapka

PHP Code:
/* AMX Mod X*   Admin Mark** (c) Copyright 2007 by KaLoSZyFeR** This file is provided as is (no warranties)**     DESCRIPTION*       Plugin marks admin by adding on his head special helmet or beret. Size of model*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)*    like in other plugins such as KaOs' "Admin Models".**     FEATURES*       - if admin is CT, he wears special helmet*    - if admin is T, he wears special beret***     CVARS*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin**     VERSIONS*       1.0   first release*    1.1   added forcing standard models, optimized some code*    1.2   changed really smart part of code (1 word...)**/
#include <amxmodx>#include <cstrike>#include <engine>
new g_adminmarkEnt[33]new cvar_enablenew MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"
static const PLUGIN_NAME[]     = "Admin Mark"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("amx_admin_mark""1")}
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(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_disconnect(id){    if(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_PreThink(id){    if(!is_user_connected(id))        return PLUGIN_CONTINUE        if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if (!(get_user_flags(id) & ADMIN_KICK))    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if(!get_pcvar_num(cvar_enable))        return PLUGIN_CONTINUE            if(!is_user_alive(id))        return PLUGIN_CONTINUE            if(g_adminmarkEnt[id] < 1)    {        g_adminmarkEnt[id] = create_entity("info_target")        if(g_adminmarkEnt[id] > 0)        {            entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW)            entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid)            entity_set_model(g_adminmarkEnt[id], MODEL_MARK)                    }    }        if (g_adminmarkEnt[id] > 0)    {        new modelID get_model_id(id)        entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID)    }
    if(
g_adminmarkEnt[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
Slot
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_enablenew MODEL_MARK[]     = "models/keshgaming/keshslotsapka.mdl" //Pelerinin yuklu oldugu yol ve modelin adini yaznew P_Glow
static const PLUGIN_NAME[]     = "Ke$`h"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("Kesh_Kalkan""1")    P_Glow            register_cvar("hat_glow",            "1")    //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) )        {            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(id, pev_rendercolor, curcolors)            pev(id, pev_renderamt, curamt)            set_pev(sevmek[id], pev_rendercolor, curcolors)            set_pev(sevmek[id], pev_renderamt, curamt)            } else {                                //If Team Specific, Red=T, Blue=CT            if (get_user_team(id) == 1) {                set_pev(sevmek[id], pev_rendercolor, {255.0, 0.0, 0.0})                } else if (get_user_team(id) == 2) {                set_pev(sevmek[id], pev_rendercolor, {0.0, 0.0, 255.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} 
adminlerden h yetkilerinied aldım ama 2 modelde adminde var birbirine geçişti[/i][/i]


Cevap: Admin - Slot Şapka - memoaho123 - 04-01-15

kanun67 dateline='' Wrote: Admin Şapka

PHP Code:
/* AMX Mod X*   Admin Mark** (c) Copyright 2007 by KaLoSZyFeR** This file is provided as is (no warranties)**     DESCRIPTION*       Plugin marks admin by adding on his head special helmet or beret. Size of model*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)*    like in other plugins such as KaOs' "Admin Models".**     FEATURES*       - if admin is CT, he wears special helmet*    - if admin is T, he wears special beret***     CVARS*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin**     VERSIONS*       1.0   first release*    1.1   added forcing standard models, optimized some code*    1.2   changed really smart part of code (1 word...)**/
#include <amxmodx>#include <cstrike>#include <engine>
new g_adminmarkEnt[33]new cvar_enablenew MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"
static const PLUGIN_NAME[]     = "Admin Mark"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("amx_admin_mark""1")}
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(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_disconnect(id){    if(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_PreThink(id){    if(!is_user_connected(id))        return PLUGIN_CONTINUE        if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if (!(get_user_flags(id) & ADMIN_KICK))    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if(!get_pcvar_num(cvar_enable))        return PLUGIN_CONTINUE            if(!is_user_alive(id))        return PLUGIN_CONTINUE            if(g_adminmarkEnt[id] < 1)    {        g_adminmarkEnt[id] = create_entity("info_target")        if(g_adminmarkEnt[id] > 0)        {            entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW)            entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid)            entity_set_model(g_adminmarkEnt[id], MODEL_MARK)                    }    }        if (g_adminmarkEnt[id] > 0)    {        new modelID get_model_id(id)        entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID)    }
    if(
g_adminmarkEnt[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
Slot
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_enablenew MODEL_MARK[]     = "models/keshgaming/keshslotsapka.mdl" //Pelerinin yuklu oldugu yol ve modelin adini yaznew P_Glow
static const PLUGIN_NAME[]     = "Ke$`h"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("Kesh_Kalkan""1")    P_Glow            register_cvar("hat_glow",            "1")    //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) )        {            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(id, pev_rendercolor, curcolors)            pev(id, pev_renderamt, curamt)            set_pev(sevmek[id], pev_rendercolor, curcolors)            set_pev(sevmek[id], pev_renderamt, curamt)            } else {                                //If Team Specific, Red=T, Blue=CT            if (get_user_team(id) == 1) {                set_pev(sevmek[id], pev_rendercolor, {255.0, 0.0, 0.0})                } else if (get_user_team(id) == 2) {                set_pev(sevmek[id], pev_rendercolor, {0.0, 0.0, 255.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} 
adminlerden h yetkilerinied aldım ama 2 modelde adminde var birbirine geçişti

onun icin adminden h yetkisini alıcan tek slotlara vericen.

- - - - - - - - - -

kanun67 dateline='' Wrote: Admin Şapka

PHP Code:
/* AMX Mod X*   Admin Mark** (c) Copyright 2007 by KaLoSZyFeR** This file is provided as is (no warranties)**     DESCRIPTION*       Plugin marks admin by adding on his head special helmet or beret. Size of model*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)*    like in other plugins such as KaOs' "Admin Models".**     FEATURES*       - if admin is CT, he wears special helmet*    - if admin is T, he wears special beret***     CVARS*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin**     VERSIONS*       1.0   first release*    1.1   added forcing standard models, optimized some code*    1.2   changed really smart part of code (1 word...)**/
#include <amxmodx>#include <cstrike>#include <engine>
new g_adminmarkEnt[33]new cvar_enablenew MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"
static const PLUGIN_NAME[]     = "Admin Mark"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("amx_admin_mark""1")}
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(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_disconnect(id){    if(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_PreThink(id){    if(!is_user_connected(id))        return PLUGIN_CONTINUE        if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if (!(get_user_flags(id) & ADMIN_KICK))    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if(!get_pcvar_num(cvar_enable))        return PLUGIN_CONTINUE            if(!is_user_alive(id))        return PLUGIN_CONTINUE            if(g_adminmarkEnt[id] < 1)    {        g_adminmarkEnt[id] = create_entity("info_target")        if(g_adminmarkEnt[id] > 0)        {            entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW)            entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid)            entity_set_model(g_adminmarkEnt[id], MODEL_MARK)                    }    }        if (g_adminmarkEnt[id] > 0)    {        new modelID get_model_id(id)        entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID)    }
    if(
g_adminmarkEnt[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) )        {            modelID i        }    }        return modelID
Slot
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_enablenew MODEL_MARK[]     = "models/keshgaming/keshslotsapka.mdl" //Pelerinin yuklu oldugu yol ve modelin adini yaznew P_Glow
static const PLUGIN_NAME[]     = "Ke$`h"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("Kesh_Kalkan""1")    P_Glow            register_cvar("hat_glow",            "1")    //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) )        {            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(id, pev_rendercolor, curcolors)            pev(id, pev_renderamt, curamt)            set_pev(sevmek[id], pev_rendercolor, curcolors)            set_pev(sevmek[id], pev_renderamt, curamt)            } else {                                //If Team Specific, Red=T, Blue=CT            if (get_user_team(id) == 1) {                set_pev(sevmek[id], pev_rendercolor, {255.0, 0.0, 0.0})                } else if (get_user_team(id) == 2) {                set_pev(sevmek[id], pev_rendercolor, {0.0, 0.0, 255.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} 
adminlerden h yetkilerinied aldım ama 2 modelde adminde var birbirine geçişti

onun icin adminden h yetkisini alıcan tek slotlara vericen.[/i][/i][/i][/i]


Cevap: Admin - Slot Şapka - mlhcnshn - 04-01-15

// 'dan sonrası plugin'e dahil olmaz. Açıklama için yazdım o kısımı.

ADMIN_KICK yerini değiştirme sakın.

#define YETKI ADMIN_RESERVATION

Bu kısımı ADMIN_CFG olarak değiştireceksin.


- - - - - - - - - -

PHP Code:
#include <amxmodx>  
#include <cstrike>  
#include <engine>  

#define YETKI ADMIN_CFG // SLOT SAPKASI "H" YETKISINDE

new g_adminmarkEnt[33]  
new 
cvar_enable  
new MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"  // Slot Sapka Modeli Uzantisi ile Degistireceksin 

static const PLUGIN_NAME[]     = "Admin Mark"  
static const PLUGIN_AUTHOR[]     = "KaLoSZyFeR" 
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("amx_admin_mark""1")  
}  

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(
g_adminmarkEnt[id] > 0)  
        
remove_entity(g_adminmarkEnt[id])  
    
g_adminmarkEnt[id] = 0  
}  

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

public 
client_PreThink(id)  
{  
    if(!
is_user_connected(id))  
        return 
PLUGIN_CONTINUE  
      
    
if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)  
    {  
        
remove_entity(g_adminmarkEnt[id])  
        
g_adminmarkEnt[id] = 0  
          
        
return PLUGIN_CONTINUE  
    
}  
      
    if (!(
get_user_flags(id) & YETKI) || get_user_flags(id) & ADMIN_KICK)  // "C" Yetkisi Yani Admin Yetkisi Var ise Veya Slot Yetkisi Yok ise Sapka Verme 
    
{  
        
remove_entity(g_adminmarkEnt[id])  
        
g_adminmarkEnt[id] = 0  
          
        
return PLUGIN_CONTINUE  
    
}  
      
    if(!
get_pcvar_num(cvar_enable))  
        return 
PLUGIN_CONTINUE  
          
    
if(!is_user_alive(id))  
        return 
PLUGIN_CONTINUE  
          
    
if(g_adminmarkEnt[id] < 1)  
    {  
        
g_adminmarkEnt[id] = create_entity("info_target")  
        if(
g_adminmarkEnt[id] > 0)  
        {  
            
entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW)  
            
entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid)  
            
entity_set_model(g_adminmarkEnt[id], MODEL_MARK)              
        }  
    }  
      
    if (
g_adminmarkEnt[id] > 0)  
    {  
        new 
modelID get_model_id(id)  
        
entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID)  
    }  

    if(
g_adminmarkEnt[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  

[/i]


Cevap: Admin - Slot Şapka - kanun67 - 05-01-15

senin verdiklerini yaptım adminlerden h yi sildim genede adminlerde hem slot hem admin şapkası birbirine girmiş durumda şuan ki panelde ki pluginler

Slot Şapka

PHP Code:
/* AMX Mod X  *   Admin Mark  *  * (c) Copyright 2007 by KaLoSZyFeR  *  * This file is provided as is (no warranties)  *  *     DESCRIPTION  *       Plugin marks admin by adding on his head special helmet or beret. Size of model  *    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)  *    like in other plugins such as KaOs' "Admin Models".  *  *     FEATURES  *       - if admin is CT, he wears special helmet  *    - if admin is T, he wears special beret  *  *  *     CVARS  *       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin  *  *     VERSIONS  *       1.0   first release  *    1.1   added forcing standard models, optimized some code  *    1.2   changed really smart part of code (1 word...)  *  */  
#include <amxmodx>  #include <cstrike>  #include <engine>  
#define YETKI ADMIN_CFG // Burdaki Yetki Sapka Icin Slotlara Verecegin Yetki 
new g_adminmarkEnt[33]  new cvar_enable  new MODEL_MARK[]     = "models/keshgaming/keshslotsapka.mdl"  // Slot Sapka Modeli Uzantisi ile Degistireceksin 
static const PLUGIN_NAME[]     = "Admin Mark"  static const PLUGIN_AUTHOR[]     = "KaLoSZyFeR" 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("amx_admin_mark""1")  }  
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(g_adminmarkEnt[id] > 0)          remove_entity(g_adminmarkEnt[id])      g_adminmarkEnt[id] = 0  }  
public 
client_disconnect(id)  {      if(g_adminmarkEnt[id] > 0)          remove_entity(g_adminmarkEnt[id])      g_adminmarkEnt[id] = 0  }  
public 
client_PreThink(id)  {      if(!is_user_connected(id))          return PLUGIN_CONTINUE            if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)      {          remove_entity(g_adminmarkEnt[id])          g_adminmarkEnt[id] = 0                    return PLUGIN_CONTINUE      }            if (!(get_user_flags(id) & YETKI) || get_user_flags(id) & ADMIN_KICK)  // "C" Yetkisi Yani Admin Yetkisi Var ise Veya Slot Yetkisi Yok ise Sapka Verme     {          remove_entity(g_adminmarkEnt[id])          g_adminmarkEnt[id] = 0                    return PLUGIN_CONTINUE      }            if(!get_pcvar_num(cvar_enable))          return PLUGIN_CONTINUE                if(!is_user_alive(id))          return PLUGIN_CONTINUE                if(g_adminmarkEnt[id] < 1)      {          g_adminmarkEnt[id] = create_entity("info_target")          if(g_adminmarkEnt[id] > 0)          {              entity_set_int(g_adminmarkEnt[id], EV_INT_movetype, MOVETYPE_FOLLOW)             entity_set_edict(g_adminmarkEnt[id], EV_ENT_aiment, id)              entity_set_model(g_adminmarkEnt[id], MODEL_MARK)                      }      }            if (g_adminmarkEnt[id] > 0)      {          new modelID = get_model_id(id)          entity_set_int(g_adminmarkEnt[id], EV_INT_body, modelID)      }  
    
if(g_adminmarkEnt[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  
h yetkili ve adminlerde h yok.

Admin-Şapka

PHP Code:
/* AMX Mod X*   Admin Mark** (c) Copyright 2007 by KaLoSZyFeR** This file is provided as is (no warranties)**     DESCRIPTION*       Plugin marks admin by adding on his head special helmet or beret. Size of model*    is less than 60kb, so player don't have to extra download whole admin model (size: 2Mb)*    like in other plugins such as KaOs' "Admin Models".**     FEATURES*       - if admin is CT, he wears special helmet*    - if admin is T, he wears special beret***     CVARS*       amx_admin_mark (0: OFF, 1: ON, default: 1) - disables/enables plugin**     VERSIONS*       1.0   first release*    1.1   added forcing standard models, optimized some code*    1.2   changed really smart part of code (1 word...)**/
#include <amxmodx>#include <cstrike>#include <engine>
new g_adminmarkEnt[33]new cvar_enablenew MODEL_MARK[]     = "models/keshgaming/keshadminsapka.mdl"
static const PLUGIN_NAME[]     = "Admin Mark"static const PLUGIN_AUTHOR[]     = "Ke$`h | Gaming"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("amx_admin_mark""1")}
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(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_disconnect(id){    if(g_adminmarkEnt[id] > 0)        remove_entity(g_adminmarkEnt[id])    g_adminmarkEnt[id] = 0}
public 
client_PreThink(id){    if(!is_user_connected(id))        return PLUGIN_CONTINUE        if(!is_user_alive(id) && g_adminmarkEnt[id] > 0)    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if (!(get_user_flags(id) & ADMIN_KICK))    {        remove_entity(g_adminmarkEnt[id])        g_adminmarkEnt[id] = 0                return PLUGIN_CONTINUE    }        if(!get_pcvar_num(cvar_enable))        return PLUGIN_CONTINUE            if(!is_user_alive(id))        return PLUGIN_CONTINUE            if(g_adminmarkEnt[id] < 1)    {        g_adminmarkEnt[id] = create_entity("info_target")        if(g_adminmarkEnt[id] > 0)        {            entity_set_int(g_adminmarkEnt[id], EV_INT_movetypeMOVETYPE_FOLLOW)            entity_set_edict(g_adminmarkEnt[id], EV_ENT_aimentid)            entity_set_model(g_adminmarkEnt[id], MODEL_MARK)                    }    }        if (g_adminmarkEnt[id] > 0)    {        new modelID get_model_id(id)        entity_set_int(g_adminmarkEnt[id], EV_INT_bodymodelID)    }
    if(
g_adminmarkEnt[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) )        {            modelID i        }    }        return modelID
[/i][/i]


Cevap: Admin - Slot Şapka - kanun67 - 06-01-15

+++ güncel yardım edicek ?