Admin_Kick yetkisine ayri sapka admin_rcon yetkisine ayri şapka plugını ıstıyorum yapacak varmı ?
Union CSGO Mode
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <amxmisc>
#define SLOT_YETKI ADMIN_RCON
new g_adminmarkEnt[33]
new g_adminmarkEntslot[33]
new cvar_enable
new MODEL_MARK[] = "models/admin_sapka.mdl" // Admin Şapkası
new MODEL_MARKslot[] = "models/kurucu_sapka.mdl" // Kurucu Şapkası
static const PLUGIN_NAME[] = "Admin Mark"
static const PLUGIN_AUTHOR[] = "KaLoSZyFeR"
static const PLUGIN_VERSION[] = "2.5"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_cvar(PLUGIN_NAME, PLUGIN_VERSION, FCVAR_SPONLY|FCVAR_SERVER)
cvar_enable = register_cvar("amx_pelerinler", "1")
}
public plugin_precache()
{
precache_model(MODEL_MARK)
precache_model(MODEL_MARKslot)
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
if(g_adminmarkEntslot[id] > 0)
remove_entity(g_adminmarkEntslot[id])
g_adminmarkEntslot[id] = 0
}
public client_disconnect(id)
{
if(g_adminmarkEnt[id] > 0)
remove_entity(g_adminmarkEnt[id])
g_adminmarkEnt[id] = 0
if(g_adminmarkEntslot[id] > 0)
remove_entity(g_adminmarkEntslot[id])
g_adminmarkEntslot[id] = 0
}
public client_PreThink(id)
{
if (!is_user_admin(id))
{
return PLUGIN_HANDLED
}
if(!is_user_connected(id))
return PLUGIN_CONTINUE
if(!is_user_alive(id) && g_adminmarkEnt[id] > 0 || !is_user_alive(id) && g_adminmarkEntslot[id] > 0)
{
if (g_adminmarkEntslot[id] > 0) {
remove_entity(g_adminmarkEntslot[id])
g_adminmarkEntslot[id] = 0
}
if (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 (!(get_user_flags(id) == SLOT_YETKI)) {
if(g_adminmarkEnt[id] < 1)
{
g_adminmarkEnt[id] = create_entity("info_target")
if(g_adminmarkEnt[id] > 0)
{
remove_entity(g_adminmarkEntslot[id])
g_adminmarkEntslot[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)
}
}
else {
if(g_adminmarkEntslot[id] < 1)
{
g_adminmarkEntslot[id] = create_entity("info_target")
if(g_adminmarkEntslot[id] > 0)
{
remove_entity(g_adminmarkEnt[id])
g_adminmarkEnt[id] = 0
entity_set_int(g_adminmarkEntslot[id], EV_INT_movetype, MOVETYPE_FOLLOW)
entity_set_edict(g_adminmarkEntslot[id], EV_ENT_aiment, id)
entity_set_model(g_adminmarkEntslot[id], MODEL_MARKslot)
}
}
if (g_adminmarkEntslot[id] > 0)
{
new modelID = get_model_id(id)
entity_set_int(g_adminmarkEntslot[id], EV_INT_body, modelID)
}
}
if(g_adminmarkEnt[id] < 1 || g_adminmarkEntslot[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=32, modelID
get_user_info(id,"model",modelStr,iNum)
for(new i = 0; i < 9; i++)
{
if (equali (modelStr, modelname[i]) )
{
modelID = i
}
}
return modelID
}
new MODEL_MARK[] = "models/admin_sapka.mdl" // Admin Şapkası
new MODEL_MARKslot[] = "models/kurucu_sapka.mdl" // Kurucu Şapkası
Konu ile Alakalı Benzer Konular | |||||
Konular | Yazar | Yorumlar | Okunma | Son Yorum | |
Admin model | efsane123 | 5 | 321 |
16-11-2019, Saat: 08:42 Son Yorum: By.KinG |
|
Şapka plugini | realgaming | 2 | 242 |
31-10-2019, Saat: 17:03 Son Yorum: By.KinG |
|
Sadece slotlara özel kalkan veya sapka | dalyan | 5 | 308 |
29-09-2019, Saat: 18:49 Son Yorum: Aconyonn |
|
JB | Admin Say Komut Plugini | ♛ MAPMASTER♛ | 4 | 491 |
12-06-2019, Saat: 17:17 Son Yorum: ITenGriTR |
|
Admin grupları | fourgething | 11 | 632 |
12-06-2019, Saat: 15:19 Son Yorum: fourgething |