Raised This Month: $ Target: $400
 0% 

VIP TAGS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tamadrums92
Junior Member
Join Date: Jul 2012
Old 09-02-2012 , 08:41   VIP TAGS
Reply With Quote #1

I'm so lost. I'm "attempting" to add [VIP] tags in addition to this. any help would be appreciated



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 "%s says hello", name);

    }

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

    }

    return Plugin_Handled;

}
tamadrums92 is offline
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
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-02-2012 , 10:07   Re: VIP TAGS
Reply With Quote #3

PHP Code:
RegAdminCmd("sm_sayvip"Command_SayVipADMFLAG_RESERVATION);

public 
Action:Command_SayVip(clientargs)
{
   
decl String:argstring[256];
   
GetCmdArgString(argstring256);
   
PrintHintTextToAll("[VIP] %N: %s"clientargstring);
   return 
Plugin_Handled;

__________________

Last edited by FaTony; 09-02-2012 at 10:12.
FaTony is offline
tamadrums92
Junior Member
Join Date: Jul 2012
Old 09-02-2012 , 12:34   Re: VIP TAGS
Reply With Quote #4

I apologize for the double post. I tried deleting the old one.
tamadrums92 is offline
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 05:05.


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