Quote:
Originally Posted by Nanochip
It would help everyone understand what you're trying to accomplish if you tell us what your end goal is, what you have tried, and any code that you may have to post.
|
He wanted to know how to create a hudsynchronizer and show the hud text during 10 seconds:
PHP Code:
#include <sourcemod>
#pragma newdecls required
static Handle HudText = null;
public void OnPluginStart() {
RegConsoleCmd("sm_hudtext", Command_HudText);
HudText = CreateHudSynchronizer();
}
public Action Command_HudText(int client, int args) {
if (!IsFakeClient(client) && IsClientInGame(client)) {
SetHudTextParams(-1.0, -1.0, 10.0, 255, 255, 255, 255, 0, 0.0, 0.25, 0.25);
ShowSyncHudText(client, HudText, "THIS IS A HUD TEXT");
}
return Plugin_Handled;
}
I post it there, correct me if I'm wrong ^^
__________________