Raised This Month: $ Target: $400
 0% 

Help me with motd.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 08-26-2008 , 06:14   Help me with motd.
Reply With Quote #1

Hi, I tryed to create plugin with motd but I really don't know how so I take one plugin where was created in motd window.

So what I wanted to create... To see some stats about own server ... or just please show how to create simple motd...

Example :

PHP Code:
new srvmaps[32],srvnextmaps[32], srvips[35], srvnames[101], srvtimelefts[6]
/
etc... 
And now comes in motd...

PHP Code:
static motd[1501], len;
len format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>");
    
len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> You'r statistics in '%s' </font></h4></center>", (id"hostname: %s",srvnames));
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>(id, "tcp/ip  : %s", srvips)</B> <font color=^"white^"</color></left>^n"); 
And with this last line I can't compile it
Quote:
Error: Expected token: ",", but found "-identifier-" on line 45
I look at that lomg time and can't find where I miss...

And I thought when I use in this plugin ...
PHP Code:
 if (!is_user_bot(player[id]))
{
 if (
is_player_alive[id])
{
playerteams "Terrorist"

playerteams "CT"
else 
{
playerteams "SPEC"

How can I add these lines in motd?

Thank You...
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-26-2008 , 07:14   Re: Help me with motd.
Reply With Quote #2

Post the full code.
__________________

anakin_cstrike is offline
Reply



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 03:15.


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