Raised This Month: $318 Target: $400
 79%   Almost there!

vgui_world_text_panel //SetDisplayText//


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evai
New Member
Join Date: Mar 2021
Old 03-29-2021 , 21: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 22:10.
Evai is offline
stece
Junior Member
Join Date: May 2021
Old 01-13-2022 , 12:12   Re: vgui_world_text_panel //SetDisplayText//
Reply With Quote #2

Did you ever find the correct property name? Looking for the same thing in reverse. Getting that property.
stece is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-16-2022 , 13:21   Re: vgui_world_text_panel //SetDisplayText//
Reply With Quote #3

PHP Code:
...
    
int vgui_world_text_panel FindEntityByClassname(-1"vgui_world_text_panel");

    if(
vgui_world_text_panel == -1)
        return 
Plugin_Handled;


    
SetEntPropString(vgui_world_text_panelProp_Send"m_szDisplayText""Yes asdsadasdsa   asdasdasdasdsads");
... 
__________________
Do not Private Message @me
Bacardi is offline
Reply


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:35.


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