Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-01-01, 15:01


Kendzior_13







Wiek: 37
Na forum: 5949 dni
Posty: 22
Nick w MP: GrandMFlash

Piwa: 1

Respekt: 50

Jest jaka? mo?liwo?? zmiany puli na mapie polskie party? (Chodzi mi o losowanie).

Podpis
...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-01, 15:04


pawol7







Wiek: 26
Na forum: 5469 dni
Posty: 20
Nick w MP: Pawol7

Piwa: 1604

Respekt: 49,5

nie da sie losowanie jest automatyczne nie zmienisz ani liczby ani kasy

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-01, 15:08


Kendzior_13







Wiek: 37
Na forum: 5949 dni
Posty: 22
Nick w MP: GrandMFlash

Piwa: 1

Respekt: 50

To mo?e wiesz czemu ca?y czas w niej jest 0$ ? :p

Podpis
...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-01, 15:39


krzyzan







Wiek: 30
Na forum: 5669 dni
Posty: 387

Piwa: 2132

Respekt: 135
Respekt: 135

Kendzior_13, Pokarz kawa?ek z losowania

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-01, 15:52


Kendzior_13







Wiek: 37
Na forum: 5949 dni
Posty: 22
Nick w MP: GrandMFlash

Piwa: 1

Respekt: 50

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:



Podpis
...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-01, 16:08


krzyzan







Wiek: 30
Na forum: 5669 dni
Posty: 387

Piwa: 2132

Respekt: 135
Respekt: 135

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;
}


Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zwiększyć :: pulę :: pp?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Jak zwiększyć pulę na PP? Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku