my clan has been using this plugin two of the members made for a few years now and all of a sudden when we moved ips and changed then the connect part of the server part dont work
but if u type connect in console and then the ip it works fine but it want connect via the plugin anymore please help
PHP Code:
#define VER "1.0.6"
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init()
{
//Header
register_plugin("711 Plugin",VER, "ToKey Arch Angel")
//Cvars
register_cvar("amx_listservers", "1") // 1 is server list on
register_cvar("amx_claninfo", "1") //1 is 711 info on
//711 Info
register_menu("Clan Info", 1023, "zinfoMainMenuCommand")
register_clcmd("711info", "infoMainUpgradesMenu") //shows 711 info
register_clcmd("say 711info", "infoMainUpgradesMenu") //shows 711 info
register_clcmd("say /711info", "infoMainUpgradesMenu") //shows 711 info
//Servers
register_menu("Menu", 1023, "EUA6Menu")
register_clcmd("servers", "EU6Menu")//shows the server list
register_clcmd("say servers", "EU6Menu")//shows the server list
register_clcmd("say /servers", "EU6Menu") //shows the server list
register_clcmd("say /motd", "showmotd") // Shows the MOTD
//Radio
register_menu("711 Radio", 1023, "MainMenuCommand")
register_clcmd("say radio", "toggle_it")
register_clcmd("say /radio", "toggle_it")
register_clcmd("say 711radio", "toggle_it")
register_clcmd("say /711radio", "toggle_it")
register_clcmd("say /stop", "stop_radio")
register_clcmd("say /stopradio", "stop_radio")
register_concmd("amx_radiomenu","radio_admin_check",ADMIN_KICK,"Brings up a menu to every one asking them if they want to listen")
}
//-- Shows the MOTD
public showmotd(id)
{
show_motd(id,"motd.txt","Message of the Day.")
return PLUGIN_CONTINUE
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////**Servers*//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-- Hud Menu for Servesr
public EU6Menu(id)
{
if(get_cvar_num("amx_listservers") == 1)
{
new keys
new szMenuBody[512]
new len = format(szMenuBody, 511, "\yMenu:^n")
len += format(szMenuBody[len], 511-len, "^n\w1. 7~11 Big Bite CS DeathMATCH")
len += format(szMenuBody[len], 511-len, "^n\w2. 7~11 Coca-Cola Credit MOD [All Maps]")
len += format(szMenuBody[len], 511-len, "^n\w3. 7~11 Counter-Slurpee Regular CS")
len += format(szMenuBody[len], 511-len, "^n\w4. 7~11 Dr. Pepper BF2raNKDeathMATCH")
len += format(szMenuBody[len], 511-len, "^n\w5. 7~11 P'EatZZa Sandwich 24/7 ScoutzKnivez")
len += format(szMenuBody[len], 511-len, "^n\w6. 7~11 Root Beer Credit MOD [AsSaULT Maps]")
len += format(szMenuBody[len], 511-len, "^n\w7. 7~11 Stir Crazy Gun Game MOD")
len += format(szMenuBody[len], 511-len, "^n\w8. 7~11 Wild Cherry Credit MOD w/HEROES!!")
len += format(szMenuBody[len], 511-len, "^n^n\w9. Info on 7~11 Servers")
len += format(szMenuBody[len], 511-len, "^n^n\w0. Cancel")
len += format(szMenuBody[len], 511-len, "^n^n\ 711clan.net")
len += format(szMenuBody[len], 511-len, "^n\ SevenElevenClan.org")
len += format(szMenuBody[len], 511-len, "^n\ 711clan.org")
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9 )
show_menu(id, keys, szMenuBody, -1)
}
else
client_print(id,print_chat,"[Server List] Server List Offline")
return PLUGIN_HANDLED
}
//-- Hook Menu for Servers
public EUA6Menu(id, key)
{
switch(key)
{
case 0:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 CS DeathMATCH]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.221:27015] 7~11 Big Bite")
client_cmd(id, "connect 75.102.39.221:27015")
}
case 1:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 Credit MOD [All Maps]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.223:27015] 7~11 Coca-Cola")
client_cmd(id, "connect 75.102.39.223:27015")
}
case 2:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 Regular CS]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.222:27015] 7~11 Counter-Slurpee")
client_cmd(id, "connect 75.102.39.222:27015")
}
case 3:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 BF2raNKDeathMATCH]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.224:27015] 7~11 Dr. Pepper")
client_cmd(id, "connect 75.102.39.224:27015")
}
case 4:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 ScoutzKnivez]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.225:27015] 7~11 P'EatZZa Sandwich")
client_cmd(id, "connect 75.102.39.225:27015")
}
case 5:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 Credit MOD [AsSaULT Maps]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.226:27015] 7~11 Root Beer")
client_cmd(id, "connect 75.102.39.226:27015")
}
case 6:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 Gun Game MOD]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.227:27015] 7~11 Stir Crazy")
client_cmd(id, "connect 75.102.39.227:27015")
}
case 7:
{
new givername[256]
get_user_name(id,givername,255)
client_print(0,print_chat,"%s went to [7~11 Credit MOD w/HEROES!!]",givername)
client_print(0,print_chat,"You can go too! Just type /servers in chat.")
client_print(id, print_chat, "[75.102.39.228:27015] 7~11 Wild Cherry")
client_cmd(id, "connect 75.102.39.228:27015")
}
case 8:
{
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=http://www.sevenelevenclan.org/motd/serverinfo.html^"></head><body bgcolor=^"black^"><a href=^"http://www.sevenelevenclan.org/motd/serverinfo.html^">http://www.sevenelevenclan.org/motd/serverinfo.html[/url]</body></html>")
show_motd(id, html, "Server INFO")
}
}
return PLUGIN_HANDLED
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////**711Information*//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-- Hud Menu
public infoMainUpgradesMenu(id)
{
if(get_cvar_num("amx_claninfo") == 1)
{
new keys
new szMenuBody[512]
new len = format(szMenuBody, 511, "\yClan Info:^n")
len += format(szMenuBody[len], 511-len, "^n\w1. About 7~11")
len += format(szMenuBody[len], 511-len, "^n\w2. Clan Rules")
len += format(szMenuBody[len], 511-len, "^n\w3. Recruitment ")
len += format(szMenuBody[len], 511-len, "^n^n\w4. Server IPs")
len += format(szMenuBody[len], 511-len, "^n\w5. Server Info")
len += format(szMenuBody[len], 511-len, "^n\w6. Server Rules")
len += format(szMenuBody[len], 511-len, "^n^n\w7. Special Thanks")
len += format(szMenuBody[len], 511-len, "^n^n\w0. Cancel")
len += format(szMenuBody[len], 511-len, "^n^n\ 711clan.net")
len += format(szMenuBody[len], 511-len, "^n\ SevenElevenClan.org")
len += format(szMenuBody[len], 511-len, "^n\ 711clan.org")
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id, keys, szMenuBody, -1)
}
else
client_print(id,print_chat,"7~11 Info is OFF")
return PLUGIN_HANDLED
}
//-- Menu Hook for Clan Info
public zinfoMainMenuCommand(id, key)
{
switch(key)
{
case 0:
{
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=http://www.sevenelevenclan.org/motd/about.html^"></head><body bgcolor=^"black^"><a href=^"http://www.sevenelevenclan.org/motd/about.html^">http://www.sevenelevenclan.org/motd/about.html[/url]</body></html>")
show_motd(id, html, "Info About 7~11")
}
case 1:
{
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=http://www.sevenelevenclan.org/motd/rules.html^"></head><body bgcolor=^"black^"><a href=^"http://www.sevenelevenclan.org/motd/rules.html^">http://www.sevenelevenclan.org/motd/rules.html[/url]</body></html>")
show_motd(id, html, "Rules")
}
case 2:
{
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=http://www.sevenelevenclan.org/motd/recruitment.html^"></head><body bgcolor=^"black^"><a href=^"http://www.sevenelevenclan.org/motd/recruitment.html^">http://www.sevenelevenclan.org/motd/recruitment.html[/url]</body></html>")
show_motd(id, html, "Recruitment Info / Tips")
}
case 3:
{
EU6Menu(id)
}
case 4:
{
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=http://www.sevenelevenclan.org/motd/serverinfo.html^"></head><body bgcolor=^"black^"><a href=^"http://www.sevenelevenclan.org/motd/serverinfo.html^">http://www.sevenelevenclan.org/motd/serverinfo.html[/url]</body></html>")
show_motd(id, html, "Server INFO")
}
case 5:
{
showmotd(id)
}
case 6:
{
specialthxt(id)
}
}
return PLUGIN_HANDLED
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////**711radio*/////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-- Starts the radio for
//-- [url]http://rolldogg.serverroom.us:4298[/url]
//-- [url]http://38.96.148.24:9588/[/url] New!
public toggle_it(id) {
new motd[2024]
format(motd, 2023, "<html><head><meta http-equiv=^"content-type^" content=^"text/html; charset=UTF-8^"></head><body bgcolor=^"#000000^" align=^"center^"><div align=^"center^"><table width=^"200^" border=^"1^" bordercolor=^"#000000^">")
format(motd, 2023, "%s<tr><td><div align=^"center^"><span style=^"color: #FFFFFF;; font-size: 9pt^"><img src=^"http://www.mikes3ds.com/711radio.jpg^" width=^"256^" height=^"65^">",motd)>
format(motd, 2023, "%s<br><object classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 codebase=http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415 type=application/x-oleobject name=msplayer width=256 height=65 align=^"middle^" id=msplayer><param name=^"enableContextMenu^" value=^"0^"><param name=^"stretchToFit^" value=^"1^">",motd)
format(motd, 2023, "%s<param name=^"Volume^" value=^"50^"><param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://38.96.148.24:9588^"><param name=^"uiMode^" value=^"full^"><param name=^"width^" value=^"256^"><param name=^"height^" value=^"65^"><param name=^"TransparentAtStart^" value=^"1^"></object><br><strong>CloseWindow & Music Will Keep Playing</strong></span>",motd)
format(motd, 2023, "%s<br><img src=^"http://www.mikes3ds.com/lowerbanner.jpg^" width=^"357^" height=^"65^"></em></span></div></td></tr></table><span style=^"color: #FFFFFF;; font-size: 6pt^"></span></div></body></html>",motd)
show_motd(id, motd, "711 Radio")
}
//-- Stops the radio
public stop_radio(id){
new motd[256]
format(motd, 255, "<html><head><meta http-equiv=^"content-type^" content=^"text/html; charset=UTF-8^"></head><body bgcolor=^"#000000^" align=^"center^"><span style=^"color: #FFB000; font-size: 9pt^">711 Radio Off<br> Thanks for joining in!</span></body></html>")
show_motd(id, motd, "711 Radio")
}
//-- Checks admin and sends the object menu to every one
public radio_admin_check(id,level,cid)
{
if (!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new players[32], pl_num=0
get_players(players,pl_num,"a")
for (new i=0;i<pl_num;i++)
{
if(is_user_connected(i))
{
MainUpgradesMenu(i)
}
}
return PLUGIN_HANDLED
}
//-- Radio Menu
public MainUpgradesMenu(id)
{
new keys
new szMenuBody[712]
new len = format(szMenuBody, 511, "\r711 Radio:^n")
len += format(szMenuBody[len], 511-len, "\d Would you like to listen to 711 Radio while you play")
len += format(szMenuBody[len], 511-len, "^n^n\y1. \wYes")
len += format(szMenuBody[len], 511-len, "^n\d 711 DJ is live and online")
len += format(szMenuBody[len], 511-len, "^n\y2. \wNo thank you")
keys = (1<<0|1<<1)
show_menu(id, keys, szMenuBody, -1)
return PLUGIN_HANDLED
}
public MainMenuCommand(id, key)
{
switch(key)
{
case 0:
{
toggle_it(id)
}
case 1:
{
client_print(id,print_console,"[711radio] Type /radio if you change your mind!")
}
}
return PLUGIN_HANDLED
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////**MOTDS**/////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public UpgrHelp2(id)
{
new PUmotd[2048], title[64], dpos = 0
format(title, 63, "711 Servers:")
dpos += format(PUmotd[dpos], 2047-dpos, "<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><pre><body>")
dpos += format(PUmotd[dpos], 2047-dpos, "^n^n%s^n",title)
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Big Bite:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "24/7 DeathMATCH [ 7~11 Big Bite ] :: 75.102.39.221:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "24slot Counter-Strike DeathMATCH!^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Coca-Cola:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "7~11 Coca-Cola [ Respawn ] :: 75.102.39.223:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "23slot TacticsMOD, Respawn, Bank^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Counter-Slurpee:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "7~11 Counter-Slurpee :: 75.102.39.222:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "20slot Regular CStrike with a Custom/Normal Map rotation^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* P'EatZZa Sandwich:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "24/7 ScoutzKnivez [ 7~11 P'EatZZa Sandwich ] :: 75.102.39.225:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "16slot ScoutzKnivez Map Rotation^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Root Beer:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "24/7 AsSaULT [ 7~11 Root Beer ] :: 75.102.39.226:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "26slot UPC MOD, Respawn, Bank^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Wild Cherry:^n")
dpos += format(PUmotd[dpos], 2047-dpos, "7~11 Wild Cherry [ Respawn ]:: 75.102.39.228:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "20slot TacticsMODvOLD, Respawn, HEROES!!, Bank^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Counter-Strike: Source Servers^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Counter-Slurpee:Source :: 69.12.94.41:27015^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "* Other 7~11 Servers^n")
dpos += format(PUmotd[dpos], 2047-dpos, "7~11 Brain Burger :: 69.12.94.42:27015 <-- Brain Bread, HL MOD^n")
dpos += format(PUmotd[dpos], 2047-dpos, "7~11 Public Ventrilo :: copper.typefrag.com:29216^n^n")
show_motd(id, PUmotd, title)
}
public specialthxt(id)
{
new PUmotd[2048], title[64], dpos = 0
format(title, 63, "711 Info:")
dpos += format(PUmotd[dpos], 2047-dpos, "<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><pre><body>")
dpos += format(PUmotd[dpos], 2047-dpos, "^n^nSpecial Thanks^n^n")
dpos += format(PUmotd[dpos], 2047-dpos, "To ALL of our players, like you, for playing on our servers^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "[*]Slurpee^n")
dpos += format(PUmotd[dpos], 2047-dpos, "For starting 7~11 ^n")
dpos += format(PUmotd[dpos], 2047-dpos, "He created this clan with MARATHON. Thank you slurpee for making this clan^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Slurpee, you are always welcome to come frag with us any time!! THX^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "[*]All Admins^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Thx for putting lots of your time into this wonderful Community^n")
dpos += format(PUmotd[dpos], 2047-dpos, "We need every little bit of help we can get^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Keep up the GREAT work!^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "[*]And a thx to our members^n")
dpos += format(PUmotd[dpos], 2047-dpos, "We hope u all stay with us forever^n")
dpos += format(PUmotd[dpos], 2047-dpos, "You are looked upon the most within 7~11^n")
dpos += format(PUmotd[dpos], 2047-dpos, "You are the heart and soul of 7~11^n")
dpos += format(PUmotd[dpos], 2047-dpos, "^n-=--=--=--=--=--=--=--=--=--=-^n")
dpos += format(PUmotd[dpos], 2047-dpos, "[*]Other THANKS^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Thx everyone for chillin with 7~11^n^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Join us at www.SevenElevenClan.org^n^n")
dpos += format(PUmotd[dpos], 2047-dpos, "To MAKE FRIENDS AND HAVE FUN!^n")
dpos += format(PUmotd[dpos], 2047-dpos, "Cheers from Arch_Angel^n^n")
show_motd(id, PUmotd, title)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/