Special
Administrator
Dołączył: 17 Lut 2007
Posty: 1006
Przeczytał: 0 tematów
Pomógł: 44 razy Ostrzeżeń: 0/5 Skąd: Miasto Lugormoda
|
Wysłany: Czw 11:42, 29 Sty 2009 Temat postu: Skrypty do T2: Bank |
|
|
Skrypty do T2
By mikaka
Bank dla nowo-zarejestrowanych:
Kod: | local int credits=get("credits");
local int rancred=random(1,4);
if credits >= 1000 then
announce "^1You have too much money to use this bank.";
else
give_credits rancred;
announce "You received CR ".rancred.".";
usetarget "banksound";
endif |
---------------------------------
random(1,4) - losuje credits od 1 do 4
>= 1000 then - jeśli masz więcej niż 1000 cr to nie możesz używać banku
usetarget "banksound" - zrób sobie target_speaker z targetname,banksound
Zmień se ustawienia dla swoich potrzeb.
Post został pochwalony 0 razy
|
|