Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new iWeapon = GetPlayerWeaponSlot(victim, 1);
- if (iWeapon == -1)
- return Plugin_Continue; //Player doesn't have a weapon in slot 2
- new iItemID = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex");
- // 20 = Sticky
- // 130 = Scottish
- // 207 = Renamed Sticky or Strange Sticky
- // 265 = Sticky Jumper
- // 661 = Festive sticky launcher
- if (iItemID == 20 || iItemID == 207 || iItemID == 130 || iItemID == 661)
- {
- new iSticky = -1;
- //new iStickyCount = 0;
- while ((iSticky = FindEntityByClassname(iSticky, "tf_projectile_pipe_remote")) != -1)
- {
- if (victim == GetEntPropEnt(iSticky, Prop_Send, "m_hThrower"))
- {
- SDKCall(g_CTFGrenadeDetonate, iSticky);
- //iStickyCount++;
- }
- }
- //PrintToChatAll("%i stickies found", iStickyCount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement