AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Raffle (https://forums.alliedmods.net/showthread.php?t=54926)

Crusher918 05-07-2007 23:18

Raffle
 
7 Attachment(s)
Raffle
by Crusher918

Idk if someone already made this but i searched a bit and didnt seen any.

Description: Raffle is a game where people buy tickets and 1 random winner gets called at the end of the round to win the prize

Screenshots:
[IMG]http://img514.**************/img514/1461/buyrafflejy4.th.png[/IMG] [IMG]http://img442.**************/img442/9296/rafflewinip4.th.png[/IMG]

Version:
1.0
-release

1.1
-change raffle_price to raffle_cost
-added the msg "The pot money $" when buying ticket so users know how much the pot is
-change Endround event to log_event

1.2
-fixed hud message
-now support multi-lingual system

1.3
-added health for the prizes
-edited chat msg when buying ticket

Cvars:
amx_raffle 1|0 on|off
say /raffle - to get a ticket
Put these code below in your amxx.cfg
Code:

// ******************  Raffle Settings  ******************
//This is were you set the price of the raffle ticket
//if you want the ticket for free set it to 0
//Note: If you set this to 0 the custom_prize must be
//set to 1 or 2 otherwise the prize would be nothing
raffle_cost 500
//Sets the custom prize
// 0 = all money received by buying tickets
// 1 = raffle_prize (can be change below)
// 2 = +100 health (raffle_cost must be set to 0 if using other mods)
custom_prize 2
//This is were you set the prize for the raffle
//custom_prize must be set to 1 to use this option
raffle_prize 500

Modules:
cstrike (only if prize is money)
fun

Credits:
|PJ| Shorty - translating it to German
Howdy! - translating it to Finnish
Deviance - translating it to Swedish
KylixMynxAltoLAG - translating it to Spanish
zapille - translating it to Polish
Xel0z - translating it to Dutch

Suggestions/comments/report bug please do so

Deviance 05-08-2007 05:38

Re: Raffle
 
This idea is good, just some things...

1. Use pcvars
2. Instead of
Code:
register_event("SendAudio", "end_round", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
You can do
Code:
register_logevent("logevent_round_end", 2, "1=Round_End")
3. Maybe rename raffle_price to raffle_cost, it get's a little bit confusing with raffle_prize

Crusher918 05-08-2007 17:10

Re: Raffle
 
update added and fixed sum things

Brad 05-08-2007 20:15

Re: Raffle
 
Suggestion: Utilize the Multi-Lingual system.

Crusher918 05-08-2007 22:31

Re: Raffle
 
update now it has that multi-lingual system all i need now is to get them translated already requested it.

btw if any1 notice any errors please correct me because its my first time using multi-lingual system

Crusher918 05-19-2007 20:43

Re: Raffle [Translated]
 
update added health as a prize so other mods can use it

Voi 05-20-2007 10:53

Re: Raffle
 
uhhh wtf is "any other raffle" please describe it more precisely

Crusher918 05-20-2007 11:26

Re: Raffle
 
Quote:

Originally Posted by Voi (Post 478632)
uhhh wtf is "any other raffle" please describe it more precisely


is that better?

-sorry i thought everyone knows wat raffle is

Crusher918 05-22-2007 19:32

Re: Raffle
 
posted screenshots

Voi 05-24-2007 01:56

Re: Raffle
 
still no idea what raffle is :P


All times are GMT -4. The time now is 08:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.