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
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. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118.
#include <amxmodx> #include <fun> #include <hamsandwich> #include <cstrike> #include <colorchat> #include <fakemeta> new const g_Langcmd[][]={"say /vips","say_team /vips","say /vipy","say_team /vipy"}; new skoki[33], Array:g_Array, bool:g_Vip[33]; public plugin_init(){ register_plugin("VIP Ultimate", "3.0.0.7", "benio101 & speedkill"); register_message(get_user_msgid("ScoreAttrib"), "g_VipStatus"); g_Array=ArrayCreate(64, 32); for(new i;i<sizeof(g_Langcmd);i++) register_clcmd(g_Langcmd[i],"g_Vips"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_forward(FM_CmdStart, "CmdStartPre"); } public g_VipStatus(){ new id=get_msg_arg_int(1); if(is_user_alive(id) && g_Vip[id]) set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4); } public g_Vips(id){ new g_Name[64],g_Message[192] new g_Size = ArraySize(g_Array) for(new i = 0; i < g_Size; i++){ ArrayGetString(g_Array, i, g_Name, charsmax(g_Name)) add(g_Message, charsmax(g_Message), g_Name) if(i == g_Size - 1) add(g_Message, charsmax(g_Message), ".") else add(g_Message, charsmax(g_Message), ", ") } ColorChat(id,GREEN,"^x03Vipy ^x04na ^x03serwerze : ^x03%s", g_Message) } public client_infochanged(id){ if(g_Vip[id]){ new szName[64]; get_user_info(id,"name",szName,charsmax(szName)); ArrayPushString(g_Array,szName); new Name[64]; get_user_name(id,Name,charsmax(Name)); new g_Size=ArraySize(g_Array); new g_Name[64]; for(new i=0; i<g_Size; i++){ ArrayGetString(g_Array, i, g_Name, charsmax(g_Name)); if(equal(g_Name,Name)) ArrayDeleteItem(g_Array,i); } } } public client_authorized(id){ if(get_user_flags(id) & 524288 == 524288){ g_Vip[id]=true; new g_Name[64]; get_user_name(id,g_Name,charsmax(g_Name)); ArrayPushString(g_Array,g_Name); } } public client_disconnect(id){ if(g_Vip[id]){ g_Vip[id]=false; new Name[64]; get_user_name(id,Name,charsmax(Name)); new g_Size=ArraySize(g_Array),g_Name[64]; for(new i=0; i<g_Size; i++){ ArrayGetString(g_Array, i, g_Name, charsmax(g_Name)); if(equal(g_Name,Name)) ArrayDeleteItem(g_Array,i); } } } public SpawnedEventPre(id){ if(is_user_alive(id) && g_Vip[id]) SpawnedEvent(id); } public SpawnedEvent(id){ give_item(id, "weapon_flashbang"); give_item(id, "weapon_flashbang"); cs_set_user_bpammo(id, CSW_FLASHBANG,4); skoki[id]=3; return PLUGIN_CONTINUE; } public CmdStartPre(id,uc_handle){ if(is_user_alive(id) && g_Vip[id]) CmdStart(id,uc_handle); } public CmdStart(id,uc_handle){ new flags = pev(id, pev_flags); if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]){ --skoki[id]; new Float:velocity[3]; pev(id, pev_velocity,velocity); velocity[2] = random_float(265.0,285.0); set_pev(id,pev_velocity,velocity); } else if(flags & FL_ONGROUND) skoki[id] = 3; return FMRES_IGNORED; } public plugin_end(){ ArrayDestroy(g_Array); }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011