Wysłany: 2012-01-01, 15:01
Kendzior_13
Wiek: 37 Na forum: 5949 dni Posty: 22
Nick w MP: GrandMFlash
Piwa : 1
Jest jaka? mo?liwo?? zmiany puli na mapie polskie party? (Chodzi mi o losowanie).
Wysłany: 2012-01-01, 15:04
pawol7
Wiek: 26 Na forum: 5469 dni Posty: 20
Nick w MP: Pawol7
Piwa : 1604
nie da sie losowanie jest automatyczne nie zmienisz ani liczby ani kasy
Wysłany: 2012-01-01, 15:08
Kendzior_13
Wiek: 37 Na forum: 5949 dni Posty: 22
Nick w MP: GrandMFlash
Piwa : 1
To mo?e wiesz czemu ca?y czas w niej jest 0$ ?
Wysłany: 2012-01-01, 15:39
krzyzan
Wiek: 30 Na forum: 5669 dni Posty: 387
Piwa : 2132
Kendzior_13 , Pokarz kawa?ek z losowania
Wysłany: 2012-01-01, 15:52
Kendzior_13
Wiek: 37 Na forum: 5949 dni Posty: 22
Nick w MP: GrandMFlash
Piwa : 1
tutaj mam kod:
Kod: forward Lotto();
public Lotto()
{
new RandomInt = random(46)+1;
new Winners, WinnerId;
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
{
if(IsPlayerConnected(PlayerId) && Player[PlayerId][LottoNumber] == RandomInt)
{
WinnerId = PlayerId;
Winners++;
}
}
LottoMoney = 1000000;
new String[255];
if(Winners == 0)
{
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Nikt nie wygra?, pula %d$ przechodzi na kolejne losowanie.", RandomInt, LottoMoney);
SendClientMessageToAll(COLOR_YELLOW, String);
}
else if(Winners == 1)
{
GivePlayerMoney(WinnerId, LottoMoney);
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Zwyci?zc? jest %s (id %d). Nagroda: %d$.", RandomInt, Player[WinnerId][Name], WinnerId, LottoMoney);
LottoMoney = 10000;
SendClientMessageToAll(COLOR_YELLOW, String);
}
else if(Winners > 1)
{
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId) && Player[PlayerId][LottoNumber] == RandomInt)
GivePlayerMoney(PlayerId, LottoMoney/Winners);
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Liczba zwyci?zc?w kt?rzy otrzymuj? po %d$: %d", RandomInt, LottoMoney/Winners, Winners);
LottoMoney = 10000;
SendClientMessageToAll(COLOR_YELLOW, String);
}
SendClientMessageToAll(COLOR_YELLOW, " (info) Kolejne losowanie lotto ju? za 10 minut. Wpisz /lotto [1-46] by wzi?? udzia?.");
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId))
Player[PlayerId][LottoNumber] = 0;
return 1;
}
a tu screena:
Wysłany: 2012-01-01, 16:08
krzyzan
Wiek: 30 Na forum: 5669 dni Posty: 387
Piwa : 2132
Kod:
forward Lotto();
public Lotto()
{
new RandomInt = random(46)+1;
new Winners, WinnerId;
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
{
if(IsPlayerConnected(PlayerId) && Player[PlayerId][LottoNumber] == RandomInt)
{
WinnerId = PlayerId;
Winners++;
}
}
LottoMoney = 1000000;
new String[255];
if(Winners == 0)
{
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Nikt nie wygra?, pula %d$ przechodzi na kolejne losowanie.", RandomInt, LottoMoney);
SendClientMessageToAll(COLOR_YELLOW, String);
}
else if(Winners == 1)
{
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Zwyci?zc? jest %s (id %d). Nagroda: %d$.", RandomInt, Player[WinnerId][Name], WinnerId, LottoMoney);
LottoMoney = 10000;
GivePlayerMoney(WinnerId, LottoMoney);
SendClientMessageToAll(COLOR_YELLOW, String);
}
else if(Winners > 1)
{
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId) && Player[PlayerId][LottoNumber] == RandomInt)
format(String, sizeof(String), " (info) Losowanie lotto: Wylosowana liczba to %d. Liczba zwyci?zc?w kt?rzy otrzymuj? po %d$: %d", RandomInt, LottoMoney/Winners, Winners);
LottoMoney = 10000;
GivePlayerMoney(PlayerId, LottoMoney/Winners);
SendClientMessageToAll(COLOR_YELLOW, String);
}
SendClientMessageToAll(COLOR_YELLOW, " (info) Kolejne losowanie lotto ju? za 10 minut. Wpisz /lotto [1-46] by wzi?? udzia?.");
for(new PlayerId = 0; PlayerId < MAX_PLAYERS; PlayerId++)
if(IsPlayerConnected(PlayerId))
Player[PlayerId][LottoNumber] = 0;
return 1;
}
Tagi: jak :: zwiększyć :: pulę :: pp?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: