Raised This Month: $ Target: $400
 0% 

Raffle V1.0.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
sumguy14
Senior Member
Join Date: Apr 2006
Plugin ID:
17
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to donate money to a pot, and one player will win it all, winner is picked on odds, and includes a menu!
    Old 06-05-2007 , 00:45   Raffle V1.0.2
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (raffle.sp - 1153 views - 8.1 KB)

    Last edited by sumguy14; 12-26-2007 at 20:35. Reason: Update to V1.0.2
    sumguy14 is offline
     



    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 21:52.


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