Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Top15 1-cisine Pelerin Yardim
#9
Dene Bakalım Ben Denemedim. Amxx Çevir

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

new g_adminmarkEnt[33]
new 
cvar_enable
new MODEL_MARK[]     = "models/top15/come15.mdl"

static const PLUGIN_NAME[]     = "Top 15 Pelerin"
static const PLUGIN_AUTHOR[]     = "nefret007"
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_top15_pelerin""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)
{
    static 
stats[8], body[8]
    
    if(!(
get_user_stats(idstatsbody) == 1) &&  !(get_user_stats(idstatsbody) == 2) &&  !(get_user_stats(idstatsbody) == 3))
    {
        
remove_entity(g_adminmarkEnt[id])
        
g_adminmarkEnt[id] = 0
        
        
return PLUGIN_HANDLED
    
}
    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_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]


Messages In This Thread
Top15 1-cisine Pelerin Yardim - by meox - 17-09-12, 19:41
Cevap: Top15 1-cisine Pelerin Yardim - by к4dανяα - 18-09-12, 23:01

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pelerin Yada Sırt Kalkanı parlatma kilic41 21 19,448 03-10-16, 01:24
Last Post: rekorbende1
  top15 Her Serveri Kapatıp açtığımda Sıfırlanıyor al_99 1 3,498 18-08-16, 21:30
Last Post: XJohnstoNX
  Parlak pelerin plugin lazım artiz42 8 4,686 03-08-16, 20:45
Last Post: murat1366
  Pass Sprite [YARDIM] chirkinqral 9 3,388 31-05-16, 00:48
Last Post: enestricks
  Pluginde hata lütfen yardım :) tarlacixx 2 4,957 10-04-15, 12:45
Last Post: kedusa
  Yardım istek hasanx9 4 2,015 06-03-15, 04:36
Last Post: bireysel
  Istegim icerde yardım hasanx9 7 2,847 21-02-15, 00:11
Last Post: eneskaraca55
  Ufak bi yardim t4t1fati 6 2,761 20-02-15, 23:59
Last Post: eneskaraca55
  Jail Serverime Jbşhop Ekliyorum Ama Olmuryor Yardım Edermisiniz starkovboy1 2 4,070 20-02-15, 04:15
Last Post: beoujolf
  Biohazard Mod Yardım++++ mertan272 14 6,851 21-08-14, 00:31
Last Post: recep2

Foruma Atla:


Users browsing this thread: 1 Guest(s)