Śpiąca Królewna.
1.A Wiec Tak ( Jest To Najprostrze Rozwi±zanie )
W : public select_class_menu(id, key) Dodajemy Przed Klasa : if( get_user_flags(id) & FLAGA) przyk³ad: case 0: { if( get_user_flags(id) & ADMIN_CFG) player_class[id] = Mag } 2.Trudniejszy Sposob: Jezeli To 1 Strona To : Znajdz: new text[512] Dodaj Pod Tym : if( get_user_flags(id) & ADMIN_LEVEL_B) { keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8) } else { keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7) } Efekt Koncowy Urywka Kodu : public select_class(id,lx[]) { if(is_user_bot(id)) return new flags[11] get_cvar_string("diablo_classes",flags,10) new text[512] new keys if( get_user_flags(id) & ADMIN_LEVEL_B) { keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8) } else { keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7) } asked_klass[id]=0 format(text, 511,"\yWybierz Klase - ^n") for(new i=0;i<9;i++) { format(text, 511,"%s%s%d. %s Level :%d ^n",text,(keys)&(1<<i)?"\w":"\d",i+1,Race[i+1], lx[i+1]) } show_menu(id, keys, text) } |