#include <amxmodx> #include <amxmisc> public admin_motd( id,level,cid ) { if ( !cmd_access(id,level,cid,1) ) return PLUGIN_CONTINUE show_motd( id, "motd.txt", "Okna motd" ) return PLUGIN_CONTINUE } public admin_info( id,level,cid ) { if ( !cmd_access(id,level,cid,1) ) return PLUGIN_CONTINUE show_motd( id,"info.txt","Informacje." ) return PLUGIN_CONTINUE } public plugin_init() { register_plugin("Say Commands","1.0","Pain") register_clcmd("say /motd","admin_motd",0,"- MOTD.") register_clcmd("say /info","admin_info",0,"-Informacje.") return PLUGIN_CONTINUE }
1. Czy to się wyświetla tylko adminowi? Jeśli tak chciałabym aby było to ogólnodostępne.
2. info.txt i motd.txt ma się znajdować w cstrike/addons/amxmodx/data ?
Będzie +'ik ;d