Raised This Month: $ Target: $400
 0% 

[ANY] Raffle


Post New Thread Reply   
 
Thread Tools Display Modes
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 01-11-2012 , 19:33   Re: [ANY] Raffle
Reply With Quote #41

Hehe you're welcome buddy! ^^
11530 is offline
PolyQuad
Member
Join Date: Oct 2011
Old 03-23-2012 , 22:49   Re: [ANY] Raffle
Reply With Quote #42

Quote:
Originally Posted by Thraka View Post
Here is a version that has cvars for center winner announce and plays a sound when winner.

Put the mp3 file in your tf/sound directory on your server.

Part of the sound was pulled from this: http://www.gamebanana.com/sounds/16147

I couldn't get the sounds to work with this when I just tested this out today, or the center message, where is the documentation for the cvars?

On another note, this is my admincustom.ini , i modified it to add a @all option to make it easier to run random raffles.


"Commands"
{
"Raffle"
{
"admin" "sm_ban"
"Assign Single Ticket"
{
"cmd" "sm_raffle_assign #1"
"admin" "sm_raffle_assign"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Assign Raffle Ticket"
}
}
"Assign Everyone Tickets"
{
"cmd" "sm_raffle_assign @all"
"admin" "sm_raffle_assign @all"
"execute" "player"

}
"Remove Ticket"
{
"cmd" "sm_raffle_remove #1"
"admin" "sm_raffle_remove"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Remove Raffle Ticket"
}
}
"List Raffle Tickets"
{
"cmd" "sm_raffle_list"
"admin" "sm_raffle_list"
"execute" "player"
}
"Cancel Raffle"
{
"cmd" "sm_raffle_cancel"
"admin" "sm_raffle_cancel"
"execute" "player"
}
"Perform Raffle"
{
"cmd" "sm_raffle"
"admin" "sm_raffle"
"execute" "player"
}
}
}
PolyQuad is offline
dave_with_beer_bottle
Senior Member
Join Date: Jul 2009
Old 03-23-2012 , 23:51   Re: [ANY] Raffle
Reply With Quote #43

Hi Poly i believe the center msg shows up, but its kinda white so you might have missed it
for the sound i didn't upload it to my server (since i didn't want players to load "more than they have to" ), but i believe you will have to allow it from your whitelist
orangebox/hl2 - pure_server_whitelist.txt
//raffle winner
sound\rafflewinner.mp3\... allow_from_disk

and add this into your sourcemod.cfg
raffle_playsound "1"
raffle_centerannounce "1"

Last edited by dave_with_beer_bottle; 04-05-2012 at 19:21.
dave_with_beer_bottle is offline
Bogdank
Junior Member
Join Date: Mar 2012
Old 04-03-2012 , 12:56   Re: [ANY] Raffle
Reply With Quote #44

you should add a menu where it assigns everyone a raffle number.
Bogdank is offline
PolyQuad
Member
Join Date: Oct 2011
Old 04-12-2012 , 14:00   Re: [ANY] Raffle
Reply With Quote #45

Bogdank, if you look at my code above that is what my menu does using

"Assign Everyone Tickets"
{
"cmd" "sm_raffle_assign @all"
"admin" "sm_raffle_assign @all"
"execute" "player"

}
PolyQuad is offline
Grot
Member
Join Date: May 2012
Old 09-09-2012 , 17:07   Re: [ANY] Raffle
Reply With Quote #46

Is there a way to add someone multiple times?
Grot is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 03-05-2015 , 18:43   Re: [ANY] Raffle
Reply With Quote #47

pretty good but if i may make a suggestion..

the choosing of the winner is pretty anti-climatic

an idea would be make the chat flood with a cycle of all entrants til it lands on a winner in green color make it suspenseful
secondtimesold is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 07-09-2016 , 06:41   Re: [ANY] Raffle
Reply With Quote #48

Someone can edit it for csgo it's not working

Error: Native "BfWriteByte" was not found
__________________
spancer35 is offline
Oliveros
Junior Member
Join Date: Apr 2012
Location: Norway
Old 01-29-2018 , 10:06   Re: [ANY] Raffle
Reply With Quote #49

Quote:
Originally Posted by NuclearWatermelon View Post
Sorry, was away on vacation.

That said, this is v0.9-a of raffle which will print to the center of the screen to announce the winner. I will have it be an option in the next version when I have time to make it.

I'll also add support for sounds in the next version.



And not to sound to ungrateful, but if a moderator could tell me what it is that I still need to do in order for my plugin to be approved, I would be very grateful.
I am getting error then i compile that sp file?
__________________
Creator and Owner of [OBC] rent a gameserver service!
[OBC]1998.©


[OBC]OliverȘ©
Oliveros is offline
Send a message via Skype™ to Oliveros
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 15:07.


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