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

Spec: Name, Health, Armor, Weapon.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GalaxyChicks
Junior Member
Join Date: Aug 2017
Location: Weed City
Old 08-24-2017 , 06:47   Spec: Name, Health, Armor, Weapon.
Reply With Quote #1

What up Allies.. I got an awesome plugin idea..

If anyone is willing to do this plugin for free that would be greatly appreciated.
If not but willing to do it for a payment i would be willing to do that as well.

Okay i would like a plugin similar to the hud effect from all zombie plague mods

NEEDS TO BE DHUDMESSAGE
While in spectator viewing another player i would like a hud to show, Showing the players
name, health, armor and the current weapon he is using. would like the hud to update as well

if he takes any damage the hud updates showing his new health and armor. Also if he changes weapon while you are spectating him i would like the hud to update showing the weapon he is currently holding in his hands.

if someone can do this for free that would be very appreciated. Again if you'll do it only privately than please PM me...

Last edited by GalaxyChicks; 08-24-2017 at 07:04.
GalaxyChicks is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-24-2017 , 09:03   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #2

Call me crazy but its 2017 if anything similar hasn't been already done I'm George fucking Bush.
Have you tried the search bar? This isn't hard to do at all. Btw why do you need it to show current weapon?
__________________
Rohanlogs is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-24-2017 , 10:06   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #3

PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <fakemeta_util>
    
    
new const
    
/* ----------------------------------- */
    
    
PluginName[] = "Hud info",
    
PluginVersion[] = "0.1",
    
PluginAuthor[] = "Ayman Khaled"
    
    
/* ----------------------------------- */

    
const PEV_SPEC_TARGET pev_iuser2;

    new 
g_MaxClients;

    public 
plugin_init( )
    {
        
register_pluginPluginNamePluginVersionPluginAuthor )
        
g_MaxClients get_maxplayers( );
    }

    public 
client_putinserveriPlayer )
    {
        if( !
is_user_alive iPlayer ) )
            
set_task 0.5"ShowDeadInfo"___"b"); 
    }
    
    public 
ShowDeadInfo( ) // plugin will not set the task till user died/joined spectator team and spectated someone.
    
{
        static 
iPlayer
        for ( 
iPlayer 1iPlayer <= g_MaxClientsiPlayer++ ) 
        {           
            new 
iSpecPlayer peviPlayerPEV_SPEC_TARGET )
            
            if(!(
<= iSpecPlayer <= g_MaxClients))
                return
            
            new
                
szWeapon32 ],
                
SpecName33 ],     
                
SpecHealth get_user_healthiSpecPlayer ), 
                
CsArmorType:ArmorType,
                
SpecArmor cs_get_user_armoriSpecPlayerArmorType ),
                
iWeapon get_user_weaponiSpecPlayer )
                
            
get_weaponnameiWeaponszWeaponcharsmaxszWeapon ));
            
replaceszWeaponcharsmaxszWeapon ), "weapon_"""); // it will print for example: awp instead of weapon_awp.
            
            
get_user_nameiSpecPlayerSpecNamecharsmaxSpecName ) )
        
            if( 
is_user_alive iSpecPlayer ) )
            {
                
set_dhudmessage 1061208, -1.00.206.00.5 ); 
                
show_dhudmessage iPlayer"[Name: %s | Health: %d | Armor: %d | Weapon: %s]"SpecNameSpecHealthSpecArmorszWeapon); 
            }
        }
    } 
__________________

Last edited by Ayman Khaled; 08-24-2017 at 10:26.
Ayman Khaled is offline
GalaxyChicks
Junior Member
Join Date: Aug 2017
Location: Weed City
Old 08-24-2017 , 10:32   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #4

Quote:
Originally Posted by Rohanlogs View Post
Call me crazy but its 2017 if anything similar hasn't been already done I'm George fucking Bush.
Have you tried the search bar? This isn't hard to do at all. Btw why do you need it to show current weapon?
One: Just because it's 2017 doesn't mean shit

Two: I understand you have the right to comment whatever you want but i was not asking for sarcasm other wise i would of added that in the thread.

Three: The search bar doesn't contain what i asked for, Maybe (YOU) should search before replying I want it to show the current weapon because in my opinion i think thats pretty cool and others would agree i am sure. but thank you for you're input!

Last edited by GalaxyChicks; 08-24-2017 at 10:34.
GalaxyChicks is offline
GalaxyChicks
Junior Member
Join Date: Aug 2017
Location: Weed City
Old 08-24-2017 , 10:33   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #5

Quote:
Originally Posted by Rohanlogs View Post
Call me crazy but its 2017 if anything similar hasn't been already done I'm George fucking Bush.
Have you tried the search bar? This isn't hard to do at all. Btw why do you need it to show current weapon?
Quote:
Originally Posted by Ayman Khaled View Post
PHP Code:
    #include <amxmodx>
    #include <cstrike>
    #include <fakemeta_util>
    
    
new const
    
/* ----------------------------------- */
    
    
PluginName[] = "Hud info",
    
PluginVersion[] = "0.1",
    
PluginAuthor[] = "Ayman Khaled"
    
    
/* ----------------------------------- */

    
const PEV_SPEC_TARGET pev_iuser2;

    new 
g_MaxClients;

    public 
