Raised This Month: $95 Target: $400
 23% 

Raffle


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-08-2007 , 00:18   Raffle
Reply With Quote #1

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
Attached Files
File Type: txt raffle.txt (2.2 KB, 394 views)
File Type: sma Get Plugin or Get Source (raffle.sma - 1287 views - 3.5 KB)
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt

Last edited by Crusher918; 05-22-2007 at 20:18.
Crusher918 is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 05-08-2007 , 06:38   Re: Raffle
Reply With Quote #2

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
Deviance is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-08-2007 , 18:10   Re: Raffle
Reply With Quote #3

update added and fixed sum things
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt
Crusher918 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-08-2007 , 21:15   Re: Raffle
Reply With Quote #4

Suggestion: Utilize the Multi-Lingual system.
__________________
Brad is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-08-2007 , 23:31   Re: Raffle
Reply With Quote #5

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
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt

Last edited by Crusher918; 05-13-2007 at 10:44.
Crusher918 is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-19-2007 , 21:43   Re: Raffle [Translated]
Reply With Quote #6

update added health as a prize so other mods can use it
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt
Crusher918 is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-20-2007 , 11:53   Re: Raffle
Reply With Quote #7

uhhh wtf is "any other raffle" please describe it more precisely
__________________
Voi is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-20-2007 , 12:26   Re: Raffle
Reply With Quote #8

Quote:
Originally Posted by Voi View Post
uhhh wtf is "any other raffle" please describe it more precisely

is that better?

-sorry i thought everyone knows wat raffle is
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt
Crusher918 is offline
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 05-22-2007 , 20:32   Re: Raffle
Reply With Quote #9

posted screenshots
__________________
My Plugins
Newest plugin: semiclip , amx_bankrupt
Crusher918 is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-24-2007 , 02:56   Re: Raffle
Reply With Quote #10

still no idea what raffle is
__________________
Voi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:20.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode