AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   VIP TAGS (https://forums.alliedmods.net/showthread.php?t=194977)

tamadrums92 09-02-2012 08:41

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



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;

}


MPQC 09-02-2012 10:03

Re: VIP TAGS
 
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;

}


FaTony 09-02-2012 10:07

Re: VIP TAGS
 
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;



tamadrums92 09-02-2012 12:34

Re: VIP TAGS
 
I apologize for the double post. I tried deleting the old one.


All times are GMT -4. The time now is 14:04.

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