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(client, name, 32);
PrintCenterTextAll("Donater %s connected",name);
} else if (flags & ADMFLAG_SLAY)
{
//
}
return true;
}