AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help with motd's (https://forums.alliedmods.net/showthread.php?t=184242)

Bilal Pro 05-02-2012 16:37

Need help with motd's
 
Hello there,

I would like to learn, how to work with motd's

For example how can i set the value of an array inside a motd?

That it will look like this:

Your XP:
%d

Bilal Pro 05-02-2012 17:52

Re: Need help with motd's
 
Lol, he didnt even start the thread how can he bump :P?

StepZeN 05-02-2012 18:11

Re: Need help with motd's
 
Quote:

Originally Posted by Bilal Pro (Post 1700737)
Lol, he didnt even start the thread how can he bump :P?

haha,i think exolent is tired....

Liverwiz 05-02-2012 18:47

Re: Need help with motd's
 
motd's are written in HTML. You'll have to put the xp through SQL then from SQL to a webhost, then back to your motd.

Bilal Pro 05-02-2012 18:56

Re: Need help with motd's
 
Is there no other way?

kramesa 05-02-2012 19:12

Re: Need help with motd's
 
This?

Code:
#include <amxmodx> #include <amxmisc> new Example; public plugin_init() {     Example = register_cvar("amx_example", "5");     register_clcmd("say /motd", "CmdShowMotd"); } public CmdShowMotd(id) {     new Motd[500];     formatex(Motd, 499, "Your XP: n^%d", get_pcvar_num(Example));         show_motd(id, Motd, "Title"); }

fysiks 05-02-2012 21:14

Re: Need help with motd's
 
Quote:

Originally Posted by Bilal Pro (Post 1700686)
For example how can i set the value of an array inside a motd?

That it will look like this:

Your XP:
%d

That entirely depends on what else is in the MOTD. If you can't already do what kramesa said then you need to stop coding or try harder.

Bilal Pro 05-03-2012 08:38

Re: Need help with motd's
 
Hey thanks, this worked.
Where can i learn more about motds?

claudiuhks 05-03-2012 08:42

Re: Need help with motd's
 
Quote:

Originally Posted by Bilal Pro (Post 1701067)
Hey thanks, this worked.
Where can i learn more about motds?

http://www.w3schools.com/html/default.asp

You had to get this at school...

Bilal Pro 05-03-2012 08:43

Re: Need help with motd's
 
Quote:

Originally Posted by claudiuhks (Post 1701070)
http://www.w3schools.com/html/default.asp

You had to get this on school...


Hehe, almost time for it. Im 14 years old :)


All times are GMT -4. The time now is 00:27.

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