Raised This Month: $ Target: $400
 0% 

[SNIPPET][CSS] using new entity env_hudhint


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 07-23-2010 , 18:12   [SNIPPET][CSS] using new entity env_hudhint
Reply With Quote #1

i wasn't sure where to post this so sorry if this is the wrong section, css can now use env_hudhint which means css can also use the "KeyHintText" usermessage e.g

PHP Code:
new String:Message[10] = "hello";
new 
Handle:hBuffer StartMessageOne("KeyHintText"client);
BfWriteByte(hBuffer1);
BfWriteString(hBufferMessage);
EndMessage(); 
this shows a message on the bottom right of the screen, use StartMessageAll("KeyHintText") if you want to send a message to everyone.

if you want to use the entity way.

PHP Code:
new HHIndex CreateEntityByName("env_hudhint");
if (
HHIndex != -1)
 {
    
DispatchKeyValue(HHIndex"message""hello");
    
DispatchKeyValue(HHIndex"spawnflags""1");
    
    
DispatchSpawn(HHIndex);
    
ActivateEntity(HHIndex);
    
    
AcceptEntityInput(HHIndex"ShowHudHint");
 } 
i think this way will show to all clients.

Last edited by blodia; 07-23-2010 at 19:58. Reason: changed topic name
blodia 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 18:47.


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