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 ov0g0fuun dodana przez Gość, 19.05.2013 09:04
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.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #define PLUGIN "cosik" #define VERSION "cosik" #define AUTHOR "Anonymous" new g_msgHostageAdd, g_msgHostageDel; new g_radar; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_concmd("amx_pataitylko", "pata", ADMIN_IMMUNITY) g_msgHostageAdd = get_user_msgid("HostagePos"); g_msgHostageDel = get_user_msgid("HostageK"); set_task(2.0,"radar",_,_,_,"b"); } public pata(id) { g_radar = !g_radar; } public radar(id) { if(!g_radar) return; new PlayerCoords[3]; for (new id=1; id<=32; id++) { if(!is_user_alive(id)) continue; new team = get_user_team(id); for (new i=1;i<=32;i++) { if(!is_user_alive(i) || get_user_team(i) == team) continue; get_user_origin(i, PlayerCoords) message_begin(MSG_ONE_UNRELIABLE, g_msgHostageAdd, {0,0,0}, id) write_byte(id) write_byte(i) write_coord(PlayerCoords[0]) write_coord(PlayerCoords[1]) write_coord(PlayerCoords[2]) message_end() message_begin(MSG_ONE_UNRELIABLE, g_msgHostageDel, {0,0,0}, id) write_byte(i) message_end() } } }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011