Hi. wanna create players info for spectators only - for 1st person, 3rd person(Free chase camera) and free look.
On free look spectator can see all players name over head. on 1st on 3rd too.
i found this plugin - but it shows info when aiming. need without aiming (
Thx in advance!
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Player Name Hud"
#define VERSION "1.0"
#define AUTHOR "Destroman"
const Float:HUD_STAT_X = -1.0;
const Float:HUD_STAT_Y = 0.60;
new g_status_sync;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("StatusValue", "showStatus", "be", "1=2", "2!0");
register_event("StatusValue", "hideStatus", "be", "1=1", "2=0");
g_status_sync = CreateHudSyncObj();
}
public showStatus(id)
{
if (is_user_connected(id))
{
new name[32], pid = read_data(2);
get_user_name(pid, name, 31);
if (is_user_alive(pid))
{
set_hudmessage(255, 0, 0, HUD_STAT_X, HUD_STAT_Y, 0, 1.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(id, g_status_sync, "%s", name);
}
}
}
public hideStatus(id)
{
ClearSyncHud(id, g_status_sync);
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
*/