Raised This Month: $ Target: $400
 0% 

How to add HUD MENSSAGE HERE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 12-28-2009 , 15:22   How to add HUD MENSSAGE HERE
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "TEST"
#define VERSION "1.0"
#define AUTHOR "TEST"

new Restante
new Tiempo
new g_maxplayers

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""death_event""a")  
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
g_maxplayers get_maxplayers()
}

public 
death_event()
{
    
set_task(1.0"Restante1")
}  

public 
event_round_start()
{
    
set_task(1.0"Restante1")
    
Tiempo 20
    Restante 
19
}

public 
Restante1()
{    
    static 
i
    
for (1<= g_maxplayersi++)
    {
        if(
is_user_alive(i) && fnGetT() == && get_user_team(i) == 1)
        {
            
Restante--
            
            
set_hudmessage(17900, -1.00.2820.021.00.010.110); 
            
show_hudmessage(0"Tiempo Restante: %i"Tiempo); 
            --
Tiempo;
            
            if(
Tiempo >= 1)
            {
        
set_task(1.0"Restante1")
            }
        }
    }
}
    
fnGetT()
{
    static 
iTi
    iT 
0
    
    
for (1<= g_maxplayersi++)
    {
        if (
is_user_alive(i) && get_user_team(i) == 1)
            
iT++
    }
    
    return 
iT;

help


sorry*
how to add hud message with the cont is finished..

Last edited by MouseSplash!; 12-28-2009 at 18:29.
MouseSplash! is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-28-2009 , 16:00   Re: How to add HUD MENSSAGE HERE
Reply With Quote #2

Esta parte del foro es en ingles, tendrias qe escribir ingles pero te lo voy a responder.
Primero qe nada, la variable "i" deberia ser normal (new i=1) no una static.
Y segundo a qien qeres qe maten?
Mxnn is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-28-2009 , 16:12   Re: How to add HUD MENSSAGE HERE
Reply With Quote #3

Please speak english, or go here.
__________________
Arkshine is offline
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 12-28-2009 , 18:30   Re: How to add HUD MENSSAGE HERE
Reply With Quote #4

sorry*
how to add hud message with the cont is finished...

its for last resquest menu this cont.
MouseSplash! is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-28-2009 , 19:04   Re: How to add HUD MENSSAGE HERE
Reply With Quote #5

PHP Code:
if (timer == 0
//Timer finished. 
Mxnn is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-28-2009 , 21:12   Re: How to add HUD MENSSAGE HERE
Reply With Quote #6

Hard to understand you. If you can't speak english, ask for someone to translate you, or go to the Others section.
__________________
Arkshine 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 04:11.


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