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

[Req] HUD message during the game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mirk
Senior Member
Join Date: Nov 2012
Old 05-27-2014 , 04:09   [Req] HUD message during the game
Reply With Quote #1

Hello all,
I need the plugin, where only during the game the player will show HUD message (one) and permanent.
Mirk is offline
L i F e
Junior Member
Join Date: May 2014
Old 05-27-2014 , 04:52   Re: [Req] HUD message during the game
Reply With Quote #2

give me More info Bro......
L i F e is offline
GinNNy
Senior Member
Join Date: Mar 2014
Old 05-27-2014 , 05:00   Re: [Req] HUD message during the game
Reply With Quote #3

what you want to show in hud message ?
GinNNy is offline
connoisseur
Senior Member
Join Date: Jan 2012
Old 05-27-2014 , 05:10   Re: [Req] HUD message during the game
Reply With Quote #4

This plugin already exists. Its name is "Permanent message".
Search permanent* in the "Approved plugins" section, use "Search titles only" option.
__________________
connoisseur is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 05-27-2014 , 05:19   Re: [Req] HUD message during the game
Reply With Quote #5

Quote:
Originally Posted by GinNNy View Post
what you want to show in hud message ?
What a player (CT or TE), HP, AP, money and Rank (if you do not know, never mind).
Mirk is offline
GinNNy
Senior Member
Join Date: Mar 2014
Old 05-27-2014 , 05:42   Re: [Req] HUD message during the game
Reply With Quote #6

Here you go
And get dhudmessage from here
Attached Files
File Type: sma Get Plugin or Get Source (statshud.sma - 488 views - 1,004 Bytes)

Last edited by GinNNy; 05-27-2014 at 09:24.
GinNNy is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 05-27-2014 , 08:51   Re: [Req] HUD message during the game
Reply With Quote #7

Quote:
Originally Posted by GinNNy View Post
Here you go
And get dhudmessage from here
Thanks, but when I disconnect, lists this in the console: SZ_GetSpace: overflow on ^Awa[K]e^~[M]irk
Mirk is offline
GinNNy
Senior Member
Join Date: Mar 2014
Old 05-27-2014 , 09:25   Re: [Req] HUD message during the game
Reply With Quote #8

Download the plugin again and tell me the results.
GinNNy is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 05-27-2014 , 09:35   Re: [Req] HUD message during the game
Reply With Quote #9

Quote:
Originally Posted by GinNNy View Post
Download the plugin again and tell me the results.
the same
Mirk is offline
plazma
Senior Member
Join Date: Oct 2013
Old 05-27-2014 , 12:59   Re: [Req] HUD message during the game
Reply With Quote #10

Added this code wtf??

PHP Code:
public client_disconnect(id)
{
    
remove_task(id)

Here is

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <csx>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_event("ResetHUD""event_ResetHud""be");

}

public 
event_ResetHud(id)
{
    
ShowHud(id);
}

public 
client_putinserver(id)
{
    if (
is_user_connected(id) && is_user_alive(id))
    {
     
set_task(1.0"ShowHud"id__"b");
    }
}

public 
Showhud(id)
{
    new 
money
    
new bodyhits[8], stats[8]
    new 
name[32], stats1

    get_user_name
(idname31)
    
money cs_get_user_money(id)
    
stats1 get_user_stats(idstatsbodyhits)

    if (
is_user_connected(id) && is_user_alive(id) && (get_user_team(id) == || get_user_team(id) == 2))
    {
    
set_dhudmessage(025500.0, -1.00_16.0)
    
show_dhudmessage(id"Health: %d^nArmor: %d^nMoney: %d^nRank: %i/%i"get_user_health(id), get_user_armor(id), moneystatsget_statsnum())
    }

__________________
Free Palestine ♥

Last edited by plazma; 05-27-2014 at 13:06.
plazma 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:28.


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