Raised This Month: $32 Target: $400
 8% 

Admin Connect Message


Post New Thread Reply   
 
Thread Tools Display Modes
HeroXx
Member
Join Date: Jun 2009
Old 05-20-2010 , 14:22   Re: Admin Connect Message
Reply With Quote #31

After some great help from the IRC, this should do the job

Anyone with sm_ban and reserved slot will be announced as Admin and anyone with a reserved slot will be announced as Donator.
Attached Files
File Type: smx admconmsg.smx (2.3 KB, 482 views)
File Type: sp Get Plugin or Get Source (admconmsg.sp - 1089 views - 804 Bytes)
HeroXx is offline
scopesp
Senior Member
Join Date: Jan 2009
Location: Munich
Old 05-20-2010 , 16:17   Re: Admin Connect Message
Reply With Quote #32

coool thx
scopesp is offline
FBD
Junior Member
Join Date: Apr 2010
Old 07-06-2010 , 20:22   Re: Admin Connect Message
Reply With Quote #33

i love this plugin, it works smoothly, it dosnt spam the console (most plugins do) it works for L4D2 and TF2, the only think i would like is to play a sound when an admin join, maybe a specific sound per admin? but even w/o that, it's a great plugin.
FBD is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 09-07-2010 , 08:16   Re: Admin Connect Message
Reply With Quote #34

Hi,

Can someone help me with this?

It should announce a donater whene joining but not an admin whene joining (for undercover reasons)

Why doesnt this code works?

Plz keep in mind: I never ever coded something in my life, only copy pasted some things together

PHP Code:
#include <sourcemod>

#define PLUGIN_VERSION "0.0.3"
#define ADMIN_LEVEL ADMFLAG_CUSTOM6

public Plugin:myinfo 
{
        
name "AdminConnectmsg",
        
author "R-Hehl",
        
description "Shows players connecting admins",
        
version PLUGIN_VERSION,
        
url "http://www.compactaim.de/"
};
public 
OnPluginStart()
{
    
// Create the rest of the cvar's
    
CreateConVar("sm_admin_conmsg_version"PLUGIN_VERSION"Admin Connect MSG Version"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
}
public 
OnClientPostAdminCheck(client
{
    new 
flags GetUserFlagBits(client);
    if ((
flags ADMIN_LEVEL) && !(flags ADMFLAG_SLAY))
    {
              new 
String:name[32];
              
GetClientName(clientname32);
            
PrintCenterTextAll("Donater %s connected",name);
    } else if (
flags ADMFLAG_SLAY)
    {
   
//
    

    return 
true;

Groger is offline
dbs1989
Member
Join Date: Dec 2010
Location: Denmark
Old 06-20-2011 , 06:21   Re: Admin Connect Message
Reply With Quote #35

Can you make it so it will post massage to each admin group?
Example:
Admin joined the game/ Super admin joines the game / Member joined the game / VIP Member joined the game
__________________
dbs1989 is offline
andrew13
AlliedModders Donor
Join Date: Jul 2010
Old 10-19-2011 , 23:11   Re: Admin Connect Message
Reply With Quote #36

Is this working? Also, does this create a .cfg file in cfg/sourcemod?
andrew13 is offline
Mike_BoG
SourceMod Donor
Join Date: Jul 2011
Old 10-20-2011 , 14:48   Re: Admin Connect Message
Reply With Quote #37

How would i make this print a message in the chat? I only get a error when i change the print-part to PrintToChat.
Mike_BoG is offline
Rads
AlliedModders Donor
Join Date: Feb 2008
Location: Achievement what
Old 10-20-2011 , 16:04   Re: Admin Connect Message
Reply With Quote #38

Quote:
Originally Posted by andrew13 View Post
Is this working? Also, does this create a .cfg file in cfg/sourcemod?
Yes it works fine & no cfg file
__________________
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
4UHost.UK - Global Hosting.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Last edited by Rads; 10-20-2011 at 16:05.
Rads is offline
jeezz
Senior Member
Join Date: Apr 2012
Location: netherlands
Old 11-29-2013 , 06:44   Re: Admin Connect Message
Reply With Quote #39

great plugin, thx

does somebody know how to make the tekst admin connect in center, show up for a longer time?

its away to fast right now...
jeezz is offline
Reply


Thread Tools
Display Modes

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 05:28.


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