AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hud time (https://forums.alliedmods.net/showthread.php?t=329614)

El Abuelo Loco 12-31-2020 17:19

hud time
 
can someone give me a hand? I have this little plugin the thing that I would like to know well about (certain_time = random_float)

I would like it to come out every 3 min

PHP Code:

#include <amxmodx>

#define PLUGIN "Mensaje"
#define VERSION "1.0"
#define AUTHOR "Talquito."


new Float:cierto_tiempo;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
cierto_tiempo random_float(60.0180.0);
    
    
set_task(cierto_tiempo"show_hud", .flags="b");
}

public 
show_hud() {
    
    
set_hudmessage(25500, -1.00.2821.02.00.010.01, -1)
    
show_hudmessage(0"VISITA NUESTRAS REDES:");



fysiks 12-31-2020 18:08

Re: hud time
 
If you want three minutes, then don't use the random number, use 3 minutes.

Napoleon_be 12-31-2020 18:42

Re: hud time
 
cierto_tiempo = 180.0

Natsheh 12-31-2020 19:02

Re: hud time
 
Code:

amx_freq_imessage 180
amx_imessage "VISITA NUESTRAS REDES:" "255000000"

add this in your amxx.cfg you don't even need to create a plugin...


All times are GMT -4. The time now is 10:40.

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