Raised This Month: $ Target: $400
 0% 

Show VIPs Online. i will pay $5 for this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jamil1986
BANNED
Join Date: Feb 2012
Location: Palestine
Old 03-24-2013 , 12:33   Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #1

can you please make plugin to show who VIPs online like those pictures..

Plugin Shows How Many VIPs Online And Their Names
Via Hud Msg.
The Position Of Hud Msg Can Be Changed Via Cvars Also
The Colors Can Be Changed For Online Msg And Offline Msg.

note. ( im using VIPSystem ... http://forums.alliedmods.net/showthread.php?t=160118 )
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	208
Size:	4.3 KB
ID:	117570   Click image for larger version

Name:	2.jpg
Views:	110
Size:	3.4 KB
ID:	117571  
jamil1986 is offline
Send a message via MSN to jamil1986 Send a message via Yahoo to jamil1986 Send a message via Skype™ to jamil1986
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 03-24-2013 , 12:55   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #2

Did you try searching?, cause i saw this plugin long time ago
EpicMonkey is offline
jamil1986
BANNED
Join Date: Feb 2012
Location: Palestine
Old 03-24-2013 , 12:59   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #3

i want someone to edit this plug in for VIPs not for Admins
jamil1986 is offline
Send a message via MSN to jamil1986 Send a message via Yahoo to jamil1986 Send a message via Skype™ to jamil1986
raresnr1
Member
Join Date: Apr 2012
Old 03-24-2013 , 13:04   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #4

not tested ...

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx> 
#include <engine>
#include <VIPSystem>


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


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_pluginPLUGINVERSIONAUTHOR )
    
    
register_think(g_ClassName,"ForwardThink")
    
    
g_admin_enable register_cvar("sa_plugin_on","1")
    
g_online_color register_cvar("sa_online_color","0 130 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(iEntEV_SZ_classnameg_ClassName)
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)


public 
client_putinserver(id)
{
    if (
is_user_connected(id) && VSGetUserVip(id))
    {
        
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"NewName31)
        
get_user_name(idOldName31)
        
        if(!
equal(OldNameNewName))
        {
            
g_bAdminNick true
        
}
    }
}

public 
set_admin_msg()
{
    static 
g_iAdminName[32], posi
    pos 
0
    pos 
+= formatex(g_msg[pos], 511-pos"Vips Online: %d"g_iAdminCount)
    
    for(
<= g_iMaxPlayers i++)
    {    
        if(
is_admin_connected[i])
        {
            
get_user_name(ig_iAdminName31)
            
pos += formatex(g_msg[pos], 511-pos"^n%s"g_iAdminName)
        }
    }
}

public 
admins_online() 
{
    if(
get_pcvar_num(g_admin_enable))
    {
        static 
rgbFloat:x,Float:y
        HudMsgPos
(x,y)
        
        if (
g_iAdminCount 0)
        {
            
HudMsgColor(g_online_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncAdmin"%s"g_msg)
        }
        else
        {
            
HudMsgColor(g_offline_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncAdmin"%s"g_msg)
        }
    }
    return 
PLUGIN_HANDLED


public 
ForwardThink(iEnt)
{
    
admins_online()
    
    if(
g_bAdminNick)
    {
        
set_admin_msg()
        
g_bAdminNick false
    
}
        
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)
}

public 
HudMsgColor(cvar, &r, &g, &b)
{
    static 
color[16], piece[5]
    
get_pcvar_string(cvarcolor15)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
str_to_num(color)
}

