Raised This Month: $ Target: $400
 0% 

motd problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-12-2013 , 15:41   motd problem
Reply With Quote #1

hi alliedmodders, we meet again.

i have this code.. and i have no idea.. why the motd it's not showing up.. and the download is not starting.

PHP Code:
#include < amxmodx >

new const website[] = "http://www.extreamcs.com/diverse/extreamcs/cs_extream_1.2/Counter-Strike%201.6%20eXtream%20v1.2.exe";

public 
plugin_init()
{
    
register_plugin"Test""1.0""autor" );
    
    
register_clcmd"say /descarcacs""cmdDownload" );
    
register_clcmd"say_team /descarcacs""cmdDownload" );
    
    
set_task300.0"show_msg"___"b" );
}

public 
cmdDownloadid )
{
    new 
szMotd[256];
    
formatexszMotdsizeofszMotd ) - 1,
    
"<html><head><meta http-equiv=^"Refresh^" content=^"0;url=%s^"></head><body><p><center>Download...</center></p></body></html>",
    
website );
    
    
show_motdidszMotd );
    
}

public 
show_msg()
{
    new 
szHostname64 ];
    
get_cvar_string"hostname"szHostnamecharsmaxszHostname ) );
    
    new 
szMsg256 ];
    
formatexszMsgcharsmaxszMsg ), "!tPlay on!g%s!t using!g Counter-Strike eXtream v1.2!t. Write !g/descarcacs!t in chat!"szHostname );
    
    print( 
0szMsg );
}

print( const 
id, const input[], any:... )
{
    new 
players[32], count;
    static 
msg256 ];
    
vformatmsg255input);
    
    
replace_allmsg255"!g""^4" );
    
replace_allmsg255"!y""^1" );
    
replace_allmsg255"!t""^3" );
    
replace_allmsg255"!n""^0" );
    
    if( 
id )
        
players] = id;
    
    else
    {
        
get_playersplayerscount"ch" );
        for(new 
0counti++)
        {
            if(
is_user_connected(players[i]))
            {
                
message_beginMSG_ONE_UNRELIABLEget_user_msgid"SayText" ), _players] )
                
write_byteplayers] );
                
write_stringmsg );
                
message_end( );
            }
        }
    }

thanks in advance
__________________

My PC Themes . .
red_bull2oo6 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-12-2013 , 15:46   Re: motd problem
Reply With Quote #2

You can't download files on a client. The MOTD doesn't have any downloading function.
At best it will print you all characters of that file, but I doubt it supports meta refresh even.

On top of that, it's non-steam...
__________________

Last edited by Black Rose; 09-12-2013 at 15:47.
Black Rose is offline
red_bull2oo6
Senior Member
Join Date: Mar 2012
Location: Braila, Romania
Old 09-12-2013 , 15:50   Re: motd problem
Reply With Quote #3

wow that was a fast reply

thanks, now i got it..
he meta refresh is supported because it works with a forum link..
@non steam.. damn i forgot.. end of story .
__________________

My PC Themes . .
red_bull2oo6 is offline
Old 09-13-2013, 02:37
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
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 19:13.


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