Raised This Month: $ Target: $400
 0% 

[Any] GiveAway System


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TheUnderTaker
Senior Member
Join Date: Dec 2013
Location: Israel
Plugin ID:
4743
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    GiveAway System for TF2
    Old 07-23-2015 , 08:22   [Any] GiveAway System
    Reply With Quote #1

    PLEASE DELETE, I LOST SCRIPT FILE AND PUTTED MISTAKEN THE TEAM SYSTEM SOURCE.

    Sorry.
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list

    Last edited by TheUnderTaker; 08-19-2015 at 10:34.
    TheUnderTaker is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 07-23-2015 , 10:55   Re: [TF2] GiveAway System
    Reply With Quote #2

    PHP Code:
    AddFileToDownloadsTable("sound/gift_pickup.wav");
    AddFileToDownloadsTable("sound/spy_taunts15.mp3");
    AddFileToDownloadsTable("sound/happy_birthday_tf_26.wav");
    AddFileToDownloadsTable("sound/pyro_guitar_solo_no_verb.wav");
    AddFileToDownloadsTable("sound/announcer_failed_stalemate.wav");
    AddFileToDownloadsTable("sound/hologram_stop.wav"); 
    Are these TF2 sounds from the game or are they custom? If they are from TF2, why not just play them directly from the sounds directory instead of forcing the client to download these files again?

    Last edited by Snaggle; 07-23-2015 at 10:55.
    Snaggle is offline
    TheUnderTaker
    Senior Member
    Join Date: Dec 2013
    Location: Israel
    Old 07-23-2015 , 11:42   Re: [TF2] GiveAway System
    Reply With Quote #3

    Quote:
    Originally Posted by Snaggle View Post
    PHP Code:
    AddFileToDownloadsTable("sound/gift_pickup.wav");
    AddFileToDownloadsTable("sound/spy_taunts15.mp3");
    AddFileToDownloadsTable("sound/happy_birthday_tf_26.wav");
    AddFileToDownloadsTable("sound/pyro_guitar_solo_no_verb.wav");
    AddFileToDownloadsTable("sound/announcer_failed_stalemate.wav");
    AddFileToDownloadsTable("sound/hologram_stop.wav"); 
    Are these TF2 sounds from the game or are they custom? If they are from TF2, why not just play them directly from the sounds directory instead of forcing the client to download these files again?
    It's not custom, if you already got it you can remove it... but it doesn't matter....
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list
    TheUnderTaker is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 07-23-2015 , 11:47   Re: [TF2] GiveAway System
    Reply With Quote #4

    Quote:
    Originally Posted by TheUnderTaker View Post
    It's not custom, if you already got it you can remove it...
    Why add it then?
    Quote:
    Originally Posted by TheUnderTaker View Post
    but it doesn't matter....
    But what's the point of it if there is nothing custom being added?
    Snaggle is offline
    TheUnderTaker
    Senior Member
    Join Date: Dec 2013
    Location: Israel
    Old 07-23-2015 , 11:50   Re: [TF2] GiveAway System
    Reply With Quote #5

    Quote:
    Originally Posted by Snaggle View Post
    Why add it then?

    But what's the point of it if there is nothing custom being added?
    Second time using sounds..
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list
    TheUnderTaker is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 07-23-2015 , 20:33   Re: [TF2] GiveAway System
    Reply With Quote #6

    You should integrate the public store system with this.
    Drixevel is offline
    TheUnderTaker
    Senior Member
    Join Date: Dec 2013
    Location: Israel
    Old 07-24-2015 , 03:07   Re: [TF2] GiveAway System
    Reply With Quote #7

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    You should integrate the public store system with this.
    Wow thanks
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list
    TheUnderTaker is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 07-24-2015 , 04:00   Re: [TF2] GiveAway System
    Reply With Quote #8

    Quote:
    Originally Posted by TheUnderTaker View Post
    Wow thanks
    Meant to type that the other way around, you should use Store natives in this to give away credits/items. lol
    Drixevel is offline
    TheUnderTaker
    Senior Member
    Join Date: Dec 2013
    Location: Israel
    Old 07-24-2015 , 04:46   Re: [TF2] GiveAway System
    Reply With Quote #9

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    Meant to type that the other way around, you should use Store natives in this to give away credits/items. lol
    Oh you maybe didn't understand what this plugin do, download it and use it...
    For add it to store plugin it's just an option... It can be useful for every thing.
    It's just giveaway plugin lol.
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list
    TheUnderTaker is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 07-24-2015 , 04:53   Re: [TF2] GiveAway System
    Reply With Quote #10

    No, Add an option to execute a function as the prize. Make one of the options credits or items then once they win the giveaway, they get the credits/items.

    Code:
    https://github.com/SourceMod-Store/store/blob/master/scripting/include/store/store-backend.inc#L745
    Code:
    https://github.com/SourceMod-Store/store/blob/master/scripting/include/store/store-backend.inc#L663

    Last edited by Drixevel; 07-24-2015 at 04:55.
    Drixevel is offline
    Reply


    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 19:07.


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