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 7bgysm1k3zk dodana przez Misiaczek ;c, 26.02.2012 15:31
ajc 2
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.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Lista Zrodlo" #define VERSION "1.0" #define AUTHOR "MisieQ" #define FLAGA ADMIN_BAN new gMSGSayText, gMaxPlayers /* -=[ Lista graczy ktorzy posiadaja status V.i.P - Kolor ]=- */ static const COLOR[] = "^x04"; /* -=[ Lista Kolorow ]=- * ^x01 - Info wyswietlane jest na zolto * ^x03 - Info wyswietlane jest na zielono * ^x04 - Info wyswietlane jest na kolor teamu (czerwono - TT / niebiesko - CT) */ public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /lista","ViPLista"); register_clcmd("say_team /lista","ViPLista"); gMSGSayText = get_user_msgid("SayText"); gMaxPlayers = get_maxplayers(); } public ViPLista(id) { new nazwy_vip[33][32]; new message[256]; new count, x, len; for(new i = 1 ; i <= gMaxPlayers ; i++) { if(is_user_connected(i)) { if(get_user_flags(i) & FLAGA) { get_user_name(i, nazwy_vip[count++], 31); } } } len = format(message, 255, "%s ViP'y ONLINE: ",COLOR); if(count > 0) { for(x = 0 ; x < count ; x++) { len += format(message[len], 255-len, "%s%s%s ", COLOR, nazwy_vip[x], x < (count-1) ? "^x01, ":""); if(len > 96 ) { print_message(id, message); len = format(message, 255, "%s ",COLOR); } } print_message(id, message); } else { len += format(message[len], 255-len, "Brak ViP'ow Online"); print_message(id, message); } return PLUGIN_CONTINUE } print_message(id, msg[]) { message_begin(MSG_ONE, gMSGSayText, {0,0,0}, id); write_byte(id); write_string(msg); message_end(); }
Dodanych wklejek: 4031
Powered By (Pav32) Pastebin © 2011