Raised This Month: $ Target: $400
 0% 

Removing Spectator Banner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
johnally
Member
Join Date: May 2011
Location: Mauritius
Old 05-12-2011 , 17:28   Removing Spectator Banner
Reply With Quote #1

Here I am again. I hate starting new threads but after some search, I guess It is a must :/

I used the coding below to add a spectator banner top-left.

PHP Code:
// sum of tga files
#define TGASUM 1

// tga of banners
new szTga[TGASUM][] ={
"gfx/banner1.tga"

PHP Code:
public joined_team()
{
    new 
id get_id();

    if ( 
g_SendOnce[id] && is_user_connected(id) )
    {
        
// random select one tga
        
new index random_num0TGASUM 1)
        
g_SendOnce[id] = false

        
// send show tga command to client
        
message_beginMSG_ONESVC_DIRECTOR_id )
        
write_bytestrlenszTga[index]) + // command length in bytes
        
write_byteDRC_CMD_BANNER )
        
write_stringszTga[index] ) // banner file
        
message_end()
   }

However, when client disconnects from server and connects somewhere else, he still sees the banner as I guess it was cached.

Is there a way to clear the banner from cache or add null data to replace the banner?

Btw, I am really thankful of the help you are giving me guys
__________________
No allowed!

johnally 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 04:27.


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