Raised This Month: $45 Target: $400
 11% 

vgui_world_text_panel //SetDisplayText//


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evai
New Member
Join Date: Mar 2021
Old 03-29-2021 , 22:58   vgui_world_text_panel //SetDisplayText//
Reply With Quote #1

On the map they have vgui_world_text_panel and need change text with script, but how to do it idk

PHP Code:
void ChangeDisplayText()
{
    
char sBuffer[100];
    
int lastEdictInUse GetEntityCount();
    for (
int entity MaxClients+1entity <= lastEdictInUse; ++entity)
    {
        if ( !
IsValidEdict(entity) )
            continue;
        
        
GetEdictClassname(entitysBuffersizeof(sBuffer));    
        if (!
StrEqual(sBuffer"vgui_world_text_panel")) continue;

        
GetEntPropString(entityProp_Data"m_iName"sBuffersizeof(sBuffer)); 
        if (!
StrEqual(sBuffer"player")) continue;
        
        
SetEntPropString(entityProp_Data"here i got a brain daMage""Yep");
    }


Last edited by Evai; 03-29-2021 at 23:10.
Evai is offline
 


Thread Tools
Display Modes

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 15:19.


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