sumguy14
06-05-2007, 00:45
Version 1.0.2
Description:
My first plugin in SourceMod. It's a pretty simple little plugin. Any player on the server can type 'donate <amount of cash/all>' and donate a certain amount of money or 'all' their money to this pot. You can donate as many times as you want. When two players have donated to this pot it becomes "active" while the pot is active players are prompted to make a donation. It then starts to count rounds. After the 3rd round it picks a winner, the winner is picked based off how much money you have donated. If 3 players donated:
Playerx
Playery &
Playerz
Those 3 players are the only ones eligible to win the pot.
If Playerx donated $5000, Playery donated $20000, and Playerz donates $1, Playerz will almost definetly not win, Playerx has around a 20% chance and Playery will most likely (80% chance) win.
Todo:
o Code it better
Changelog
o V1.0.0
-Released
o V1.0.1
- Changed name to Raffle
- Added menu for donating (accessible through 'donate')
- Cleaned it up a little
- Menu pops up to players who haven't donated every round the pot is active
o V1.0.2
- Uses PrintToChat(All) now
- Changed some variable names and messages
- Other small things I don't remember
Description:
My first plugin in SourceMod. It's a pretty simple little plugin. Any player on the server can type 'donate <amount of cash/all>' and donate a certain amount of money or 'all' their money to this pot. You can donate as many times as you want. When two players have donated to this pot it becomes "active" while the pot is active players are prompted to make a donation. It then starts to count rounds. After the 3rd round it picks a winner, the winner is picked based off how much money you have donated. If 3 players donated:
Playerx
Playery &
Playerz
Those 3 players are the only ones eligible to win the pot.
If Playerx donated $5000, Playery donated $20000, and Playerz donates $1, Playerz will almost definetly not win, Playerx has around a 20% chance and Playery will most likely (80% chance) win.
Todo:
o Code it better
Changelog
o V1.0.0
-Released
o V1.0.1
- Changed name to Raffle
- Added menu for donating (accessible through 'donate')
- Cleaned it up a little
- Menu pops up to players who haven't donated every round the pot is active
o V1.0.2
- Uses PrintToChat(All) now
- Changed some variable names and messages
- Other small things I don't remember