It is currently 17 Jan 2019 21:29






Reply to topic  [ 6 posts ] 
 Cerere Modificare Plugin 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 25 Apr 2018 19:46
Posts: 37
Location: Piatra-Neamt
Detinator Steam: Da
CS Status: Ma mai gandesc :))
Detinator server CS: RS.OLDS.RO
Fond eXtream: 0
Salutare.

Am si eu un plugin care arata VIPI ONLINE HUD.
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>

#define PLUGIN "Show Admins Online"
#define VERSION "1.1"
#define AUTHOR "vato loco [GE-S] & Alka"

new bool:g_bAdminNick
new bool:is_admin_connected[33]
new g_msg[512]

new g_admin_enable
new g_online_color
new g_offline_color
new g_msg_xypos

new g_SyncAdmin
new g_iAdminCount
new g_iMaxPlayers

new g_ClassName[] = "admin_msg"

public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )

register_think(g_ClassName,"ForwardThink")

g_admin_enable = register_cvar("sa_plugin_on","1")
g_online_color = register_cvar("sa_online_color","255 255 0")
g_offline_color = register_cvar("sa_offline_color","255 0 0")
g_msg_xypos = register_cvar("sa_msg_xypos","0.02 0.2")

g_SyncAdmin = CreateHudSyncObj()
g_iMaxPlayers = get_maxplayers()

new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, g_ClassName)
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public client_putinserver(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
is_admin_connected[id] = true
g_iAdminCount++
set_admin_msg()
}
if(g_iAdminCount == 0)
set_admin_msg()
}

public client_disconnect(id)
{
if(is_admin_connected[id])
{
is_admin_connected[id] = false
g_iAdminCount--
set_admin_msg()
}
}

public client_infochanged(id)
{
if(is_admin_connected[id])
{
static NewName[32], OldName[32]
get_user_info(id, "name", NewName, 31)
get_user_name(id, OldName, 31)

if(!equal(OldName, NewName))
{
g_bAdminNick = true
}
}
}

public set_admin_msg()
{
static g_iAdminName[32], pos, i
pos = 0
pos += formatex(g_msg[pos], 511-pos, "VIP Members: %d", g_iAdminCount)

for(i = 1 ; i <= g_iMaxPlayers ; i++)
{
if(is_admin_connected[i])
{
get_user_name(i, g_iAdminName, 31)
pos += formatex(g_msg[pos], 511-pos, "^n%s", g_iAdminName)
}
}
}

public admins_online()
{
if(get_pcvar_num(g_admin_enable))
{
static r, g, b, Float:x,Float:y
HudMsgPos(x,y)

if (g_iAdminCount > 0)
{
HudMsgColor(g_online_color, r, g, b)
set_hudmessage(r, g, b, x, y, _, _, 4.0, _, _, 4)
ShowSyncHudMsg(0, g_SyncAdmin, "%s", g_msg)
}
else
{
HudMsgColor(g_offline_color, r, g, b)
set_hudmessage(r, g, b, x, y, _, _, 4.0, _, _, 4)
ShowSyncHudMsg(0, g_SyncAdmin, "%s", g_msg)
}
}
return PLUGIN_HANDLED
}

public ForwardThink(iEnt)
{
admins_online()

if(g_bAdminNick)
{
set_admin_msg()
g_bAdminNick = false
}
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public HudMsgColor(cvar, &r, &g, &b)
{
static color[16], piece[5]
get_pcvar_string(cvar, color, 15)

strbreak( color, piece, 4, color, 15)
r = str_to_num(piece)

strbreak( color, piece, 4, color, 15)
g = str_to_num(piece)
b = str_to_num(color)
}

public HudMsgPos(&Float:x, &Float:y)
{
static coords[16], piece[10]
get_pcvar_string(g_msg_xypos, coords, 15)

strbreak(coords, piece, 9, coords, 15)
x = str_to_float(piece)
y = str_to_float(coords)
}


Am un plugin VIP mod zombie, ce contine urmatoarele flags : AHSMJRDC

| Afiseaza codul
;A - armura
;H - viata
;S - VIP in tabelul de scoruri
;M - model vip
;J - multijump
;R - raze de vazut prin perete
;D - damage amplificat
;C - incarcator infinit


As dori sa imi modificati pluginul, cand respectiva persoana are VIP ( flags : AHSMJRDC ) sa apara sus la VIP Member.

Va mulumesc.

_________________
Image
| Afiseaza codul
 RS.OLDS.RO - CAUTAM ADMINI CE POT AJUTA LA DEZVOLTAREA SERVER-ULUI! 
WWW.OLDS.RO - OFERIM SUPORT TEHNIC


Last edited by Radu eXtream on 11 Jan 2019 16:01, edited 1 time in total.

Mutat la modificari-pluginuri



11 Jan 2019 14:47
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1678
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
are AHSMJRDC și în users.ini?

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


11 Jan 2019 16:26
Profile multumesc ICQ YIM
Online
Moderator
Moderator
User avatar

Joined: 17 Dec 2013 19:51
Posts: 588
Location: Mystic Falls, Virginia
Detinator Steam: Da
SteamID: /id/csall
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Fond eXtream: 0
Incearca:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>

#define PLUGIN "Show Admins Online"
#define VERSION "1.1"
#define AUTHOR "vato loco [GE-S] & Alka"

new bool:g_bAdminNick
new bool:is_admin_connected[33]
new g_msg[512]

new g_admin_enable
new g_online_color
new g_offline_color
new g_msg_xypos

new g_SyncAdmin
new g_iAdminCount
new g_iMaxPlayers

new g_ClassName[] = "admin_msg"

public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )

