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 zuonrs5gqes dodana przez dasiek, 25.01.2013 13:20
glut xd
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. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "[BF3]Tickety!" #define VERSION "1.0" #define AUTHOR "CheQ" new ticket_start=3; new tickety_ct; new tickety_tt; new punkty_ct; new punkty_tt; new HUD; new HUD_t; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) HUD = CreateHudSyncObj(); HUD_t= CreateHudSyncObj(); register_event("DeathMsg", "Death", "ade"); start_game(); } public start_game() { tickety_ct = ticket_start; tickety_tt = ticket_start; } public client_putinserver(id) { set_task(3.0,"HudInfo",id+8120); } public HudInfo(id) { id-=8120; set_hudmessage(212, 255, 85,-1.0, 0.0, 0, 6.0, 5.0); ShowSyncHudMsg(id,HUD, "Ct [%i] - %i / %i - [%i] Tt",punkty_ct,tickety_ct,tickety_tt,punkty_tt); if(is_user_connected(id)) set_task(0.3,"HudInfo",id+8120); } public Death() { new id = read_data(2); new attacker = read_data(1); if(!is_user_alive(attacker)) return PLUGIN_CONTINUE; switch(get_user_team(id)) { case 1: { tickety_tt--; if(tickety_tt < 1) Win(2); } case 2: { tickety_ct-- if(tickety_ct < 1) Win(1); } } return PLUGIN_CONTINUE; } public Win(team) { for(new i = 0; i < get_playersnum();i++) { if(get_user_team(i) == team) { set_hudmessage(212, 255, 85,-1.0, -1.0, 0, 6.0, 5.0); ShowSyncHudMsg(i,HUD_t, "TWOJA DRUZYNA WYGRALA!"); } else { set_hudmessage(212, 255, 85,-1.0, -1.0, 0, 6.0, 5.0); ShowSyncHudMsg(i,HUD_t, "TWOJA DRUZYNA PRZEGRALA!"); } } if(team == 1) { punkty_tt++; } if(team == 2) { punkty_ct++; } set_task(5.0,"start_game"); return PLUGIN_CONTINUE; }
Dodanych wklejek: 12215
Powered By (Pav32) Pastebin © 2011