Mógłby mi ktoś przerobić coś takiego:
public select_class(id,lx[])
{
if(is_user_bot(id)) return
new flags[17]
get_cvar_string("diablo_classes",flags,17)
new text[512]
new keys = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
asked_klass[id]=0
format(text, 511,"\yWybierz Klase - ^n")
for(new i=0;i<8;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])
}
format(text, 511,"%s^n9. Dalej^n",text)
show_menu(id, keys, text)
}
public select_class_menu(id, key)
{
new lx[17]
g_haskit[id] = 0
c_jump[id] = 0
c_blind[id] = 0
c_vampire[id] = 0
switch(key)
{
case 0:
{
player_class[id] = Czarodziejka
}
case 1:
{
player_class[id] = Mnich
}
case 2:
{
player_class[id] = Paladyn
}
case 3:
{
player_class[id] = Zabojczyni
}
case 4:
{
player_class[id] = Nekromanta
g_haskit[id] = 1
}
case 5:
{
player_class[id] = Barbarzynca
}
case 6:
{
player_class[id] = Ninja
}
case 7:
{
player_class[id] = Hunter
g_GrenadeTrap[id] = 1
}
case 8:
{
ShowKlasy(id,lx)
}
}
LoadXP(id, player_class[id])
CurWeapon(id)
give_knife(id)
return PLUGIN_HANDLED
}
public ShowKlasy(id,lx[])
{
new text2[512]
asked_klass[id]=0
format(text2, 511,"\yWybierz klase - ^n\w1. klasa1 Level: %i^n^n^n0.Wstecz^n",player_class_lvl[id][9])
show_menu(id, KeysKlasy,text2, -1, "Klasy")
}
public PressedKlasy(id, key) {
new lx[17]
g_haskit[id] = 0
c_jump[id] = 0
c_blind[id] = 0
c_vampire[id] = 0
switch (key)
{
case 0:
{
player_class[id] = Twardziel
}
case 1:
{
player_class[id] = Gangster
}
case 2:
{
player_class[id] = Qasis
}
case 3:
{
player_class[id] = Tropiciel
}
case 4:
{
player_class[id] = Kleryk
c_blind[id] = 6
c_jump[id] = 1
}
case 5:
{
player_class[id] = Szaman
}
case 6:
{
if( get_user_flags(id) & ADMIN_LEVEL_B)
player_class[id] = Wampir
c_vampire[id] = 10
}
case 7:
{
if( get_user_flags(id) & ADMIN_LEVEL_B)
player_class[id] = Assasin
c_jump[id] = 2
}
case 9:
{
select_class(id,lx)
}
}
LoadXP(id, player_class[id])
CurWeapon(id)
give_knife(id)
return PLUGIN_HANDLED
}Na:Przy wejsciu:
Wybierz Rodzaj- 1.Dobro 2.ZłoGdy wybiorę dobro:
Dobro- 1.klasa1 2.klasa2 3.klasa3 4.klasa4 5.klasa5 6.klasa6 7.klasa7 8.klasa8 9.powrot
Gdy wybiorę zło:
Zło- 1.klasa1 2.klasa2 3.klasa3 4.klasa4 5.klasa5 6.klasa6 7.klasa7 8.klasa8 9.powrotZa wszystkie odpowiedzi z góry dzięki.
Użytkownik slowly edytował ten post 18.08.2010 13:11


Dodatki SourceMod



Temat jest zamknięty









