Jump to content

Cerere Plugin STATSx


marvel_team

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


Link to comment
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)

}  
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...