Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[forums.alliedmods.net] TestMyLuck - Bet Game


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 09.04.2012 20:27

<p>

TestMyLuck
by kapzz

Description:

TestMyLuck is a bet game where the player bet's in 5 numbers with the cost of 200$ , the plugin then generates 5 random numbers,
and the objective is to the choosed numbers be the same and in the same positions as the random numbers, for each bet right the player wins 1250$, and for every wrong he loses 200$.
This plugin is mostly to be used in fun/public servers.
Numbers used here can be changed the way u want.


Video:
watch on youtube for better quality. ( 2º music sucks sorry xD )


Rewards:
This is not all since i thought it has to simple , players will also be able to win random rewards if they are right in more than 1 numbers and if you want this enable.

Rewards that can be given:
  • Random Health
  • Random Armor
  • Random Glow
  • Random Money
  • Nothing



There are 50/50 change of getting a reward or getting nothing.

Commands:
  • /testmyluck
  • /tml
Cvars:

  • tml_status <1/0> - Enables/Disables plugin (default:1)
  • tml_ads <1/0> - Enables/Disables plugin command advertiser. (default:1)
  • tml_cost <default:200> - Money cost of a bet.
  • tml_eachright <default:1250> - Money won on each number right
  • tml_eachwrong <defaut:200> - Money lost on each number wrong
  • tml_rewards <1/0> - Enables/Disables Rewards. (default:1)
  • tml_rewards_maxhealth <default:80> - Max health that can be given on rewards.
  • tml_rewards_maxarmor <default:50> - Max armor that can be given on rewards.
  • tml_rewards_maxmoney <default:1000> - Max money that can be given on rewards.
End:
  • Big thank's to bugsy & smasher:up:
  • You have to compile this localy with colorchat.inc on folder includes
  • Sorry for some english fails, if u find any please let me know
  • Plugin is only in english, will work on more later.
  • If u want to change the number of numbers to bet u have to change it on the sma.
  • If you have any suggestions to improve the plugin code, want something to be added or find any bug please tell, i appreciate it :wink:

Attached Files Dołączona grafika Get Plugin or Get Source (TestMyLuck.sma - 12.4 KB) Dołączona grafika colorchat.inc (5.9 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych