Raised This Month: $ Target: $400
 0% 

How to replace default "motd.txt" to my motd plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-19-2011 , 09:09   How to replace default "motd.txt" to my motd plugin?
Reply With Quote #1

How to replace default "motd.txt" to my motd plugin?

PHP Code:
public client_connect(id)
{
    
ShowMotd(id)
    
    return;
}

public 
ShowMotd(id)
{
    new 
ip[64];
    
get_user_ip(0ipcharsmax(ip))
    
     static 
name[33];
     
get_user_name(idname32);
    
    static 
motd[1501], len;

....
etc 
__________________
kiki33hun is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-19-2011 , 10:09   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #2

Why not make the default MOTD the way you want it ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 13:57   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #3

Like drekes said, all you need to to is edit motd.txt to what you want or have it refresh to your website.
__________________
fysiks is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-19-2011 , 14:31   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #4

I "motd" print welcome %s(name) message, how to use?

Sry bad eng
__________________
kiki33hun is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 14:35   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #5

Quote:
Originally Posted by kiki33hun View Post
I "motd" print welcome %s(name) message, how to use?

Sry bad eng
Well, in that case you need to delete motd.txt and show your own just like any other motd. However, I'm not entirely sure you can show the MOTD over the team selection menu (maybe).
__________________

Last edited by fysiks; 12-19-2011 at 14:36.
fysiks is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-19-2011 , 14:49   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #6

I deleted motd.txt my putinserver and go straight to the selector comes in. NOT WORKING
__________________
kiki33hun is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-19-2011 , 14:51   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #7

Don't delete it. Open it and change the text.
__________________
hleV is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 14:56   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #8

Quote:
Originally Posted by hleV View Post
Don't delete it. Open it and change the text.
That's not a valid solution as you likely can't guarantee that it gets changed before it gets sent to the client. Also, this is a potential race condition.

I guess he can try it and hope to get lucky .
__________________

Last edited by fysiks; 12-19-2011 at 14:57.
fysiks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-19-2011 , 14:57   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #9

Quote:
Originally Posted by hleV View Post
Don't delete it. Open it and change the text.
Did you read what hleV said ?
__________________
You can do anything you set your mind to, man.

Devil259 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-19-2011 , 14:53   Re: How to replace default "motd.txt" to my motd plugin?
Reply With Quote #10

PHP Code:
public client_putinserver(id) {
    
set_task1.0"ShowMotd"id)
    
    return;

I taskin public ShowMotd to cllient, and not working
__________________
kiki33hun 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 12:06.


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