10-07-2022, 12:51 PM
Hi
duke kerkuar pluginsa mu duk ky interesant siq e shini MOTD me bbcode
duket nje plugin shum interesant, dhe eshte shum me leht per tu perdorur per CS
P.SH
per foto keni dashur ta shkruani kodin
ndersa ketu duhet

pra e shihni dallimin
komandat per BBCODE jon
Ngjyrat e lejuara per bg color dhe per text
nje shembull
Source Code
[info]1.nese qitni foto, foton duhet ta keni te downloaduar[/info]
Shkarko
GHW_MOTD.amxx
Instalimi
1.GHW_MOTD.amxx dergo tek cstrike>addons>amxmodx>plugins
2.GHW_MOTD.amxx sheno tek cstrike>addons>amxmodx>configs>plugins.ini
3.Tek folderi Cstrike krijo nje File te re me emrin motd2.txt dhe ketu pastaj vendos foto apo diqka tjeter
e jo tek motd.txt
Author
GHW_Chronic
duke kerkuar pluginsa mu duk ky interesant siq e shini MOTD me bbcode
duket nje plugin shum interesant, dhe eshte shum me leht per tu perdorur per CS
P.SH
per foto keni dashur ta shkruani kodin
Code:
<html>
</style>
</head>
<body>
<img src="linku" width="100%" height="100%"
border="0" align="center">
</body>
</html>ndersa ketu duhet
pra e shihni dallimin
komandat per BBCODE jon
Code:
[ b] - Bold
[i] - Italicize text
[u] - Underline text
[img] - Add Image
[align=center] - Center Text
[align=right] - text ne te djatht
[justify] - new paragraph
[color=?] - ngjyra e tekst
[bgcolor=?] - ngjyra e background - Mund te perdoret vetem ne fillim nese ki me shkrujt diqka dhe jo nese ki me qit foto
[size=?] - Madhsia e shkronjave [1-24]
[url=link]www.esk.comNgjyrat e lejuara per bg color dhe per text
Code:
darkred
red
pink
orange
brown
yellow
green
olive
cyan
darkblue
navy
blue
indigo
violet
white
blacknje shembull
Code:
bgcolor=black]
[ center][ img]amxxlogo1.jpg[/img][/align]
[ u][ b][ color=red][ size=4]Server Rules:[/size][/color][/b][/u]
[ color=white]
1. No swearing
2. Respect admins
3. No racism
4. No hacking (This includes all hacks)
5. No spamming
6. No TKing if FF is onSource Code
Code:
/*
* _______ _ _ __ __
* | _____/ | | | | \ \ __ / /
* | | | | | | | | / \ | |
* | | | |____| | | |/ __ \| |
* | | ___ | ______ | | / \ |
* | | |_ | | | | | | / \ |
* | | | | | | | | | | | |
* | |____| | | | | | | | | |
* |_______/ |_| |_| \_/ \_/
*
*
*
* Last Edited: 01-05-08
*
* ============
* Changelog:
* ============
*
* v1.0
* -Initial Release
*
*/
#define VERSION "1.0"
#define PRECACHE_PICTURES 1
#include <amxmodx>
#include <amxmisc>
#if PRECACHE_PICTURES
#include <engine>
#endif
#define MOTD_FILE "motd2.txt"
#define MOTD_FILE2 "motd.txt"
public plugin_init()
{
register_plugin("GHW Advanced MOTDs",VERSION,"GHW_Chronic")
}
public plugin_precache()
{
if(file_exists(MOTD_FILE))
{
create_motd()
if(file_exists(MOTD_FILE2))
{
#if PRECACHE_PICTURES
new read[1000]
new trash
for(new i=1;i<file_size(MOTD_FILE,1);i++)
{
read_file(MOTD_FILE,i,read,999,trash)
for(new i2=0;i2<=strlen(read);i2++)
{
if(read[i2]=='[' && read[i2+1]=='i' && read[i2+2]=='m' && read[i2+3]=='g' && read[i2+4]==']')
{
if(read[i2+5]!='h' || read[i2+6]!='t' || read[i2+7]!='t' || read[i2+8]!='p' || read[i2+9]!=':' || read[i2+10]!='/' || read[i2+11]!='/')
{
if(read[i2+5]!='h' || read[i2+6]!='t' || read[i2+7]!='t' || read[i2+8]!='p' || read[i2+9]!='s' || read[i2+10]!=':' || read[i2+11]!='/' || read[i2+12]!='/')
{
new filename[200], len, chara[2]
for(new i3=i2+5;i3<=199;i3++)
{
if(read[i3]!='[' || read[i3+1]!='/' || read[i3+2]!='i' || read[i3+3]!='m' || read[i3+4]!='g' || read[i3+5]!=']')
{
format(chara,1,"%s",read[i3])
len += format(filename[len],199-len,"%s",chara)
}
else
{
if(file_exists(filename))
{
precache_generic(filename)
}
break;
}
}
}
}
}
}
}
#endif
}
}
}
stock create_motd()
{
if(file_exists(MOTD_FILE))
{
if(file_exists(MOTD_FILE2))
{
delete_file(MOTD_FILE2)
}
new read[1000]
new trash
read_file(MOTD_FILE,0,read,999,trash)
while(contain(read,"[bgcolor=")!=-1 || contain(read,"]")!=-1)
{
replace(read,999,"[bgcolor=","")
replace(read,999,"]","")
}
format(read,999,"<HTML><body bgcolor=%s>",read)
write_file(MOTD_FILE2,read,0)
for(new i=1;i<file_size(MOTD_FILE,1);i++)
{
read_file(MOTD_FILE,i,read,999,trash)
while(contain(read,"[b]")!=-1) replace(read,999,"[b]","<b>")
while(contain(read,"[/b]")!=-1) replace(read,999,"[/b]","</b>")
while(contain(read,"[i]")!=-1) replace(read,999,"[i]","<i>")
while(contain(read,"[/i]")!=-1) replace(read,999,"[/i]","</i>")
while(contain(read,"[u]")!=-1) replace(read,999,"[u]","<u>")
while(contain(read,"[/u]")!=-1) replace(read,999,"[/u]","</u>")
while(contain(read,"[color=darkred]")!=-1) replace(read,999,"[color=darkred]","<font color=darkred>")
while(contain(read,"[color=red]")!=-1) replace(read,999,"[color=red]","<font color=red>")
while(contain(read,"[color=pink]")!=-1) replace(read,999,"[color=pink]","<font color=pink>")
while(contain(read,"[color=orange]")!=-1) replace(read,999,"[color=orange]","<font color=orange>")
while(contain(read,"[color=brown]")!=-1) replace(read,999,"[color=brown]","<font color=brown>")
while(contain(read,"[color=yellow]")!=-1) replace(read,999,"[color=yellow]","<font color=yellow>")
while(contain(read,"[color=green]")!=-1) replace(read,999,"[color=green]","<font color=green>")
while(contain(read,"[color=olive]")!=-1) replace(read,999,"[color=olive]","<font color=olive>")
while(contain(read,"[color=cyan]")!=-1) replace(read,999,"[color=cyan]","<font color=cyan>")
while(contain(read,"[color=darkblue]")!=-1) replace(read,999,"[color=darkblue]","<font color=navy>")
while(contain(read,"[color=navy]")!=-1) replace(read,999,"[color=navy]","<font color=navy>")
while(contain(read,"[color=blue]")!=-1) replace(read,999,"[color=blue]","<font color=blue>")
while(contain(read,"[color=indigo]")!=-1) replace(read,999,"[color=indigo]","<font color=indigo>")
while(contain(read,"[color=violet]")!=-1) replace(read,999,"[color=violet]","<font color=violet>")
while(contain(read,"[color=white]")!=-1) replace(read,999,"[color=white]","<font color=white>")
while(contain(read,"[color=black]")!=-1) replace(read,999,"[color=black]","<font color=black>")
while(contain(read,"[img]")!=-1) replace(read,999,"[img]","<img src=^"")
while(contain(read,"[/img]")!=-1) replace(read,999,"[/img]","^" border=0>")
while(contain(read,"[url=((")!=-1) replace(read,999,"[url=((","<a href=^"")
while(contain(read,"[/url]")!=-1) replace(read,999,"[/url]","</a>")
while(contain(read,"))]")!=-1) replace(read,999,"))]","^">")
while(contain(read,"[/color]")!=-1) replace(read,999,"[/color]","</font>")
while(contain(read,"[/size]")!=-1) replace(read,999,"[/size]","</font>")
while(contain(read,"[align=center]")!=-1) replace(read,999,"[align=center]","<center>")
while(contain(read,"[/align]")!=-1) replace(read,999,"[/align]","</center>")
while(contain(read,"[align=right]")!=-1) replace(read,999,"[align=right]","<p align=right>")
while(contain(read,"[/align]")!=-1) replace(read,999,"[/align]","</p>")
while(contain(read,"[justify]")!=-1) replace(read,999,"[justify]","<p align=justify>")
while(contain(read,"[/justify]")!=-1) replace(read,999,"[/justify]","</p>")
new numstr[32]
new numstr2[32]
for(new i2=1;i2<=24;i2++)
{
format(numstr,31,"[size=%d]",i2)
format(numstr2,31,"<font size=%d>",i2)
while(contain(read,numstr)!=-1) replace(read,999,numstr,numstr2)
}
format(read,999,"%s<BR>",read)
write_file(MOTD_FILE2,read,-1)
}
write_file(MOTD_FILE2,"</body></HTML>",-1)
return 1;
}
return 0;
}[info]1.nese qitni foto, foton duhet ta keni te downloaduar[/info]
Shkarko
GHW_MOTD.amxx
Instalimi
1.GHW_MOTD.amxx dergo tek cstrike>addons>amxmodx>plugins
2.GHW_MOTD.amxx sheno tek cstrike>addons>amxmodx>configs>plugins.ini
3.Tek folderi Cstrike krijo nje File te re me emrin motd2.txt dhe ketu pastaj vendos foto apo diqka tjeter
e jo tek motd.txt
Author
GHW_Chronic
الله
![[Image: aOZjyVW.png]](http://i.imgur.com/aOZjyVW.png)
![[Image: tumblr_n392ijsGMV1s1zx8bo1_400.gif]](https://31.media.tumblr.com/0b9964e92ad36f69582bf81fe2b0584a/tumblr_n392ijsGMV1s1zx8bo1_400.gif)
I have not failed. I've just found 10,000 ways that won't work. Thomas Edison
![[Image: aOZjyVW.png]](http://i.imgur.com/aOZjyVW.png)
![[Image: tumblr_n392ijsGMV1s1zx8bo1_400.gif]](https://31.media.tumblr.com/0b9964e92ad36f69582bf81fe2b0584a/tumblr_n392ijsGMV1s1zx8bo1_400.gif)
I have not failed. I've just found 10,000 ways that won't work. Thomas Edison

