Raised This Month: $ Target: $400
 0% 

motd problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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