Advertisement
RyanCordell

strparam example?

Sep 2nd, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. for(int def = -10; def < 21; def++)
  2. {
  3.     if (GetCvar("samsara_cassattdefense") != def)
  4.     {
  5.         str powdef = "PowerDefenseBuff";
  6.         int powdef_obj = strparam(s:powdef,i:def);
  7.         TakeInventory(powdef_obj,1);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement