I'm trying to make a plugin with mp_roundtime 145 but I can't figure this out. I want it to announce the last bullet kill.
PHP Code:
#include <amxmodx>
#pragma semicolon 1
#define VERSION "1.1"
public plugin_init()
{
register_plugin("Hud Advertising", VERSION, "enjoi.");
set_task(145.0, "ShowAdvert", _, _, _, "b");
}
public ShowAdvert(id)
{
new szName[32]; get_user_name(id, szName, charsmax(szName))
set_hudmessage(0, 0, 255, -1.0, 0.85, 0, 0.0, 12.0, 0.1, 0.2);
show_hudmessage(0, "Last Bullet By: %s", szName);
}
Can anybody help?
Edit: Just do the hudmessage in the code please. Thanks
__________________