AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need a small code snippet (https://forums.alliedmods.net/showthread.php?t=133564)

LG-NabzOr 07-26-2010 17:46

Need a small code snippet
 
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

RedRobster 07-26-2010 17:50

Re: Need a small code snippet
 
PHP Code:

#include <amxmodx>

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

public 
HelpIsComing(id)
    
show_motd(id"help.txt"


LG-NabzOr 07-26-2010 18:00

Re: Need a small code snippet
 
Awesome, thanks :-D

GXLZPGX 07-26-2010 18:26

Re: Need a small code snippet
 
Quote:

Originally Posted by RedRobster (Post 1252431)
PHP Code:

#include <amxmodx>

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

public 
HelpIsComing(id)
    
show_motd(id"help.txt"


Lol'd at HelpIsComing.

LG-NabzOr 07-26-2010 18:38

Re: Need a small code snippet
 
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!

fysiks 07-26-2010 18:42

Re: Need a small code snippet
 
Sounds like you need to move to Suggestions/Requests forum.

LG-NabzOr 07-26-2010 18:45

Re: Need a small code snippet
 
Will do


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

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