AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to add HUD MENSSAGE HERE (https://forums.alliedmods.net/showthread.php?t=113619)

MouseSplash! 12-28-2009 15:22

How to add HUD MENSSAGE HERE
 
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..

Mxnn 12-28-2009 16:00

Re: How to add HUD MENSSAGE HERE
 
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?

Arkshine 12-28-2009 16:12

Re: How to add HUD MENSSAGE HERE
 
Please speak english, or go here.

MouseSplash! 12-28-2009 18:30

Re: How to add HUD MENSSAGE HERE
 
sorry*
how to add hud message with the cont is finished...

its for last resquest menu this cont.

Mxnn 12-28-2009 19:04

Re: How to add HUD MENSSAGE HERE
 
PHP Code:

if (timer == 0
//Timer finished. 


Arkshine 12-28-2009 21:12

Re: How to add HUD MENSSAGE HERE
 
Hard to understand you. If you can't speak english, ask for someone to translate you, or go to the Others section.


All times are GMT -4. The time now is 04:11.

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