brian233123
|
分享:
▲
#include <amxmodx>
#define TASKID_SHOWHUD 123321
new g_SyncObj;
public plugin_init() { register_plugin("Show HUD", "1.0", "Your name"); g_SyncObj = CreateHudSyncObj(); }
public client_putinserver(id) { set_task(1.0, "ShowHUD", id+TASKID_SHOWHUD, _, _, "b"); }
public client_disconnect(id) { remove_task(id+TASKID_SHOWHUD); }
public ShowHUD(taskid) { new id = taskid - TASKID_SHOWHUD set_hudmessage(XXXXXXXXXXXXXXX); ShowSyncHudMsg(id, g_SyncObj, "XXXXXXX"); }
|