Jump to content
Sign in to follow this  
marvel_team

Cerere Plugin STATSx

Recommended Posts

Nume :DNS,Harta,timp ramas si ora


Versiune :Nu conteaza


Descriere detaliata :


Pluginu respectiv l-am avut dar l-am sters din greseala


Deci iti arata numele la server ,timpul ramas,data si ora in hud sus / mijloc.multumesc


Share this post


Link to post
Share on other sites
#include <amxmodx>

 

public plugin_init()

{

register_plugin("Informatii in hud", "1.0", "StefaN@CSX");

 

set_task(1.0, "info_hud",_,_,_,"b");

}

 

public info_hud()

{

new hostname[62], map[32], timeleft = get_timeleft(), ora[10];

 

get_cvar_string("hostname", hostname, charsmax(hostname))

get_mapname(map, charsmax(map))

get_time("%H:%M:%S", ora, charsmax(ora))

 

 

set_hudmessage(random_num(0, 50), random_num(0, 50), random_num(0, 50), -1.0, 0.02)

show_hudmessage(0, "DNS: %s^n Harta: %s | Timp ramas: %d:%02d | Ora: %s", hostname, map, timeleft / 60, timeleft % 60, ora)

}  

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×