Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PlVers:__version = 5;
- new Float:NULL_VECTOR[3];
- new String:NULL_STRING[1];
- new Extension:__ext_core = 68;
- new MaxClients;
- public Plugin:myinfo =
- {
- name = "Web Site Manager",
- description = "Web site manager, google, youtube, facebook, webpage, forum, map",
- author = "Turkishclan.com",
- version = "0.5",
- url = "http://www.turkishclan.com/"
- };
- new String:StartWPage[64] = "http://www.turkishclan.com/";
- new String:StartFPage[64] = "http://forum.turkishclan.com/";
- new String:StartHPage[64] = "http://harita.turkishclan.com/";
- new String:StartFBPage[64] = "http://www.facebook.com/turkishclan";
- new String:StartTPage[64] = "http://www.twitter.com/turkish_clan";
- new String:StartGPage[64] = "http://www.google.com";
- new String:StartYPage[64] = "http://www.youtube.com";
- new String:StartRPage[64] = "http://www.radyo.bbs.tr/";
- new String:StartRSPage[64] = "http://www.google.com/";
- public __ext_core_SetNTVOptional()
- {
- MarkNativeAsOptional("GetFeatureStatus");
- MarkNativeAsOptional("RequireFeature");
- MarkNativeAsOptional("AddCommandListener");
- MarkNativeAsOptional("RemoveCommandListener");
- VerifyCoreVersion();
- return 0;
- }
- ShowMOTDPanel(client, String:title[], String:msg[], type)
- {
- decl String:num[4];
- new Handle:Kv = CreateKeyValues("data", "", "");
- IntToString(type, num, 3);
- KvSetString(Kv, "title", title);
- KvSetString(Kv, "type", num);
- KvSetString(Kv, "msg", msg);
- ShowVGUIPanel(client, "info", Kv, true);
- CloseHandle(Kv);
- return 0;
- }
- public OnPluginStart()
- {
- CreateConVar("sm_radio_version", "0.5", "SourceMod Radio version", 270656, false, 0, false, 0);
- RegConsoleCmd("say", Command_Say, "", 0);
- RegConsoleCmd("say_team", Command_Say, "", 0);
- return 0;
- }
- public Action:WPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartWPage, 2);
- return Action:0;
- }
- public Action:FPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartFPage, 2);
- return Action:0;
- }
- public Action:HPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartHPage, 2);
- return Action:0;
- }
- public Action:FBPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartFBPage, 2);
- return Action:0;
- }
- public Action:TPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartTPage, 2);
- return Action:0;
- }
- public Action:GPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartGPage, 2);
- return Action:0;
- }
- public Action:YPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartYPage, 2);
- return Action:0;
- }
- public Action:RPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartRPage, 2);
- return Action:0;
- }
- public Action:RSPage(client)
- {
- ShowMOTDPanel(client, "Turkishclan.com", StartRSPage, 2);
- return Action:0;
- }
- public Action:Command_Say(client, args)
- {
- if (client)
- {
- decl String:szText[192];
- GetCmdArgString(szText, 192);
- if (szText[strlen(szText) + -1] == '"')
- {
- szText[strlen(szText) + -1] = 0;
- strcopy(szText, 192, szText[1]);
- }
- if (strcmp(szText, "!site", false))
- {
- if (strcmp(szText, "!forum", false))
- {
- if (strcmp(szText, "!harita", false))
- {
- if (strcmp(szText, "!facebook", false))
- {
- if (strcmp(szText, "!twitter", false))
- {
- if (strcmp(szText, "!google", false))
- {
- if (strcmp(szText, "!youtube", false))
- {
- if (strcmp(szText, "!radyo", false))
- {
- if (strcmp(szText, "!radyodur", false))
- {
- return Action:0;
- }
- RSPage(client);
- return Action:3;
- }
- RPage(client);
- return Action:3;
- }
- YPage(client);
- return Action:3;
- }
- GPage(client);
- return Action:3;
- }
- TPage(client);
- return Action:3;
- }
- FBPage(client);
- return Action:3;
- }
- HPage(client);
- return Action:3;
- }
- FPage(client);
- return Action:3;
- }
- WPage(client);
- return Action:3;
- }
- return Action:0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement