SHARE
TWEET

Untitled

a guest Jan 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int i;
  2.     for (i = 0; i < openborvariant("count_entities"); ++i)
  3.     {
  4.                 // If we on an odd box, don't do anything.
  5.                 if(i % 2)
  6.                 {
  7.                      continue;
  8.                 }
  9.  
  10.         void ent = getentity(i);
  11.         char name = getentityproperty(ent,"defaultname");
  12.         if ( getentityproperty(ent, "exists") && name == "box" )
  13.         {
  14.             int sort = getentityproperty(ent,"sortid");
  15.             sort++;
  16.             changeentityproperty(ent,"sortid", sort);
  17.         }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top