Raised This Month: $12 Target: $400
 3% 

[TF2] Player credits and rewards


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
Gachl
BANNED
Join Date: Feb 2009
Plugin ID:
977
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    no longer posted
    Old 07-04-2009 , 11:39  
    #1

    . .

    Last edited by Gachl; 09-04-2009 at 15:26.
    Gachl is offline
    Tf2Ownage
    Junior Member
    Join Date: Mar 2009
    Old 07-04-2009 , 12:26   Re: [TF2] Player credits and rewards
    #2

    Simply amazing! I'll try this out tonight, thanks for all your hard work, and thanks even more for giving this to the community.
    Tf2Ownage is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-04-2009 , 12:29   Re: [TF2] Player credits and rewards
    #3

    Quote:
    Originally Posted by Tf2Ownage View Post
    Simply amazing! I'll try this out tonight, thanks for all your hard work
    Thanks!

    Quote:
    Originally Posted by Tf2Ownage View Post
    and thanks even more for giving this to the community
    I made it for the community, I don't use it on my servers
    Gachl is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 07-04-2009 , 14:18   Re: [TF2] Player credits and rewards
    #4

    You should just call it tf2 credits or something. Candy doesnt really make sense.

    Anyways nice work. I appreciate someone taking the effort to fullfill a request ive had for 6months or more.

    Looks like you got a good base of ideas coming. Im not 100% sure that the buymenu.txt for configuration is the best way to handle the popup buymenu ingame for doing the purchasable items but, well see.


    Suggestions/Bugs:
    - I was only testing with bots, but I dont think the credits per kills cvar works. It doesnt actually give any credits for killing. I set it to 1, 5, 10, etc and nothing. Again, I was only testing with my bots.
    - For the sqlite database it uses, can you make it go into its own custom filename? Its own database file so you can keep track of this? This would be very helpful if for some reason you were going to change servers or just needed to backup the credits database file without retaining the other junk. That would be awesome. The N1g tf2 stats plugin does this so....if you needed an example.

    Last edited by retsam; 07-04-2009 at 15:10.
    retsam is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-04-2009 , 14:47   Re: [TF2] Player credits and rewards
    #5

    I like candy! You get candy for stuff you do. It's like a pinata and I like the idea of beating the shit out of something and getting candy in reward.

    about the buymenu.txt, well I think this is a good way to manage the buymenu, but if you have a better idea please tell me.
    The idea of making the menu customizable by a file is by sexual harassment panda:
    Quote:
    Originally Posted by Sexual Harassment Panda View Post
    I think it would be nice if you had it so you could run custom commands in this plugin. Have a cfg file where you can say x points lets you run x command on yourself.
    With this you can take ANY fun plugin and use it with this reward thing by putting the commands in the config (as seen on the OP -> RTD or FuncommandsX)
    Gachl is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-04-2009 , 15:25   Re: [TF2] Player credits and rewards
    #6

    Quote:
    Originally Posted by retsam View Post
    - I was only testing with bots, but I dont think the credits per kills cvar works. It doesnt actually give any credits for killing. I set it to 1, 5, 10, etc and nothing. Again, I was only testing with my bots.
    I haven't tested that but I will look at the code and try to find someone to test it with.

    Quote:
    Originally Posted by retsam View Post
    - For the sqlite database it uses, can you make it go into its own custom filename?
    As far as I know you specify a database in the database configuration file of sourcemod and if you choose sqlite and a database name a new file with this name will be created. That should be it, you can change the db to use with the cvar sm_candy_database
    Gachl is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 07-04-2009 , 15:31   Re: [TF2] Player credits and rewards
    #7

    wow, quick response gachl, you're the man.
    __________________
    Sexual Harassment Panda is offline
    Gachl
    BANNED
    Join Date: Feb 2009
    Old 07-04-2009 , 15:36   Re: [TF2] Player credits and rewards
    #8

    Quote:
    Originally Posted by retsam View Post
    - I was only testing with bots, but I dont think the credits per kills cvar works.
    Nope it's working for me.
    Bots are FakeClients and since I check if one of the two players is a fakeclient you wont get any points for killing a bot.

    Quote:
    Originally Posted by Sexual Harassment Panda View Post
    wow, quick response gachl, you're the man.
    Thanks
    Gachl is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 07-04-2009 , 15:38   Re: [TF2] Player credits and rewards
    #9

    Ok thx. I had guessed you checked for fakeclients but didnt look at the code for the kills. That explains it then. I didnt have anyone to test with so....
    retsam is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 07-04-2009 , 15:39   Re: [TF2] Player credits and rewards
    #10

    quick request/inquiry could this, or does it have reserve slots for purchase, maybe a week long reserve slot for a configurable ammount of points.
    __________________
    Sexual Harassment Panda is offline
    Closed Thread


    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 09:30.


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