Raised This Month: $ Target: $400
 0% 

/PlayerHelper


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-25-2007 , 19:39   /PlayerHelper
Reply With Quote #1

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"
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Defillbert
AMX Mod X Donor
Join Date: Aug 2006
Old 09-25-2007 , 20:00   Re: /PlayerHelper
Reply With Quote #2

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.
Defillbert is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-25-2007 , 21:40   Re: /PlayerHelper
Reply With Quote #3

ok, i guess ill have people Download the PlayerHelper.txt with the plugin
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-25-2007 , 22:17   Re: /PlayerHelper
Reply With Quote #4

The following link may be easier:

http://forums.alliedmods.net/showthread.php?t=60284
__________________
M249-M4A1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2007 , 04:22   Re: /PlayerHelper
Reply With Quote #5

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).
ConnorMcLeod is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-26-2007 , 15:50   Re: /PlayerHelper
Reply With Quote #6

Quote:
Originally Posted by M249-M4A1 View Post
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
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 09-27-2007 , 10:06   Re: /PlayerHelper
Reply With Quote #7

Ever heard about iframe?
[ --<-@ ] Black Rose 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 16:03.


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