Raised This Month: $32 Target: $400
 8% 

[ANY] Raffle


Post New Thread Reply   
 
Thread Tools Display Modes
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-24-2010 , 17:35   Re: [ANY] Raffle
Reply With Quote #11

Quote:
Originally Posted by Thraka View Post
One thing that would make it officinal I think is something like sm_raffleprep

This would post into chat in color
A new raffle is starting! Donate an item to [Admin Name] to be entered to win all donated items.

This way people cant hop on to the server and trick others into giving them items posing as an admin...
I really had been hoping to keep it a general-use plugin for any game.

On our servers we run Simple Chat Colors so confusing who is an admin or not isn't that big of an issue; we also have the habit of using /csay to announce this sort of thing.

Even then, there have been raffles held by non-admins that were successful even before I wrote the raffle plugin; when it comes to trading in TF2 a certain level of trust is needed.
NuclearWatermelon is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 11-25-2010 , 16:58   Re: [ANY] Raffle
Reply With Quote #12

We just did two raffles on the server, BIG HIT.

1) Need a way to cancel the existing tickets in case I accidentally assign two to a person. And even a reset a single persons tickets.

2) I think for the people that know about the raffle on the server, like to see something in chat with color that states it's starting.

3) A sound that fires at the start and end of the raffle would be handy.
Thraka is offline
SmackDaddy
Veteran Member
Join Date: Oct 2009
Old 11-25-2010 , 21:52   Re: [ANY] Raffle
Reply With Quote #13

I'd rather have a menu item for me to issue tickets -- some folks use stupid characters names consisting of wingdings and everything else.....so if I had a menu item to issue ticket, and then a player list, I could merely select their name......in a server full of folks and all of them participating, it would make it easier......thanks.
SmackDaddy is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 11-26-2010 , 11:06   Re: [ANY] Raffle
Reply With Quote #14

I believe you can use the custom menu thingie that comes with sourcemod to build out a menu that executes commands with players. In your sourcemod/configs folder there is a file named adminmenu_custom.cfg
Thraka is offline
SmackDaddy
Veteran Member
Join Date: Oct 2009
Old 11-26-2010 , 18:36   Re: [ANY] Raffle
Reply With Quote #15

I don't think that will work thraka since typing it within console or chat doesn't bring up a list of players, so why would adding it into the adminmenu make the command react differently than when typed?
SmackDaddy is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-26-2010 , 19:09   Re: [ANY] Raffle
Reply With Quote #16

Thraka is correct, it can be added to the menu using adminmenu_custom.txt

Adding this into adminmenu_custom.txt under "Commands" will give you what you are looking for SmackDaddy, at least until I have time to program the plugin to add itself to the admin menu.

Code:
    "Raffle"
    {
        "Assign Ticket"
        {
            "cmd"            "sm_raffle_assign #1"
            "admin"            "sm_raffle_assign"
            "execute"        "player"
            "1"
            {
                "type"        "player"
                "method"    "name"
                "title"        "Assign Raffle Ticket"
            }
        }
        "Do Raffle"
        {
            "cmd"            "sm_raffle"
            "admin"            "sm_raffle"
            "execute"        "player"
        }
    }
NuclearWatermelon is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 11-26-2010 , 19:14   Re: [ANY] Raffle
Reply With Quote #17

It's been awhile since I've played with the custom menu but you can define a command and have it present you a list of users, when you select the user it does the command with the user as the first parameter.

EDIT: Web browser cache fail, didn't see your reply to his.
Thraka is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-29-2010 , 15:30   Re: [ANY] Raffle
Reply With Quote #18

I updated the plugin with new commands:
  • sm_raffle_remove
  • sm_raffle_list
  • sm_raffle_cancel


See original post for usage.
NuclearWatermelon is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 11-29-2010 , 19:41   Re: [ANY] Raffle
Reply With Quote #19

Bug fixes made.

More changes made.

Last edited by NuclearWatermelon; 11-29-2010 at 22:27. Reason: Ch-ch-ch-ch-changes. Turn to face the strain.
NuclearWatermelon is offline
NuclearWatermelon
Junior Member
Join Date: Jun 2010
Old 12-19-2010 , 00:28   Re: [ANY] Raffle
Reply With Quote #20

Added server logging.
NuclearWatermelon is offline
Reply



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 01:11.


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