Raised This Month: $ Target: $400
 0% 

[HELP] Hud Message [Player]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheBadBoy
Junior Member
Join Date: Nov 2011
Old 11-19-2011 , 14:39   [HELP] Hud Message [Player]
Reply With Quote #1

Hello, Coders..

I have a problem with my Plugin, after i move my crosshair on a player, i have his name and health. The Hud Message (Remove after 3secondes)
I want only, if i move my crosshair from the player, then remove the Hud Message (Not after 3 secondes)

PHP Code:
public player_status(id)
{
        static 
typeplayerCsTeams:teamname[32], health
        type 
read_data(1)
        
player read_data(2)
        switch(
type)
        {
                case(
1):
                {
                        
ClearSyncHud(idg_HudSync[1][_hudsync])
                }
                case(
2):
                {
                        
team cs_get_user_team(player)

                        if(
team != CS_TEAM_T)
                                return 
PLUGIN_HANDLED
                        health 
get_user_health(player)
                        
get_user_name(playernamecharsmax(name))

                        
set_hudmessage(25500, -1.0, -1.021.030.10.14)
                        
show_hudmessage(id"%L"LANG_SERVER"JBE_PRISONER_STATUS"namehealth)

                        if(
team != CS_TEAM_CT)
                                return 
PLUGIN_HANDLED
                        health 
get_user_health(player)
                        
get_user_name(playernamecharsmax(name))

                        
set_hudmessage(0191255, -1.0, -1.021.030.10.14)
                        
show_hudmessage(id"%L"LANG_SERVER"JBE_GUARD_STATUS"namehealth)

                }
        }
        
        return 
PLUGIN_HANDLED

TheBadBoy is offline
 



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 08:29.


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