Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #define PLUGIN "New Plug-in"
- #define VERSION "1.0"
- #define AUTHOR "eDward /R/"
- new site
- #define TASK_INTERVAL 3.0
- public plugin_init()
- {
- register_plugin( PLUGIN, VERSION, AUTHOR );
- set_task( TASK_INTERVAL, "RandomHudWithRandomColors", 0, "", 0, "b" );
- site = register_cvar("amx_site","www.indungi.ro");
- }
- public RandomHudWithRandomColors()
- {
- new timeleft = get_timeleft()
- new map[33]
- get_mapname(map,32)
- new forum[51]
- get_pcvar_string(site,forum,50)
- set_hudmessage( random(255), random(255) , random(255), -1.0, 0.04 )
- show_hudmessage( 0, "TimeLeft: %d:%02d | %s | Harta: %s", timeleft / 60, timeleft % 60, forum, map )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement