AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me with motd. (https://forums.alliedmods.net/showthread.php?t=76518)

Fry! 08-26-2008 06:14

Help me with motd.
 
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...

anakin_cstrike 08-26-2008 07:14

Re: Help me with motd.
 
Post the full code.


All times are GMT -4. The time now is 03:15.

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