Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1tozlz1zqiw5u dodana przez patryQ1997, 27.09.2014 17:59
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <ColorChat> #define PLUGIN "Spec Switch" #define VERSION "0.1.3" #define AUTHOR "many" new CsTeams:zTeam[33] new zDeath[33] new bool:type_spec[33] = false new g_cvar public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) /* Cvar */ g_cvar = register_cvar("amx_specmode", "1") // 0 - enable use to all, 1 - enable use only ADMINs /* Client Commands */ register_clcmd("say /spec", "cmdSpec", ADMIN_ALL, "- go to spectator") register_clcmd("say_team /spec", "cmdSpec", ADMIN_ALL, "- go to spectator") register_clcmd("say /back", "cmdBack", ADMIN_ALL, "- go back to your team") register_clcmd("say_team /back", "cmdBack", ADMIN_ALL, "- go back to your team") } public cmdSpec(id) { if(!get_pcvar_num(g_cvar)) Spec(id) else if( get_pcvar_num(g_cvar) && (get_user_flags(id) & ADMIN_KICK)) Spec(id) else if( get_pcvar_num(g_cvar) && !(get_user_flags(id) & ADMIN_KICK)) PrintUserNotAdmin(id) } public cmdBack(id) { if (type_spec[id] && cs_get_user_team(id) == CS_TEAM_SPECTATOR && zTeam[id] != CS_TEAM_SPECTATOR ) Back(id) else if( get_pcvar_num(g_cvar) && !(get_user_flags(id) & ADMIN_KICK) ) PrintUserNotAdmin(id) ColorChat(id,GREEN,"de_dust2^x01 # Wrociles do swojej druzyny.") } public Spec(id) { zDeath[id] = cs_get_user_deaths(id) if (cs_get_user_team(id) == CS_TEAM_SPECTATOR) return else{ type_spec[id] = true zTeam[id] = cs_get_user_team(id) cs_set_user_team(id, CS_TEAM_SPECTATOR) user_silentkill(id) ColorChat(id,GREEN,"de_dust2^x01 # Uzyj komendy^x03 /back^x01 aby wrocic do swojej druzyny.") } return } public Back(id) { cs_set_user_team(id, zTeam[id]) cs_set_user_deaths(id, zDeath[id]) } PrintUserNotAdmin(id) { ColorChat(id,GREEN,"de_dust2^x01 # Komenda ^x03/spec^x01 i ^x03/back^x01 dostepna tylko dla admina.") } public client_putinserver(id) { if(!get_pcvar_num(g_cvar))(id) else if( get_pcvar_num(g_cvar) && (get_user_flags(id) & ADMIN_KICK))(id) } public client_disconnect(id) type_spec[id] = false public client_connect(id) type_spec[id] = false /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{ rtf1 ansi ansicpg1252 deff0{ fonttbl{ f0 fnil fcharset0 Tahoma;}}n{ colortbl ; red0 green0 blue0;}n viewkind4 uc1 pard cf1 lang1033 b f0 fs16 n par } */ /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{ rtf1 ansi ansicpg1250 deff0 deflang1045{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par } */
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011