Hud Message Help
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:
Edit: Just do the hudmessage in the code please. Thanks |
Re: Hud Message Help
PHP Code:
|
Re: Hud Message Help
Quote:
Catch it in DeathMsg or ham_killed whatever you prefer and assign the name to a string wich you can print in the "round end" event instead of hardcoding 145, plus then you don't need any set_task wich also means less lag :) Quote:
Since there is no "id" specified you can't get users name. Wich equals you cannot print the users name. |
Re: Hud Message Help
Quote:
PHP Code:
|
Re: Hud Message Help
Thanks for helping guys. Ill see if this works. I'm just new to coding.
So its this? #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); } |
Re: Hud Message Help
Quote:
Here is how I would've done it PHP Code:
|
Re: Hud Message Help
thx.
|
Re: Hud Message Help
no problem
|
| All times are GMT -4. The time now is 19:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.