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 1pu6y285t218l dodana przez Najarany., 22.03.2014 18:01
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. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 151. 152. 153. 154. 155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167. 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. 194. 195. 196. 197. 198. 199. 200. 201. 202. 203. 204. 205. 206. 207. 208. 209. 210. 211. 212. 213. 214. 215. 216. 217. 218. 219. 220. 221. 222. 223. 224. 225. 226. 227. 228. 229. 230. 231. 232. 233. 234. 235. 236. 237. 238. 239. 240. 241. 242. 243. 244. 245. 246. 247. 248. 249. 250. 251. 252. 253. 254. 255. 256. 257. 258. 259. 260. 261. 262. 263. 264. 265. 266. 267. 268.
xxx/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <colorchat>
#define PLUGIN "Only DD2"
#define VERSION "1.0"
#define AUTHOR "vip"
#define flaga ADMIN_LEVEL_H
#define SCOREATTRIB_NONE 0
#define SCOREATTRIB_DEAD (1<<0)
#define SCOREATTRIB_BOMB (1<<1)
#define SCOREATTRIB_VIP (1<<2)
new bool:HasC4[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Round_Start",2,"1=Round_Start");
register_event("DeathMsg", "DeathMsg", "a")
register_clcmd("say /vips","vips");
register_clcmd("say /vipy","vips");
}
public Round_Start()
{
for (new id=1; id < 33; id++)
{
if(is_user_alive(id) && get_user_flags(id) & flaga){
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "item_thighpack")
cs_set_armoury_type(id,CSW_VESTHELM)
bronie(id)
}
}
}
public DeathMsg()
{
new kid = read_data(1) //zabojca
new hs = read_data(3) // HeadShot (1 == true)
if(!is_user_alive(kid))
return PLUGIN_CONTINUE;
{
if(hs)
{
cs_set_user_money(kid,cs_get_user_money(kid)+500)
}
else
{
cs_set_user_money(kid,cs_get_user_money(kid)+300)
}
}
return PLUGIN_CONTINUE;
}
public vips(id)
{
new vipy[33][32];
new str[1024];
new count=0;
new i,n=get_maxplayers();
for(i=1; i<=n; ++i){
if(is_user_connected(i) && (get_user_flags(i) & flaga)){
get_user_name(i, vipy[count], 31);
++count;
}
}
if(count){
format(str,1023, "VIP%s online:^x01 ",str, vipy[i], (count>1?"y":""));
for(i=0; i<count; ++i){
format(str,1023,"%s%s%s",str, vipy[i], (i<count-1?"^x04,^x01 ":"^x04."));
}
ColorChat(id,GREEN, str);
} else {
ColorChat(id,RED, "Na serwerze nie ma aktualnie Vip'ow.");
}
return PLUGIN_HANDLED;
}
public MessageScoreAttrib(iMsgID, iDest, iReceiver){
// status VIP w tabeli punktow
new id = get_msg_arg_int(1);
if(is_user_connected(id) && get_user_flags(id) & flaga){
if(is_user_alive(id)){
if(cs_get_user_team(id)==CS_TEAM_T && user_has_weapon(id, CSW_C4) && cs_get_user_plant(id)){
set_msg_arg_int(2, ARG_BYTE, SCOREATTRIB_BOMB);
} else {
set_msg_arg_int(2, ARG_BYTE, SCOREATTRIB_VIP);
}
} else {
set_msg_arg_int(2, ARG_BYTE, SCOREATTRIB_DEAD);
}
}
}
public bronie(id)
{
if(is_user_alive(id))
{
new Bronie=menu_create("Wybierz bron:","cbbronie");
menu_additem(Bronie,"AK47+DEAGLE");
menu_additem(Bronie,"M4A1+DEAGLE");
menu_additem(Bronie,"FAMAS+DEAGLE");
menu_additem(Bronie,"GALIL+DEAGLE");
menu_additem(Bronie,"AWP+DEAGLE");
menu_setprop(Bronie,MPROP_EXITNAME,"Wyjscie");
menu_setprop(Bronie,MPROP_EXIT,MEXIT_ALL);
menu_display(id,Bronie,0);
}
return PLUGIN_HANDLED;
}
public cbbronie(id,menu,item)
{
switch(item)
{
case 0:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id, "weapon_ak47")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 1:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id, "weapon_m4a1")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 2:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id, "weapon_famas")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 3:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id, "weapon_gali")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 4:
{
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id, "weapon_awp")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1045 f0 fs16 n par }
*/
Dodanych wklejek: 15354
Powered By (Pav32) Pastebin © 2011


Dodatki SourceMod


