Advertisement
Guest User

Untitled

a guest
Aug 1st, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. new PlVers:__version = 5;
  2. new Float:NULL_VECTOR[3];
  3. new String:NULL_STRING[1];
  4. new Extension:__ext_core = 68;
  5. new MaxClients;
  6. public Plugin:myinfo =
  7. {
  8. name = "Web Site Manager",
  9. description = "Web site manager, google, youtube, facebook, webpage, forum, map",
  10. author = "Turkishclan.com",
  11. version = "0.5",
  12. url = "http://www.turkishclan.com/"
  13. };
  14. new String:StartWPage[64] = "http://www.turkishclan.com/";
  15. new String:StartFPage[64] = "http://forum.turkishclan.com/";
  16. new String:StartHPage[64] = "http://harita.turkishclan.com/";
  17. new String:StartFBPage[64] = "http://www.facebook.com/turkishclan";
  18. new String:StartTPage[64] = "http://www.twitter.com/turkish_clan";
  19. new String:StartGPage[64] = "http://www.google.com";
  20. new String:StartYPage[64] = "http://www.youtube.com";
  21. new String:StartRPage[64] = "http://www.radyo.bbs.tr/";
  22. new String:StartRSPage[64] = "http://www.google.com/";
  23. public __ext_core_SetNTVOptional()
  24. {
  25. MarkNativeAsOptional("GetFeatureStatus");
  26. MarkNativeAsOptional("RequireFeature");
  27. MarkNativeAsOptional("AddCommandListener");
  28. MarkNativeAsOptional("RemoveCommandListener");
  29. VerifyCoreVersion();
  30. return 0;
  31. }
  32.  
  33. ShowMOTDPanel(client, String:title[], String:msg[], type)
  34. {
  35. decl String:num[4];
  36. new Handle:Kv = CreateKeyValues("data", "", "");
  37. IntToString(type, num, 3);
  38. KvSetString(Kv, "title", title);
  39. KvSetString(Kv, "type", num);
  40. KvSetString(Kv, "msg", msg);
  41. ShowVGUIPanel(client, "info", Kv, true);
  42. CloseHandle(Kv);
  43. return 0;
  44. }
  45.  
  46. public OnPluginStart()
  47. {
  48. CreateConVar("sm_radio_version", "0.5", "SourceMod Radio version", 270656, false, 0, false, 0);
  49. RegConsoleCmd("say", Command_Say, "", 0);
  50. RegConsoleCmd("say_team", Command_Say, "", 0);
  51. return 0;
  52. }
  53.  
  54. public Action:WPage(client)
  55. {
  56. ShowMOTDPanel(client, "Turkishclan.com", StartWPage, 2);
  57. return Action:0;
  58. }
  59.  
  60. public Action:FPage(client)
  61. {
  62. ShowMOTDPanel(client, "Turkishclan.com", StartFPage, 2);
  63. return Action:0;
  64. }
  65.  
  66. public Action:HPage(client)
  67. {
  68. ShowMOTDPanel(client, "Turkishclan.com", StartHPage, 2);
  69. return Action:0;
  70. }
  71.  
  72. public Action:FBPage(client)
  73. {
  74. ShowMOTDPanel(client, "Turkishclan.com", StartFBPage, 2);
  75. return Action:0;
  76. }
  77.  
  78. public Action:TPage(client)
  79. {
  80. ShowMOTDPanel(client, "Turkishclan.com", StartTPage, 2);
  81. return Action:0;
  82. }
  83.  
  84. public Action:GPage(client)
  85. {
  86. ShowMOTDPanel(client, "Turkishclan.com", StartGPage, 2);
  87. return Action:0;
  88. }
  89.  
  90. public Action:YPage(client)
  91. {
  92. ShowMOTDPanel(client, "Turkishclan.com", StartYPage, 2);
  93. return Action:0;
  94. }
  95.  
  96. public Action:RPage(client)
  97. {
  98. ShowMOTDPanel(client, "Turkishclan.com", StartRPage, 2);
  99. return Action:0;
  100. }
  101.  
  102. public Action:RSPage(client)
  103. {
  104. ShowMOTDPanel(client, "Turkishclan.com", StartRSPage, 2);
  105. return Action:0;
  106. }
  107.  
  108. public Action:Command_Say(client, args)
  109. {
  110. if (client)
  111. {
  112. decl String:szText[192];
  113. GetCmdArgString(szText, 192);
  114. if (szText[strlen(szText) + -1] == '"')
  115. {
  116. szText[strlen(szText) + -1] = 0;
  117. strcopy(szText, 192, szText[1]);
  118. }
  119. if (strcmp(szText, "!site", false))
  120. {
  121. if (strcmp(szText, "!forum", false))
  122. {
  123. if (strcmp(szText, "!harita", false))
  124. {
  125. if (strcmp(szText, "!facebook", false))
  126. {
  127. if (strcmp(szText, "!twitter", false))
  128. {
  129. if (strcmp(szText, "!google", false))
  130. {
  131. if (strcmp(szText, "!youtube", false))
  132. {
  133. if (strcmp(szText, "!radyo", false))
  134. {
  135. if (strcmp(szText, "!radyodur", false))
  136. {
  137. return Action:0;
  138. }
  139. RSPage(client);
  140. return Action:3;
  141. }
  142. RPage(client);
  143. return Action:3;
  144. }
  145. YPage(client);
  146. return Action:3;
  147. }
  148. GPage(client);
  149. return Action:3;
  150. }
  151. TPage(client);
  152. return Action:3;
  153. }
  154. FBPage(client);
  155. return Action:3;
  156. }
  157. HPage(client);
  158. return Action:3;
  159. }
  160. FPage(client);
  161. return Action:3;
  162. }
  163. WPage(client);
  164. return Action:3;
  165. }
  166. return Action:0;
  167. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement