Chameleon available only to user with flags

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
dancer
Peon
Posts: 4
Joined: Thu Jan 19, 2012 2:47 pm

Chameleon available only to user with flags

Post by dancer » Sat Jan 21, 2012 10:15 am

I am wondering how to make chameleon restricted only for VIP/admin? I tested the way recommended by whosyourdaddy but it seems to that isn't working :?
When I try to compile war3ft.sma in local compiler I have errors like that

Image


And that is my menus.inl ' s part :

Code: Select all

// All other cases
      else
      {
         new bool:bAllowRace = true;

         if(i == 9 && !(get_user_flags( id ) & ADMIN_LEVEL_A) )
         bAllowRace = false;

         // Check to see if the user can choose this race (are there too many of this race?)
         if ( bAllowRace )
         {
            pos += formatex( szMenu[pos], 512-pos, "\w%d. %s\y\R%s^n", i + 1-A, szRaceName[i], ( (get_pcvar_num( CVAR_wc3_save_xp )) ? szXP : " " ) );

            iKeys |= (1<<i-A);
         }

         // If not, display the race, but don't give them a key to press
         else
         {
            pos += formatex( szMenu[pos], 512-pos, "\y%d. %s\y\R%s^n", i + 1-A, szRaceName[i], ( (get_pcvar_num( CVAR_wc3_save_xp )) ? szXP : " " ) );
			}
		}

	}
I just change the Z flag to A flag and z symbol to A symbol.
Am I doing something wrong? Or maybe is there any another way to restrict chameleon only for admin/VIP ?
Please reply.

Post Reply