Advertisement
Guest User

Untitled

a guest
Jan 25th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1.         new iWeapon = GetPlayerWeaponSlot(victim, 1);
  2.         if (iWeapon == -1)
  3.             return Plugin_Continue; //Player doesn't have a weapon in slot 2
  4.         new iItemID = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex");
  5.  
  6.         //  20 = Sticky
  7.         //  130 = Scottish
  8.         //  207 = Renamed Sticky or Strange Sticky
  9.         //  265 = Sticky Jumper    
  10.         //  661 = Festive sticky launcher
  11.         if (iItemID == 20 || iItemID == 207 || iItemID == 130 || iItemID == 661)
  12.         {
  13.             new iSticky = -1;
  14.             //new iStickyCount = 0;
  15.             while ((iSticky = FindEntityByClassname(iSticky, "tf_projectile_pipe_remote")) != -1)
  16.             {
  17.                 if (victim == GetEntPropEnt(iSticky, Prop_Send, "m_hThrower"))
  18.                 {
  19.                     SDKCall(g_CTFGrenadeDetonate, iSticky);
  20.                     //iStickyCount++;
  21.                 }
  22.             }
  23.             //PrintToChatAll("%i stickies found", iStickyCount);
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement