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

[REQ][CS:GO] Simple Body Colors on "TARGET"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raw123
Junior Member
Join Date: Jul 2016
Old 07-08-2016 , 18:17   [REQ][CS:GO] Simple Body Colors on "TARGET"
Reply With Quote #1

Hello i need something like "Set Target Color". I found one plugin, but this is only for myself.
I want to see menu ingame with Clients and make a possibility set them color.


The author seems inactive.
Plugin: https://forums.alliedmods.net/showthread.php?p=2331456
Attached Files
File Type: smx Simple Body Colors.smx (6.1 KB, 237 views)
File Type: sp Get Plugin or Get Source (Simple Body Colors.sp - 401 views - 4.6 KB)

Last edited by Raw123; 07-08-2016 at 18:19.
Raw123 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-09-2016 , 12:24   Re: [REQ][CS:GO] Simple Body Colors on "TARGET"
Reply With Quote #2

Code is hugly as f, but it should work. I had to script.
PHP Code:
#include <sourcemod>
#include <adminmenu>

#pragma semicolon 1
#pragma tabsize 0

public Plugin myinfo = {
    
name        "Simple Body Colors",
    
author      "TheUnderTaker",
    
description "Allow you to color yourself by a command.",
    
version     "1.0",
    
url         "http://steamcommunity.com/id/theundertaker007/"
};

public 
OnPluginStart()
{
    
RegConsoleCmd("sm_bodycolor"Colors);
    
RegConsoleCmd("sm_bodycolors"Colors);
}

public 
Action:Colors(clientargs)
{
    
    new 
Handle:menu CreateMenu(MenuHandler_Colorize);
    
SetMenuTitle(menu"Choose a player");
    
SetMenuExitBackButton(menutrue);
    
    
AddTargetsToMenu(menu0truefalse);
    
    
DisplayMenu(menuclientMENU_TIME_FOREVER);
}
    

public 
MenuHandler_Colorize(Handle:menuMenuAction:actionclientitem)
{
    if(
action == MenuAction_Select)
    {     
        
decl String:item_name[64];
        
GetMenuItem(menuitemitem_namesizeof(item_name));
        new 
Handle:colors CreateMenu(ColorCallbackMenuAction_Select MenuAction_End MenuAction_DisplayItem);
        
SetMenuTitle(colors"Color Body Menu");
        
AddMenuItem(colors"x""------------------"ITEMDRAW_DISABLED);
        
AddMenuItem(colorsitem_name"Remove Color");
        
AddMenuItem(colorsitem_name"Green");
        
AddMenuItem(colorsitem_name"Red");
        
AddMenuItem(colorsitem_name"Blue");
        
AddMenuItem(colorsitem_name"Gold");
        
AddMenuItem(colorsitem_name"Black");
        
AddMenuItem(colorsitem_name"Cyan");
        
AddMenuItem(colorsitem_name"Turquoise");
        
AddMenuItem(colorsitem_name"Sky as Blue");
        
AddMenuItem(colorsitem_name"Dodger Blue");
        
AddMenuItem(colorsitem_name"Yellow");
        
AddMenuItem(colors,  item_name"Pink");
        
AddMenuItem(colorsitem_name"Purple");
        
AddMenuItem(colorsitem_name"Gray");
        
DisplayMenu(colorsclientMENU_TIME_FOREVER);
    }
    else
    {
        
CloseHandle(menu);
    }
}

