Raised This Month: $12 Target: $400
 3% 

[REQ][CS:GO] ADD benefits at this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
combocarte112
Senior Member
Join Date: Jun 2016
Location: Romania
Old 05-23-2018 , 12:34   [REQ][CS:GO] ADD benefits at this plugin
Reply With Quote #1

Hello, everyone.
I need to add me that those with the name server name have some benefits.
5hp on kill, max 105 hp.
200$ + in every round.
and tag [GOLD].
Code:
/* Plugin Template generated by Pawn Studio */

#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <clientprefs>
 
Handle g_hMyCookie;
int gloves[MAXPLAYERS+1];
 
public Plugin myinfo =
{
    name = "",
    description = "",
    author = "",
    version = "",
    url = ""
}
 
public void OnPluginStart()
{
    g_hMyCookie = RegClientCookie("myplugin_mycookie", "MyPlugin MyCookie", CookieAccess_Protected);
    RegConsoleCmd("sm_goldtag", menutag);
    HookEvent("round_start", EventRoundStart, EventHookMode_PostNoCopy);
}
 
public void OnClientCookiesCached(int client)
{
    OnClientPostAdminCheck(client);
}
 
public void OnClientPostAdminCheck(int client)
{
    char buffer[12];
    GetClientCookie(client, g_hMyCookie, buffer, sizeof(buffer));
    gloves[client] = StringToInt(buffer);
}
 
MyFunction(client)
{
    new Handle:menu = CreateMenu(tagmenu);
    SetMenuTitle(menu, "Custom Tag Menu");
 
    AddMenuItem(menu, "none", "No TaG");
    AddMenuItem(menu, "sniper", "sNipeR ?");
    AddMenuItem(menu, "stars", "Star ?");
    AddMenuItem(menu, "spark", "spArk ?");
    AddMenuItem(menu, "cioara", "CiFaRa ?");
    AddMenuItem(menu, "moet", "mOeTTT ?");
    AddMenuItem(menu, "destroyer", "DestroyeR ?");
    AddMenuItem(menu, "noscope", "NF ?CFP3 ?");
    AddMenuItem(menu, "noob", "NFFB ?");
    AddMenuItem(menu, "milmoi", "milmFi ?");
    AddMenuItem(menu, "camper", "C4mpeR ?");	
    DisplayMenu(menu, client, MENU_TIME_FOREVER);
   
}
 
public EventRoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    char sBuffer[12];
    PrintToChatAll("???\x04Add \x07XXX \x04in steam name to get acces at \x07bronzemember: \x0720%cash,armor and !goldtag");
    for (int client = 1; client <= MaxClients; client++)
    {
        if(IsClientValid(client))
        {
            int choosed;
            GetClientCookie(client,g_hMyCookie,sBuffer,sizeof(sBuffer))
            choosed = StringToInt(sBuffer);
            if (IsClientInGame(client)&&(IsClientValid(client)))
            {
                if(choosed == 0)
                {
                    CS_SetClientClanTag(client, " ");
                }
                else
                if(choosed == 1)
                {
                    CS_SetClientClanTag(client, "sNipeR ?");    
                }
                else
                if(choosed == 2)
                {
                    CS_SetClientClanTag(client, "Star ?");
                }
                else
                if(choosed == 3)
                {
                    CS_SetClientClanTag(client, "spArk ?");
                }
                else
                if(choosed == 4)
                {
                    CS_SetClientClanTag(client, "CiFaRa ?");
                }
                else
                if(choosed == 5)
                {
                    CS_SetClientClanTag(client, "mOeTTT ?");
                }
                else
                if(choosed == 6)
                {
                    CS_SetClientClanTag(client, "DestroyeR ?");
                }
                else
                if(choosed == 7)
                {
                    CS_SetClientClanTag(client, "NF ?CFP3 ?");
                }				
                else
                if(choosed == 8)
                {
                    CS_SetClientClanTag(client, "NFFB ?");
                }
                else
                if(choosed == 9)
                {
                    CS_SetClientClanTag(client, "milmFi ?");
                }
                else
                if(choosed == 10)
                {
                    CS_SetClientClanTag(client, "C4mpeR ?");
                }						
            }
        }
    }
}
 
