Group/Website Inviter v1.0 -Description- This plugin is basically made out of new ideas for some growing communities. Its basically a plugin where it invites people to your steam group threw the server and they can even visit your forums from your own server. -Cvars- Code: gi_enable 1 - // This Cvar is for all the plugin to enable or disable it || 1 Enable || 0 Disable gi_webmessage 1 - // Displays Message For Website On Connect || 1 Enable || 0 Disable -Commands- Code: /join - Opens the Group Inviter Menu & Asks again if he wants to join the group or not. ( At the connect of the player, it will ask him if he wants to join or not if he press 'No' well in chat it will tell him if he changes his mind....type /join. That's why there's this command. ) /leave - If the player decides to leave the group, he just type this command and he follow the instructions and then he will be out of the group. /website - Opens the website menu. /web - Opens the website menu. /forum - Opens the website menu. -Installation- Put the .amxx in cstrike/addons/amxmodx/plugins -Then in cstrike/addons/amxmodx/configs/plugins.ini You will type: PHP Code: ; Custom - Add 3rd party plugins here. GroupInviter.amxx Then put the 2 .txt files in cstrike/addons. After you put the .txt files, make sure that you added the .html files in the website or fastdl FileZila. -Requirements- PHP Code: #include < amxmodx > #include < amxmisc > #include < cstrike > #include < nvault > You can use the defines as the chats. If not ( else ) colorchat. ( Can someone please type me a good english sentance lol c: ) PHP Code: #if AMXX_VERSION_NUM >= 183 #define ColorChat client_print_color #define GREEN print_team_default #define RED print_team_grey #define BLUE print_team_red #define GREY print_team_blue #else #include < colorchat > #endif -Notes- Coding/Sma Part: You need to change some parts of the code, don't worry it's simple. Those changes is basically to let the player go to the website. What you just need to do is replace 'yourwebsitelink' by your website link/url to each specified part of the code. Here: PHP Code: public Website_Handler( id, menu, item ) // dont care about this { // dont care about this if( is_user_connected ( id ) ) // dont care about this { // dont care about this new szName[ 32 ]; // dont care about this get_user_name( id, szName, charsmax( szName ) ) // dont care about this switch( item ) // dont care about this { case 0: { ColorChat( 0, GREEN, "^x04[GI]^x01 ^x03%s^x01 has just registered on our forums.", szName ) // dont care about this show_motd( id, "http://yourwebsitelink.com/index.php?action=register", "Register Today!" ) // Here } case 1: { show_motd( id, "http://yourwebsitelink.com/index.php?action=login", "Welcome To Our Community!" ) // Here } case 2: { show_motd( id, "http://yourwebsitelink.com/index.php", "Welcome Guest!" ) // Here } } } return PLUGIN_HANDLED; // dont care about this } .txt Files Part: Second of all, make sure that in each .txt file you have the right direction for the 2 .html files. In the groupjoin.txt file you will see this: PHP Code:
Loading ...
|
Loading ...
|