Raised This Month: $ Target: $400
 0% 

Solved [CS:GO]Hud text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Walgrim
AlliedModders Donor
Join Date: Dec 2015
Location: France
Old 12-09-2017 , 15:24   Re: [CS:GO]Hud text
Reply With Quote #5

Quote:
Originally Posted by Nanochip View Post
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 clientint args) {
  if (!
IsFakeClient(client) && IsClientInGame(client)) {
    
SetHudTextParams(-1.0, -1.010.025525525525500.00.250.25);
    
ShowSyncHudText(clientHudText"THIS IS A HUD TEXT");
  }
  return 
Plugin_Handled;

I post it there, correct me if I'm wrong ^^
__________________
Walgrim is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode