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

[Request] Hud info Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-31-2020 , 16:28   [Request] Hud info Plugin
Reply With Quote #1

Hello Guys..
Can anyone make hud info plugin please
Show in hud [ Player name : / health: / class: / money ]
Supremache is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-31-2020 , 16:34   Re: [Request] Hud info Plugin
Reply With Quote #2

show the code you use for the classes (and money if it's not regular CS $$$)
__________________

Last edited by Napoleon_be; 03-31-2020 at 16:34.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-31-2020 , 17:54   Re: [Request] Hud info Plugin
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
show the code you use for the classes (and money if it's not regular CS $$$)
Zombie base builder codes . just add get_user_money(id) code for money
Bro just do simple
Name : playername | Classes: Zombie/Human | health: hp | money: how much money you have $$]

Last edited by Supremache; 03-31-2020 at 18:02.
Supremache is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 03-31-2020 , 18:08   Re: [Request] Hud info Plugin
Reply With Quote #4

basebuilder already has that hud, just add money by yourself
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-31-2020 , 18:25   Re: [Request] Hud info Plugin
Reply With Quote #5

Quote:
Originally Posted by Nutu_ View Post
basebuilder already has that hud, just add money by yourself
I know but in new zombie bb version v6.7 mod dosen't have it
i have this hud but in this hud have only "health+armor+money" i dont know how to add player name and class
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Hud"
#define VERSION "1.0"
#define AUTHOR "Deza"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
set_task(1.0"top_info",1,"",0,"b")
}

public 
top_info(id) {
    
    new 
hp get_user_health(id)
    new 
ap get_user_armor(id)
    new 
money cs_get_user_money(id);
    
    
set_hudmessage(02552550.0, -1.006.012.0)
    
show_hudmessage(id"//*************\\^n|>| Health: %d    ^n|>| Armor: %d    ^n|>|Money: %d     ^n|>| FreeVIP 24/7^n\\************//",hp,ap,money)

Supremache is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-31-2020 , 18:47   Re: [Request] Hud info Plugin
Reply With Quote #6

How are we supposed to know how to add class to the hud if we don't have a proper include file or a proper sma code?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-31-2020 , 19:34   Re: [Request] Hud info Plugin
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
How are we supposed to know how to add class to the hud if we don't have a proper include file or a proper sma code?
Zombie base builder sma and inc file
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder65.sma - 253 views - 84.8 KB)
File Type: inc basebuilder.inc (9.4 KB, 81 views)
Supremache is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-31-2020 , 20:23   Re: [Request] Hud info Plugin
Reply With Quote #8

Here you go

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <basebuilder>

#define PLUGIN "ShowHud"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

#define HUDID 10004

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
}

public 
client_putinserver(id)
{
    
set_task(2.0"ShowHud"id HUDID);
}

#if AMXX_VERSION_NUM < 190
public client_disconnect(id)
#else
public client_disconnected(id)
#endif
{
    
remove_task(id HUDID);
}

public 
ShowHud(id)
{
    
id -= HUDID;
    
    if(
is_user_alive(id))
    {
        
// Shouldn't be saved, but better for readability.
        
new iHealth get_user_health(id);
        new 
iArmor get_user_armor(id);
        new 
iMoney cs_get_user_money(id);
        
        new 
szName[33];
        
get_user_name(idszNamecharsmax(szName));
        
        
set_hudmessage(02552550.0, -1.006.01.0)
        
show_hudmessage(id"Name: %s | Health: %i | Armor: %i | Class: %s | Money: %i"szNameiHealthiArmorbb_is_user_zombie(id) ? "Zombie" "Human"iMoney);
        
        
    }
    
set_task(1.0"ShowHud"id HUDID);

__________________

Last edited by Napoleon_be; 03-31-2020 at 20:23.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 03-31-2020 , 20:43   Re: [Request] Hud info Plugin
Reply With Quote #9

Thanks you bro so much <3
Solved...
Supremache 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:43.


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