Raised This Month: $ Target: $400
 0% 

Need a small code snippet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LG-NabzOr
Junior Member
Join Date: May 2010
Old 07-26-2010 , 17:46   Need a small code snippet
Reply With Quote #1

Hey there!

I'm new to this, but i need a really small code snippet. I want to be able to say !help in chat, and that will open a MOTD-box showing help.txt. can someone please make that for me?

Much appreciated
Alex<3
LG-NabzOr is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 07-26-2010 , 17:50   Re: Need a small code snippet
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init()
    
register_clcmd("say !help""HelpIsComing")

public 
HelpIsComing(id)
    
show_motd(id"help.txt"
RedRobster is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-26-2010 , 18:26   Re: Need a small code snippet
Reply With Quote #3

Quote:
Originally Posted by RedRobster View Post
PHP Code:
#include <amxmodx>

public plugin_init()
    
register_clcmd("say !help""HelpIsComing")

public 
HelpIsComing(id)
    
show_motd(id"help.txt"
Lol'd at HelpIsComing.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
LG-NabzOr
Junior Member
Join Date: May 2010
Old 07-26-2010 , 18:00   Re: Need a small code snippet
Reply With Quote #4

Awesome, thanks :-D
LG-NabzOr is offline
LG-NabzOr
Junior Member
Join Date: May 2010
Old 07-26-2010 , 18:38   Re: Need a small code snippet
Reply With Quote #5

Okey, I have a new challenge for you guys. (I guess it's not really a challenge, but still).

When a player types !help, i want the plugin to get the users steamID, nick, IP, and the servername. Then i want it to open the following page in a MOTD, with the info in the URL.

Code:
http://www.mydomain.com/requestadmin/requestadmin.php?player1=PLAYERNICK&p1_ip=127.0.0.1&p1_steamid=STEAMID&server=SERVERNAME
Anyone think they can make this for me? Would really help alot!

THanks guys, I'm crossing my fingers here!
LG-NabzOr is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-26-2010 , 18:42   Re: Need a small code snippet
Reply With Quote #6

Sounds like you need to move to Suggestions/Requests forum.
__________________
fysiks is offline
LG-NabzOr
Junior Member
Join Date: May 2010
Old 07-26-2010 , 18:45   Re: Need a small code snippet
Reply With Quote #7

Will do
LG-NabzOr 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 00:08.


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