stock bool IsClientValid(int client)
{
    if (client >= 1 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client) && !IsFakeClient(client))
        return true;
    return false;
}
 
bool IsNameGold(int iClient)
{
    decl String:ClientName[MAX_NAME_LENGTH], String:sLine[128];
 
    GetClientName(iClient, ClientName, sizeof(ClientName));
 
    if(StrContains(ClientName, "go.XXX.com", false) != -1)
    {
        return true;
    }
    else
    if (StrContains(ClientName, sLine, false) != -1)
    {
        return false;
    }
 
    return true;
}
 
public Action menutag(client, args)
{
    if((IsNameGold(client)) && !(GetUserFlagBits(client) & ADMFLAG_RESERVATION))
    {
        MyFunction(client);
    }
    else
    if(GetUserFlagBits(client) & ADMFLAG_RESERVATION)
    {
        PrintToChat(client, "\x07???\x04xxx");
    }
    else
    {
        PrintToChat(client, "\x07???\x04");
    }
}
 
public tagmenu(Handle:menu, MenuAction:action, param1, param2)
{
    switch (action)
    {
        case MenuAction_Select:
        {
            decl String:sBuffer[12];
            int i = 9;
            //param1 is client, param2 is item
            switch(param2)
            {
                //new String:item[64];
                //GetMenuItem(menu, param2, item, sizeof(item));
 
                case 0:
                {
                    i=0;
                    CS_SetClientClanTag(param1, " ");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);                       
                }
                case 1:
                {
                    i=1;
                    CS_SetClientClanTag(param1, "sNipeR ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));        
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 2:
                {
                    i=2;
                    CS_SetClientClanTag(param1, "kround.ro ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 3:
                {
                    i=3;
                    CS_SetClientClanTag(param1, "spArk ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 4:
                {
                    i=4;
                    CS_SetClientClanTag(param1, "CiFaRa ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 5:
                {
                    i=5;
                    CS_SetClientClanTag(param1, "mOeTTT ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 6:
                {
                    i=6;
                    CS_SetClientClanTag(param1, "DestroyeR ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 7:
                {
                    i=7;
                    CS_SetClientClanTag(param1, "NF ?CFP3 ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 8:
                {
                    i=8;
                    CS_SetClientClanTag(param1, "NFFB ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 9:
                {
                    i=9;
                    CS_SetClientClanTag(param1, "milmFi ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }
                case 10:
                {
                    i=10;
                    CS_SetClientClanTag(param1, "C4mpeR ?");
                    IntToString(i, sBuffer, sizeof(sBuffer));
                    SetClientCookie(param1, g_hMyCookie, sBuffer);
                }					
            }
        }
 
        case MenuAction_End:
            CloseHandle(menu);
 
    }
    return 0;
}
Please help me, thanks
combocarte112 is offline
Send a message via Skype™ to combocarte112
Sples1
Senior Member
Join Date: Apr 2016
Location: Kitsune Lab
Old 05-23-2018 , 13:37   Re: [REQ][CS:GO] ADD benefits at this plugin
Reply With Quote #2

Dear combocarte112

What Tag do you want? (Chat tag or ClanTag)
You need the completed sp or just some advice?

Greetings,
Entity
__________________
Developer & Scripter from Kitsune Lab
Contact me: Steam | My Plugins | Kitsune Lab

Join to the community on our Discord server.
I stopped public develops. My old/new plugins available ONLY for my Discord community.
Sples1 is offline
combocarte112
Senior Member
Join Date: Jun 2016
Location: Romania
Old 05-23-2018 , 16:35   Re: [REQ][CS:GO] ADD benefits at this plugin
Reply With Quote #3

I would like the plug-in completely done, I can not handle this, I posted here.
I want chat tag.
Sorry for my english...
combocarte112 is offline
Send a message via Skype™ to combocarte112
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 04:59.


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