plugin_init( )
    {
        
register_pluginPluginNamePluginVersionPluginAuthor )
        
g_MaxClients get_maxplayers( );
    }

    public 
client_putinserveriPlayer )
    {
        if( !
is_user_alive iPlayer ) )
            
set_task 0.5"ShowDeadInfo"___"b"); 
    }
    
    public 
ShowDeadInfo( ) // plugin will not set the task till user died/joined spectator team and spectated someone.
    
{
        static 
iPlayer
        for ( 
iPlayer 1iPlayer <= g_MaxClientsiPlayer++ ) 
        {           
            new 
iSpecPlayer peviPlayerPEV_SPEC_TARGET )
            
            if(!(
<= iSpecPlayer <= g_MaxClients))
                return
            
            new
                
szWeapon32 ],
                
SpecName33 ],     
                
SpecHealth get_user_healthiSpecPlayer ), 
                
CsArmorType:ArmorType,
                
SpecArmor cs_get_user_armoriSpecPlayerArmorType ),
                
iWeapon get_user_weaponiSpecPlayer )
                
            
get_weaponnameiWeaponszWeaponcharsmaxszWeapon ));
            
replaceszWeaponcharsmaxszWeapon ), "weapon_"""); // it will print for example: awp instead of weapon_awp.
            
            
get_user_nameiSpecPlayerSpecNamecharsmaxSpecName ) )
        
            if( 
is_user_alive iSpecPlayer ) )
            {
                
set_dhudmessage 1061208, -1.00.206.00.5 ); 
                
show_dhudmessage iPlayer"[Name: %s | Health: %d | Armor: %d | Weapon: %s]"SpecNameSpecHealthSpecArmorszWeapon); 
            }
        }
    } 

Thank you @Ayman Khaled You're plugin works just fine. As always man you're awesome!
GalaxyChicks is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-24-2017 , 12:08   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #6

Quote:
Originally Posted by GalaxyChicks View Post
One: Just because it's 2017 doesn't mean shit
Yes, it does. Lol, that's like the whole point. It means that this site is getting pretty old and many things have been already done.

Quote:
Originally Posted by GalaxyChicks View Post
Two: I understand you have the right to comment whatever you want but i was not asking for sarcasm other wise i would of added that in the thread.
I was not being sarcastic or trying to offend you in any kind of way, I was just making a point that this has been already made for sure, or at least something similar.

Quote:
Originally Posted by GalaxyChicks View Post
Three: The search bar doesn't contain what i asked for
Except that it does.
Right here is a plugin that's almost exactly like you described (took me LITERALLY 2 seconds to search), and there are probably even more:
https://forums.alliedmods.net/showthread.php?p=1469706

Quote:
Originally Posted by GalaxyChicks View Post
Maybe (YOU) should search before replying
Nope. That's not my job. That's your job.
You should take a look at the forum rules / sticky threads before posting, and before you start being an ass to your potential helpers:

https://forums.alliedmods.net/showpo...00&postcount=1
__________________
Rohanlogs is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-24-2017 , 12:29   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #7

Quote:
Originally Posted by Rohanlogs View Post
Except that it does.
Right here is a plugin that's almost exactly like you described (took me LITERALLY 2 seconds to search), and there are probably even more:
https://forums.alliedmods.net/showthread.php?p=1469706
Quote:
Originally Posted by GalaxyChicks View Post
I want it to show the current weapon because in my opinion i think thats pretty cool and others would agree i am sure. but thank you for you're input!
__________________
Ayman Khaled is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 08-24-2017 , 12:46   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #8

I'm not going to even bother replying anymore.
I don't understand your point Ayman, like I said its almost the same.
He could've just searched and asked us to add the current weapon feature to these plugins that already exist rather than requesting a new one. But if the rules cannot touch him then nevermind..
__________________

Last edited by Rohanlogs; 08-24-2017 at 12:54.
Rohanlogs is offline
GalaxyChicks
Junior Member
Join Date: Aug 2017
Location: Weed City
Old 08-24-2017 , 19:38   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #9

Quote:
Originally Posted by Rohanlogs View Post
I'm not going to even bother replying anymore.
I don't understand your point Ayman, like I said its almost the same.
He could've just searched and asked us to add the current weapon feature to these plugins that already exist rather than requesting a new one. But if the rules cannot touch him then nevermind..
Honestly it really doesn't matter if Ayman Khaled didn't want to create his plugin he did not have too. Maybe you should stop replying like you said you would because this thread Will not turn into an argument, Ayman Khaled work was greatly appreciated. Again the search bar didn't have what i wanted. So i am not in the wrong to request what i wanted regardless if i could of edited something i did not fully know how to that is why we have a damn request section so relax. again thanks for input it's always appreciated
GalaxyChicks is offline
heroicpower7613
Member
Join Date: Nov 2016
Old 08-25-2017 , 02:03   Re: Spec: Name, Health, Armor, Weapon.
Reply With Quote #10

Quote:
Originally Posted by GalaxyChicks View Post
Again the search bar didn't have what i wanted.
Quote:
Originally Posted by Rohanlogs View Post

Except that it does.
Right here is a plugin that's almost exactly like you described (took me LITERALLY 2 seconds to search), and there are probably even more:
https://forums.alliedmods.net/showthread.php?p=1469706
lol..
heroicpower7613 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 00:06.


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