register_think(g_ClassName,"ForwardThink")

g_admin_enable = register_cvar("sa_plugin_on","1")
g_online_color = register_cvar("sa_online_color","255 255 0")
g_offline_color = register_cvar("sa_offline_color","255 0 0")
g_msg_xypos = register_cvar("sa_msg_xypos","0.02 0.2")

g_SyncAdmin = CreateHudSyncObj()
g_iMaxPlayers = get_maxplayers()

new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, g_ClassName)
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public client_putinserver(id)
{
if(get_user_flags(id) == read_flags("ahmjrdc"))
{
is_admin_connected[id] = true
g_iAdminCount++
set_admin_msg()
}
if(g_iAdminCount == 0)
set_admin_msg()
}

public client_disconnect(id)
{
if(is_admin_connected[id])
{
is_admin_connected[id] = false
g_iAdminCount--
set_admin_msg()
}
}

public client_infochanged(id)
{
if(is_admin_connected[id])
{
static NewName[32], OldName[32]
get_user_info(id, "name", NewName, 31)
get_user_name(id, OldName, 31)

if(!equal(OldName, NewName))
{
g_bAdminNick = true
}
}
}

public set_admin_msg()
{
static g_iAdminName[32], pos, i
pos = 0
pos += formatex(g_msg[pos], 511-pos, "VIP Members: %d", g_iAdminCount)

for(i = 1 ; i <= g_iMaxPlayers ; i++)
{
if(is_admin_connected[i])
{
get_user_name(i, g_iAdminName, 31)
pos += formatex(g_msg[pos], 511-pos, "^n%s", g_iAdminName)
}
}
}

public admins_online()
{
if(get_pcvar_num(g_admin_enable))
{
static r, g, b, Float:x,Float:y
HudMsgPos(x,y)

if (g_iAdminCount > 0)
{
HudMsgColor(g_online_color, r, g, b)
set_hudmessage(r, g, b, x, y, _, _, 4.0, _, _, 4)
ShowSyncHudMsg(0, g_SyncAdmin, "%s", g_msg)
}
else
{
HudMsgColor(g_offline_color, r, g, b)
set_hudmessage(r, g, b, x, y, _, _, 4.0, _, _, 4)
ShowSyncHudMsg(0, g_SyncAdmin, "%s", g_msg)
}
}
return PLUGIN_HANDLED
}

public ForwardThink(iEnt)
{
admins_online()

if(g_bAdminNick)
{
set_admin_msg()
g_bAdminNick = false
}
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}

public HudMsgColor(cvar, &r, &g, &b)
{
static color[16], piece[5]
get_pcvar_string(cvar, color, 15)

strbreak( color, piece, 4, color, 15)
r = str_to_num(piece)

strbreak( color, piece, 4, color, 15)
g = str_to_num(piece)
b = str_to_num(color)
}

public HudMsgPos(&Float:x, &Float:y)
{
static coords[16], piece[10]
get_pcvar_string(g_msg_xypos, coords, 15)

strbreak(coords, piece, 9, coords, 15)
x = str_to_float(piece)
y = str_to_float(coords)
}

_________________
CUMPAR SMS / EXCHANGE PaySafeCard-PayPal


11 Jan 2019 19:26
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1678
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
faza e că al are acele flaguri în vips.ini,și nu sunt atribuite pentru comenzi,ci pentru beneficii..d-aia l-am întrebat
fă o citire externă eventual cs_all,pentru vips.ini sau cum are el

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


11 Jan 2019 23:57
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0

Joined: 25 Apr 2018 19:46
Posts: 37
Location: Piatra-Neamt
Detinator Steam: Da
CS Status: Ma mai gandesc :))
Detinator server CS: RS.OLDS.RO
Fond eXtream: 0
Adryyy wrote:
faza e că al are acele flaguri în vips.ini,și nu sunt atribuite pentru comenzi,ci pentru beneficii..d-aia l-am întrebat
fă o citire externă eventual cs_all,pentru vips.ini sau cum are el


Are in Vips.ini ...

_________________
Image
| Afiseaza codul
 RS.OLDS.RO - CAUTAM ADMINI CE POT AJUTA LA DEZVOLTAREA SERVER-ULUI! 
WWW.OLDS.RO - OFERIM SUPORT TEHNIC


12 Jan 2019 23:15
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1678
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
lasă plg de vip zm..

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


12 Jan 2019 23:28
Profile multumesc ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: dim2k and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group