Raised This Month: $ Target: $400
 0% 

override native message assets path


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Watermelonnable
Member
Join Date: Feb 2017
Old 12-02-2019 , 11:18   override native message assets path
Reply With Quote #1

Is there a way to overwrite some gfx used by amx natively?

I'm trying to use g_MsgTutor = get_user_msgid("TutorText"); that precaches the followings:

PHP Code:
public plugin_precache()
{
    
precache_generic("gfx/career/icon_!.tga");
    
precache_generic("gfx/career/icon_!-bigger.tga");
    
precache_generic("gfx/career/icon_i.tga");
    
precache_generic("gfx/career/icon_i-bigger.tga");
    
precache_generic("gfx/career/icon_skulls.tga");
    
precache_generic("gfx/career/round_corner_ne.tga");
    
precache_generic("gfx/career/round_corner_nw.tga");
    
precache_generic("gfx/career/round_corner_se.tga");
    
precache_generic("gfx/career/round_corner_sw.tga");
    
precache_generic("resource/TutorScheme.res");
    
precache_generic("resource/TutorScheme.res");
    
precache_generic("resource/UI/TutorTextWindow.res");

I had a problem testing this since nobody except me could see the message, until I asked some of the testers to delete the folder and download those again through the server (they had those already downloaded) and it worked.

Is there a way to overwrite those file paths? like gfx/myservername/round_corner_sw.tga

Last edited by Watermelonnable; 12-02-2019 at 11:23. Reason: typo
Watermelonnable 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 02:41.


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