Thread: VIP TAGS
View Single Post
MPQC
SourceMod Donor
Join Date: Dec 2011
Old 09-02-2012 , 10:03   Re: VIP TAGS
Reply With Quote #2

Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>
#define PLUGIN_VERSION "1.0.0"



public Plugin:myinfo = 
{
    name = "VIP Tag",
    author = "-{RPG}- DoM",
    description = "Adds [VIP] to specified players.",
    version = PLUGIN_VERSION,
    url = "http://www.RisingPhoenixGaming.net"
}

public OnPluginStart()
{
    RegConsoleCmd("sm_vipsay", CmdsayV);

}

public Action:CmdsayV(client, args)
    if(CheckCommandAcess(client, "Vip", ADMFLAG_RESERVATION)
    {
    
    new Sting:name[MAX_NAME_LENGTH]
    GetClientName(client, name, sizeof(name))
    PrinttHintText(client "[VIP]%s says hello", name);

    }

    else
    {
        PrintToChat(Client, "\x02 You do not have access to this command");

    }

    return Plugin_Handled;

}

Last edited by MPQC; 09-02-2012 at 10:58.
MPQC is offline