public 
HudMsgPos(&Float:x, &Float:y)
{
    static 
coords[16], piece[10]
    
get_pcvar_string(g_msg_xyposcoords15)
    
    
strbreak(coordspiece9coords15)
    
str_to_float(piece)
    
str_to_float(coords)


Last edited by raresnr1; 03-24-2013 at 13:18.
raresnr1 is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 03-24-2013 , 13:05   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #5

Private message me for help.
sami_spt is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-24-2013 , 13:19   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <VIPSystem>

#define UPDATE_INTERVAL 1.0
#define CHANNEL 1

new Position;
new 
OnlineColorOfflineColor;

public 
plugin_init()
{
    
register_plugin("Online VIPs""1.0""HLEV");
    
    
Position register_cvar("ovip_pos""0.01 0.15");
    
OnlineColor register_cvar("ovip_on_color""0 255 0");
    
OfflineColor register_cvar("ovip_off_color""255 0 0");
    
    
set_task(UPDATE_INTERVAL"ShowOnlineVips"___"b");
}

public 
ShowOnlineVips()
{    
    static 
text[512];
    new 
len formatex(textcharsmax(text), "VIPs Online: ^"");
    
    new players[32], playerCount, vips;
    get_players(players, playerCount, "
ch");
    
    if (playerCount)
    {
        for (new i, player; i < playerCount; i++)
        {
            player = players[i];
            
            if (!VSGetUserVip(player))
                continue;
            
            len += formatex(text[len], charsmax(text) - len, "
^n");
            len += get_user_name(player, text[len], charsmax(text) - len);
            
            vips++;
        }
    }
    
    new color[12];
    
    if (vips)
    {
        new vipCount[3];
        num_to_str(vips, vipCount, charsmax(vipCount));
        replace(text, charsmax(text), "
^""vipCount);
        
        
get_pcvar_string(OnlineColorcolorcharsmax(color));
    }
    else
    {
        
replace(textcharsmax(text), "^"", "0");
        get_pcvar_string(OfflineColor, color, charsmax(color));
    }
    
    new r = str_to_num(color); strtok(color, "", 0, color, charsmax(color));
    new g = str_to_num(color); strtok(color, "", 0, color, charsmax(color));
    new b = str_to_num(color);
    
    new pos[10];
    get_pcvar_string(Position, pos, charsmax(pos));
    new Float:x = str_to_float(pos); strtok(pos, "", 0, pos, charsmax(pos));
    new Float:y = str_to_float(pos);
    
    set_hudmessage(r, g, b, x, y, _, _, UPDATE_INTERVAL + 1.0, _, _, CHANNEL);
    show_hudmessage(0, text);

__________________
hleV is offline
jamil1986
BANNED
Join Date: Feb 2012
Location: Palestine
Old 03-24-2013 , 13:41   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #7

Quote:
Originally Posted by raresnr1 View Post
not tested ...

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx> 
#include <engine>
#include <VIPSystem>


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


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_pluginPLUGINVERSIONAUTHOR )
    
    
register_think(g_ClassName,"ForwardThink")
    
    
g_admin_enable register_cvar("sa_plugin_on","1")
    
g_online_color register_cvar("sa_online_color","0 130 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(iEntEV_SZ_classnameg_ClassName)
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)


public 
client_putinserver(id)
{
    if (
is_user_connected(id) && VSGetUserVip(id))
    {
        
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"NewName31)
        
get_user_name(idOldName31)
        
        if(!
equal(OldNameNewName))
        {
            
g_bAdminNick true
        
}
    }
}

public 
set_admin_msg()
{
    static 
g_iAdminName[32], posi
    pos 
0
    pos 
+= formatex(g_msg[pos], 511-pos"Vips Online: %d"g_iAdminCount)
    
    for(
<= g_iMaxPlayers i++)
    {    
        if(
is_admin_connected[i])
        {
            
get_user_name(ig_iAdminName31)
            
pos += formatex(g_msg[pos], 511-pos"^n%s"g_iAdminName)
        }
    }
}

public 
admins_online() 
{
    if(
get_pcvar_num(g_admin_enable))
    {
        static 
rgbFloat:x,Float:y
        HudMsgPos
(x,y)
        
        if (
g_iAdminCount 0)
        {
            
HudMsgColor(g_online_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncAdmin"%s"g_msg)
        }
        else
        {
            
HudMsgColor(g_offline_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncAdmin"%s"g_msg)
        }
    }
    return 
PLUGIN_HANDLED


public 
ForwardThink(iEnt)
{
    
admins_online()
    
    if(
g_bAdminNick)
    {
        
set_admin_msg()
        
g_bAdminNick false
    
}
        
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)
}

public 
HudMsgColor(cvar, &r, &g, &b)
{
    static 
color[16], piece[5]
    
get_pcvar_string(cvarcolor15)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
str_to_num(color)
}

public 
HudMsgPos(&Float:x, &Float:y)
{
    static 
coords[16], piece[10]
    
get_pcvar_string(g_msg_xyposcoords15)
    
    
strbreak(coordspiece9coords15)
    
str_to_float(piece)
    
str_to_float(coords)


hi,, raresnr1 you gave me a half plugin need some changes. but thx its working...

and here is the full code to seperate it from admin online plugin

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

#define PLUGIN  "Show Vips Online" 
#define VERSION "1.0" 
#define AUTHOR  "Smoke" 
#define VIP_ACCESS    ADMIN_LEVEL_D

new maxPlayers;

 
/* From Admins Online -----------------------------------------------------------------------------*/
new bool:g_bVipNick
new bool:is_vip_connected[33]
new 
v_msg[512]

new 
g_vip_enable
new v_online_color
new v_offline_color
new v_msg_xypos

new g_SyncVIP
new g_VipCount 

new v_ClassName[] = "vip_msg"

 
/* From Admins Online -----------------------------------------------------------------------------*/



public plugin_init() 
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
maxPlayers get_maxplayers();
    
    
register_clcmd("say /vips""ShowVipsOnline"ADMIN_ALL"Show Vips Online");

 
/* From Admins Online -----------------------------------------------------------------------------*/

    
register_think(v_ClassName,"ForwardSink")
    
    
g_vip_enable register_cvar("va_plugin_on","1")
    
v_online_color register_cvar("va_online_color","0 130 0")
    
v_offline_color register_cvar("va_offline_color","255 0 0")
    
v_msg_xypos register_cvar("va_msg_xypos","0.01 0.31")
    
    
g_SyncVIP CreateHudSyncObj()
    
    new 
iEnt create_entity("info_target")
    
entity_set_string(iEntEV_SZ_classnamev_ClassName)
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)

 
/* From Admins Online -----------------------------------------------------------------------------*/
}

public 
ShowVipsOnline(id)
{
    new 
message[256], name[32], count 0;
    new 
len format(messagecharsmax(message), "VIPs Online: ");
    
    for (new 
player 1player <= maxPlayers; ++player)
    {
        if (
is_user_connected(player) && VSGetUserVip(player))
        {
            if (
len 96
            {
                
client_print(idprint_chat"%s,"message);
                
len format(messagecharsmax(message), "");
            }
            
            
get_user_name(playernamecharsmax(name));
            
            if (
count && len)
            {
                
len += format(message[len], 255 len", ");
            }
            
            
len += format(message[len], 255 len"%s"name);
            
            ++
count;
        }
    }
    
    if (
len)
    {
        if (!
count)
        {
            
len += format(message[len], 255 len"No VIPSs online.");
        }
        
        
client_print(idprint_chat"%s"message);
    }
    
    return 
PLUGIN_HANDLED;
}

 
/* From Admins Online -----------------------------------------------------------------------------*/

public VIPs_online() 
{
    if(
get_pcvar_num(g_vip_enable))
    {
        static 
rgbFloat:x,Float:y
        HudMsgPos
(x,y)
        
        if (
g_VipCount 0)
        {
            
HudMsgColor(v_online_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncVIP"%s"v_msg)
        }
        else
        {
            
HudMsgColor(v_offline_colorrgb)
            
set_hudmessage(rgbxy__4.0__4)
            
ShowSyncHudMsg(0g_SyncVIP"%s"v_msg)
        }
    }
    return 
PLUGIN_HANDLED


 
public 
client_putinserver(id)
{
    if (
is_user_connected(id) && VSGetUserVip(id))
    {
        
is_vip_connected[id] = true
        g_VipCount
++
        
set_vip_msg()
    }
    if(
g_VipCount == 0)
        
set_vip_msg()
}

public 
client_disconnect(id)
{
    if(
is_vip_connected[id])
    {
        
is_vip_connected[id] = false
        g_VipCount
--
        
set_vip_msg()
    }
}

public 
client_infochanged(id)
{
    if(
is_vip_connected[id])
    {
        static 
NewName[32], OldName[32]
        
get_user_info(id"name"NewName31)
        
get_user_name(idOldName31)
        
        if(!
equal(OldNameNewName))
        {
            
g_bVipNick true
        
}
    }
}

public 
set_vip_msg()
{
    static 
g_iVIPName[32], posi
    pos 
0
    pos 
+= formatex(v_msg[pos], 511-pos"VIPs Online: %d"g_VipCount)
    
    for(
<= maxPlayers i++)
    {    
        if(
is_vip_connected[i])
        {
            
get_user_name(ig_iVIPName31)
            
pos += formatex(v_msg[pos], 511-pos"^n%s"g_iVIPName)
        }
    }
}

public 
ForwardSink(iEnt)
{
    
VIPs_online()
    
    if(
g_bVipNick)
    {
        
set_vip_msg()
        
g_bVipNick false
    
}
        
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)
}

public 
HudMsgColor(cvar, &r, &g, &b)
{
    static 
color[16], piece[5]
    
get_pcvar_string(cvarcolor15)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
    
strbreakcolorpiece4color15)
    
str_to_num(piece)
    
str_to_num(color)
}

public 
HudMsgPos(&Float:x, &Float:y)
{
    static 
coords[16], piece[10]
    
get_pcvar_string(v_msg_xyposcoords15)
    
    
strbreak(coordspiece9coords15)
    
str_to_float(piece)
    
str_to_float(coords)

jamil1986 is offline
Send a message via MSN to jamil1986 Send a message via Yahoo to jamil1986 Send a message via Skype™ to jamil1986
jamil1986
BANNED
Join Date: Feb 2012
Location: Palestine
Old 03-24-2013 , 13:46   Re: Show VIPs Online. i will pay $5 for this plugin
Reply With Quote #8

hey raresnr1, how i can pay for you.. do you have PayPal account ?. if you have one contact me please...

and thx again

Last edited by jamil1986; 03-24-2013 at 14:08.
jamil1986 is offline
Send a message via MSN to jamil1986 Send a message via Yahoo to jamil1986 Send a message via Skype™ to jamil1986
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode