Raised This Month: $32 Target: $400
 8% 

[REQ] Welcome MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-07-2014 , 07:47   [REQ] Welcome MOTD
Reply With Quote #1

hello everyone
i requesting a plugin that show MOTD with in formations about the server like this also

[IMG]http://s24.************/t1gaxash1/2014_10_07_00003.jpg[/IMG]

help please
thanks.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by 5aloOod; 10-07-2014 at 07:48.
5aloOod is offline
zDac
Member
Join Date: Jan 2013
Old 10-07-2014 , 08:58   Re: [REQ] Welcome MOTD
Reply With Quote #2

Code:
#include <amxmodx>
 
public plugin_init()
{
    register_clcmd("say /motd","admin_motd");
}
 
public admin_motd(id)
{
    show_motd(id,"text.txt","Ur text")
    return PLUGIN_CONTINUE  
}
Add text.txt in cstrike folder
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-07-2014 , 09:04   Re: [REQ] Welcome MOTD
Reply With Quote #3

it will not be shown when player connected and it don't show the informations that i want
nickname , hostname , date and time , players on the server, current map, timeleft etc..
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
5aloOod is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 10-07-2014 , 12:21   Re: [REQ] Welcome MOTD
Reply With Quote #4

Check it
PHP Code:
#include <amxmodx>

new map[32];
new 
hostname[32];
new 
timelimit;
new 
maxplayers;

public 
plugin_init() {
    
set_msg_block(892);

    
get_mapname(map31);
    
get_cvar_string("hostname"hostname31);
    
timelimit get_cvar_num("mp_timelimit");
    
maxplayers get_maxplayers();
}

public 
client_putinserver(id) {
    if(
is_user_bot(id) || is_user_hltv(id)) return;

    new 
buffer[2048], szBuffer[2048], name[32], ip[23], todayIs[64], nextmap[32], timeleft[6], iLen;
    
get_user_name(idname31);
    
get_user_ip(idip22);
    
get_time("%A %B %d, %Y - %H:%M:%S"todayIs63);
    
get_cvar_string("amx_nextmap"nextmap31);
    
format_time(timeleft5"%M:%S"get_timeleft());

    
formatex(szBuffer2047"Hello %s, welcome to %s<br><br>"namehostname);
    
iLen copy(buffer[iLen], 2047-iLenszBuffer);
    
iLen += formatex(buffer[iLen], 2047-iLen"<p>Today is %s<br>You are playing from: %s<br>"todayIsip);
    
iLen += formatex(buffer[iLen], 2047-iLen"Players on server: %i/%i<br>"get_playersnum(), maxplayers);
    
iLen += formatex(buffer[iLen], 2047-iLen"Current map: %s, Next map: %s<br>"mapnextmap);
    
iLen += formatex(buffer[iLen], 2047-iLen"Time Left: %s of %i minutes<br>"timelefttimelimit);
    
iLen += formatex(buffer[iLen], 2047-iLen"Friendly Fire is O%s<br>"get_cvar_num("mp_friendlyfire") ? "N" "FF");
    
iLen += formatex(buffer[iLen], 2047-iLen"C4 Timer is set to %i sec.<br><br>"get_cvar_num("mp_c4timer"));
    
iLen += formatex(buffer[iLen], 2047-iLen"Server Mods:<br><ul>");
    
iLen += formatex(buffer[iLen], 2047-iLen"<li>AMX Mod X: %s</li></ul></p>"AMXX_VERSION_STR);
    
show_motd(idbuffername);


Last edited by OnePL; 10-07-2014 at 12:23.
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-07-2014 , 15:36   Re: [REQ] Welcome MOTD
Reply With Quote #5

Afaik, you can't show an MOTD until after they have clicked through the actual MOTD, the team selection menu, and the class selection menu.
__________________
fysiks is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 10-07-2014 , 19:59   Re: [REQ] Welcome MOTD
Reply With Quote #6

PHP Code:
set_msg_block(892
blocking display the default motd (before team menu)
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-08-2014 , 07:23   Re: [REQ] Welcome MOTD
Reply With Quote #7

its not working no MOTD comes when i join
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
5aloOod is offline
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 13:22.


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