AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   /PlayerHelper (https://forums.alliedmods.net/showthread.php?t=61281)

Reaper2331 09-25-2007 19:39

/PlayerHelper
 
ok i released a plugin called
Player Helper

and im adding a MOTD to Help people by using /playerhelper
i need to know if this would work instead of having Server Owners download the PlayerHelper.txt and adding it to their server

PHP Code:

show_motd(id"http://www.clanbha.com/czero/PlayerHelper.txt"


Defillbert 09-25-2007 20:00

Re: /PlayerHelper
 
Uh, you can use


get_configsdir(configdir,199)
new playerhelper[200]
format(playerhelper,199,"%s/playerhelp.txt",configdir)
if(!file_exists(playerhelper)
new formatedtext[256]
format(formatedtext,255,"Welcome to my player helper plugin! ^n This is teh epic lulz etc!")
write_file(playerhelper,formatedtext,-1)

But you can't call from a web page.

Reaper2331 09-25-2007 21:40

Re: /PlayerHelper
 
ok, i guess ill have people Download the PlayerHelper.txt with the plugin

M249-M4A1 09-25-2007 22:17

Re: /PlayerHelper
 
The following link may be easier:

http://forums.alliedmods.net/showthread.php?t=60284

ConnorMcLeod 09-26-2007 04:22

Re: /PlayerHelper
 
I don't know what you want to do with the motd, but you can format it in your plugin so no file needed.
Have a look in plugins codes, for example /top15 (statsx plugin).

Reaper2331 09-26-2007 15:50

Re: /PlayerHelper
 
Quote:

Originally Posted by M249-M4A1 (Post 535680)
The following link may be easier:

http://forums.alliedmods.net/showthread.php?t=60284

lol i know i coded that......i didnt want to make people Download the Playerelper.txt but its fine

[ --<-@ ] Black Rose 09-27-2007 10:06

Re: /PlayerHelper
 
Ever heard about iframe?


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

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