Raised This Month: $51 Target: $400
 12% 

Can someone give me this plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fan of Da!!!
Junior Member
Join Date: Jun 2008
Location: Bulgaria
Old 06-02-2008 , 08:06   Can someone give me this plugin?
Reply With Quote #1

I want when someone in the server type "say /help" to pop up a MOTD window and inside to be the information from a .txt file. Something like this plugin here is the code

Code:
include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "Admin Skypes MOTD" 
#define VERSION "1.0" 
#define AUTHOR "SOAKed`"

public plugin_init() 
{ 
    register_plugin(PLUGIN, VERSION, AUTHOR); 
    register_clcmd("say /@skype", "admin_skypes", 0, "- display admin skype MOTD window")
    set_task(30.0,"message",0,"",0,"b") 
     
} 

public admin_skypes(id) 
{ 
        show_motd(id,"addons/amxmodx/configs/admin_skypes.txt")
    return PLUGIN_HANDLED 
} 

public message(id) 
{ 
    client_print(0, print_chat, "[AMXX] Write say /@skype to view the admin's skypes in MOTD window.") 
}
__________________
Sorry for my bad English
Fan of Da!!! is offline
Send a message via ICQ to Fan of Da!!! Send a message via Skype™ to Fan of Da!!!
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 06-02-2008 , 09:19   Re: Can someone give me this plugin?
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "MotdShower" #define VERSION "1.0" #define AUTHOR "DA" // The name from the file #define SHOW_FILE "help.txt" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd ( "say /help", "ShowMotd", -1 );     register_clcmd ( "team_say /help", "ShowMotd", -1 );     set_task ( 30.0, "ShowMessage", 0, "", 0, "b" ); } public ShowMotd( id ) {     if ( !is_user_connected( id ) )     {         return PLUGIN_CONTINUE;     }         static motdfile[128];     get_configsdir( motdfile, charsmax( motdfile ) );         formatex ( motdfile, charsmax( motdfile ), "%s/%s", motdfile, SHOW_FILE );     show_motd ( id, motdfile, "Help Motd" );         return PLUGIN_CONTINUE; } public ShowMessage() {     client_print ( 0, print_chat, "[AMXX] Type /help in the chat to view the help MOTD window." ); }
__________________
DA is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-02-2008 , 11:19   Re: Can someone give me this plugin?
Reply With Quote #3

Quote:
Use descriptive topic titles. People should know at a glance of the title what the thread is about.
http://forums.alliedmods.net/showthread.php?t=49470

Failure to fix your topic will result in topic closure
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 03:54.


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