public 
ColorCallback(Handle:menuMenuAction:actionclientitem)
{
    switch(
action)
    {
        case 
MenuAction_Select:
            {
                        
decl String:item_name[64];
                        
GetMenuItem(menuitemitem_namesizeof(item_name));
                        
client StringToInt(item_name);
                        if(
item == 0)
                        {
                        
SetEntityRenderColor(client255255255255);
                        
PrintToChat(client"You removed your color successfully.");
                        }
                        else if(
item == 01)
                        {
                        
SetEntityRenderColor(client02550255);
                           
PrintToChat(client"You changed your color to Green.");
                        }
                        else if(
item == 02)
                        {
                        
SetEntityRenderColor(client25500255);
                           
PrintToChat(client"You changed your color to Red.");
                        }
                        else if(
item == 03)
                        {
                        
SetEntityRenderColor(client00255255);
                           
PrintToChat(client"You changed your color to Blue.");
                        }
                        else if(
item == 04)
                        {
                        
SetEntityRenderColor(client2552150255);
                           
PrintToChat(client"You changed your color to Gold.");
                        }
                    else if(
item == 05)
                        {
                        
SetEntityRenderColor(client000255);
                           
PrintToChat(client"You changed your color to Black.");
                        }
                        else if(
item == 06)
                        {
                        
SetEntityRenderColor(client0255255255);
                           
PrintToChat(client"You changed your color to Cyan.");
                        }
                    else if(
item == 07)
                        {
                        
SetEntityRenderColor(client64224208255);
                           
PrintToChat(client"You changed your color to Turquoise.");
                        }
                        else if(
item == 08)
                        {
                        
SetEntityRenderColor(client0191255255);
                           
PrintToChat(client"You changed your color to Sky as Blue.");
                        }
                        else if(
item == 091)
                        {
                        
SetEntityRenderColor(client30144255255);
                           
PrintToChat(client"You changed your color to Dodger Blue.");
                        }
                        else if(
item == 10)
                        {
                        
SetEntityRenderColor(client2552550255);
                           
PrintToChat(client"You changed your color to Yellow.");
                        }
                        else if(
item == 011)
                        {
                        
SetEntityRenderColor(client255105180255);
                           
PrintToChat(client"You changed your color to Pink.");
                        }
                        else if(
item == 012)
                        {
                        
SetEntityRenderColor(client1280128255);
                           
PrintToChat(client"You changed your color to Purple.");
                        }
                        else if(
item == 013)
                        {
                        
SetEntityRenderColor(client128128128255);
                           
PrintToChat(client"You changed your color to Gray.");
                        }
                    
                }
                case 
MenuAction_End:
                {
                        
CloseHandle(menu);
                }
    }

__________________
Want to check my plugins ?
Arkarr is offline
Raw123
Junior Member
Join Date: Jul 2016
Old 07-10-2016 , 08:07   Re: [REQ][CS:GO] Simple Body Colors on "TARGET"
Reply With Quote #3

Quote:
Originally Posted by Arkarr View Post
Code is hugly as f, but it should work. I had to script.
PHP Code:
#include <sourcemod>
#include <adminmenu>

#pragma semicolon 1
#pragma tabsize 0

public Plugin myinfo = {
    
name        "Simple Body Colors",
    
author      "TheUnderTaker",
    
description "Allow you to color yourself by a command.",
    
version     "1.0",
    
url         "http://steamcommunity.com/id/theundertaker007/"
};

public 
OnPluginStart()
{
    
RegConsoleCmd("sm_bodycolor"Colors);
    
RegConsoleCmd("sm_bodycolors"Colors);
}

public 
Action:Colors(clientargs)
{
    
    new 
Handle:menu CreateMenu(MenuHandler_Colorize);
    
SetMenuTitle(menu"Choose a player");
    
SetMenuExitBackButton(menutrue);
    
    
AddTargetsToMenu(menu0truefalse);
    
    
DisplayMenu(menuclientMENU_TIME_FOREVER);
}
    

public 
MenuHandler_Colorize(Handle:menuMenuAction:actionclientitem)
{
    if(
action == MenuAction_Select)
    {     
        
decl String:item_name[64];
        
GetMenuItem(menuitemitem_namesizeof(item_name));
        new 
Handle:colors CreateMenu(ColorCallbackMenuAction_Select MenuAction_End MenuAction_DisplayItem);
        
SetMenuTitle(colors"Color Body Menu");
        
AddMenuItem(colors"x""------------------"ITEMDRAW_DISABLED);
        
AddMenuItem(colorsitem_name"Remove Color");
        
AddMenuItem(colorsitem_name"Green");
        
AddMenuItem(colorsitem_name"Red");
        
AddMenuItem(colorsitem_name"Blue");
        
AddMenuItem(colorsitem_name"Gold");
        
AddMenuItem(colorsitem_name"Black");
        
AddMenuItem(colorsitem_name"Cyan");
        
AddMenuItem(colorsitem_name"Turquoise");
        
AddMenuItem(colorsitem_name"Sky as Blue");
        
AddMenuItem(colorsitem_name"Dodger Blue");
        
AddMenuItem(colorsitem_name"Yellow");
        
AddMenuItem(colors,  item_name"Pink");
        
AddMenuItem(colorsitem_name"Purple");
        
AddMenuItem(colorsitem_name"Gray");
        
DisplayMenu(colorsclientMENU_TIME_FOREVER);
    }
    else
    {
        
CloseHandle(menu);
    }
}

public 
ColorCallback(Handle:menuMenuAction:actionclientitem)
{
    switch(
action)
    {
        case 
MenuAction_Select:
            {
                        
decl String:item_name[64];
                        
GetMenuItem(menuitemitem_namesizeof(item_name));
                        
client StringToInt(item_name);
                        if(
item == 0)
                        {
                        
SetEntityRenderColor(client255255255255);
                        
PrintToChat(client"You removed your color successfully.");
                        }
                        else if(
item == 01)
                        {
                        
SetEntityRenderColor(client02550255);
                           
PrintToChat(client"You changed your color to Green.");
                        }
                        else if(
item == 02)
                        {
                        
SetEntityRenderColor(client25500255);
                           
PrintToChat(client"You changed your color to Red.");
                        }
                        else if(
item == 03)
                        {
                        
SetEntityRenderColor(client00255255);
                           
PrintToChat(client"You changed your color to Blue.");
                        }
                        else if(
item == 04)
                        {
                        
SetEntityRenderColor(client2552150255);
                           
PrintToChat(client"You changed your color to Gold.");
                        }
                    else if(
item == 05)
                        {
                        
SetEntityRenderColor(client000255);
                           
PrintToChat(client"You changed your color to Black.");
                        }
                        else if(
item == 06)
                        {
                        
SetEntityRenderColor(client0255255255);
                           
PrintToChat(client"You changed your color to Cyan.");
                        }
                    else if(
item == 07)
                        {
                        
SetEntityRenderColor(client64224208255);
                           
PrintToChat(client"You changed your color to Turquoise.");
                        }
                        else if(
item == 08)
                        {
                        
SetEntityRenderColor(client0191255255);
                           
PrintToChat(client"You changed your color to Sky as Blue.");
                        }
                        else if(
item == 091)
                        {
                        
SetEntityRenderColor(client30144255255);
                           
PrintToChat(client"You changed your color to Dodger Blue.");
                        }
                        else if(
item == 10)
                        {
                        
SetEntityRenderColor(client2552550255);
                           
PrintToChat(client"You changed your color to Yellow.");
                        }
                        else if(
item == 011)
                        {
                        
SetEntityRenderColor(client255105180255);
                           
PrintToChat(client"You changed your color to Pink.");
                        }
                        else if(
item == 012)
                        {
                        
SetEntityRenderColor(client1280128255);
                           
PrintToChat(client"You changed your color to Purple.");
                        }
                        else if(
item == 013)
                        {
                        
SetEntityRenderColor(client128128128255);
                           
PrintToChat(client"You changed your color to Gray.");
                        }
                    
                }
                case 
MenuAction_End:
                {
                        
CloseHandle(menu);
                }
    }

Its not Working my friend.
Raw123 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-10-2016 , 10:42   Re: [REQ][CS:GO] Simple Body Colors on "TARGET"
Reply With Quote #4

Quote:
Originally Posted by Raw123 View Post
Its not Working my friend.
What do you excpet then ? Help ? I won't if you give me no more then "not working m8 pliz fix".

EDIT : noticed the MP, don't send me private message for fixing things that you started by youself. post in thread instend ;)
__________________
Want to check my plugins ?

Last edited by Arkarr; 07-10-2016 at 10:45.
Arkarr is offline
Raw123
Junior Member
Join Date: Jul 2016
Old 07-10-2016 , 11:51   Re: [REQ][CS:GO] Simple Body Colors on "TARGET"
Reply With Quote #5

Quote:
Originally Posted by Arkarr View Post
What do you excpet then ? Help ? I won't if you give me no more then "not working m8 pliz fix".

EDIT : noticed the MP, don't send me private message for fixing things that you started by youself. post in thread instend ;)
Sorry, I didn't mean that. Could you please help me with it? It's working but not properly
, and I'm not good at pawn studio so I can't fix it. please and thank you anyway.
Raw123 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 01:12.


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