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_num( 0, TGASUM - 1)
g_SendOnce[id] = false
// send show tga command to client
message_begin( MSG_ONE, SVC_DIRECTOR, _, id )
write_byte( strlen( szTga[index]) + 2 ) // command length in bytes
write_byte( DRC_CMD_BANNER )
write_string( szTga[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
__________________