Monthly Target: $400 Donations: $131
 32% 

[CSS] Round Money v1.0.1 (16.06.2009)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LIONz
SourceMod Donor
Join Date: Jun 2006
Location: Latvia
Plugin ID:
1106
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    31 
    Plugin Description:
    Give Extra Money At Round End
    Old 08-20-2009 , 08:48   [CSS] Round Money v1.0.1 (16.06.2009)
    Reply With Quote #1

    My first public Plugin for SourceMod

    What it does?
    Give Extra Money At Round End. Amount of money to give can be set by cvar.

    Available cvars
    sm_round_money "3000" Amount of money to give, should be a number between 0 and 16000
    sm_round_money_advert "1" Enables and Disables plugin advertisment for non registered players in chat (Disable 0 / Enable 1)
    sm_round_money_enabled "1" Enables and Disables plugin (Disable 0 / Enable 1)
    sm_round_money_notify "1" Enables and Disables plugin notices in chat (Disable 0 / Enable 1)
    sm_round_money_reserved "1" Enables and Disables plugin for admin flag RESERVATION (Disable 0 / Enable 1)
    sm_round_money_root "1" Enables and Disables plugin for admin flag ROOT (Disable 0 / Enable 1)

    Updates
    • 1.0.0 Initial release
    • 1.0.1 Fixed Client X is not connected Error
    Attached Files
    File Type: sp Get Plugin or Get Source (round_money.sp - 3708 views - 3.3 KB)
    File Type: zip round_money.zip (5.6 KB, 3947 views)
    __________________




    Last edited by LIONz; 09-16-2009 at 09:47.
    LIONz is offline
    Send a message via Skype™ to LIONz
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 09:32   Re: Round Money
    Reply With Quote #2

    Looks fine approved.

    Greetings ~Berni
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    c01eman
    Junior Member
    Join Date: Dec 2008
    Old 09-13-2009 , 19:45   Re: Round Money
    Reply With Quote #3

    this sometimes doesnt give money, but others do get it

    Code:
    L 09/13/2009 - 00:00:14: SourceMod error session started
    L 09/13/2009 - 00:00:14: Info (map "de_dust2") (file "errors_20090913.log")
    L 09/13/2009 - 00:00:14: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:00:14: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:00:14: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:01:29: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:01:29: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:01:29: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:02:21: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:02:21: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:02:21: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:03:57: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:03:57: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:03:57: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:04:25: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:04:25: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:04:25: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:04:57: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:04:57: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:04:57: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:06:28: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:06:28: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:06:28: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:07:22: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:07:22: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:07:22: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:08:20: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:08:20: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:08:20: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:09:37: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:09:37: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:09:37: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:11:06: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:11:06: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:11:06: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:12:26: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:12:26: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:12:26: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:14:35: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:14:35: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:14:35: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:15:09: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:15:09: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:15:09: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:16:35: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:16:35: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:16:35: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:18:07: [SM] Native "GetUserFlagBits" reported: Client 7 is not connected
    L 09/13/2009 - 00:18:07: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:18:07: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:19:29: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
    L 09/13/2009 - 00:19:29: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:19:29: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:19:58: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
    L 09/13/2009 - 00:19:58: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:19:58: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:21:30: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
    L 09/13/2009 - 00:21:30: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:21:30: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:22:33: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
    L 09/13/2009 - 00:22:33: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/13/2009 - 00:22:33: [SM]   [0]  Line 73, round_money.sp::Event_RoundEnd()
    L 09/13/2009 - 00:22:42: Error log file session closed.
    c01eman is offline
    c01eman
    Junior Member
    Join Date: Dec 2008
    Old 09-13-2009 , 20:20   Re: Round Money
    Reply With Quote #4

    ive been running this plugin for the last few days on my d2/office server and sometimes i dont get money at the end of every round, like for a whole map but other players do

    Code:
    L 09/14/2009 - 01:11:15: [SM] Native "GetUserFlagBits" reported: Client 8 is not connected
    L 09/14/2009 - 01:11:15: [SM] Displaying call stack trace for plugin "round_money.smx":
    L 09/14/2009 - 01:11:15: [SM]   [0]  Line 73, /home/groups/alliedmodders/forums/files/1/7/3/4/0/47925.attach::Event_RoundEnd()

    Last edited by c01eman; 09-13-2009 at 21:32. Reason: added a snip of the error log
    c01eman is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-13-2009 , 21:21   Re: Round Money
    Reply With Quote #5

    LIONz

    Search:

    Code:
    new iMaxClients = GetMaxClients();
            
        for (new i = 1; i <= iMaxClients; i++)
        {
    Replace:

    Code:
            
        for (new i = 1; i <= MaxClients; i++)
        {
             if (!IsClientInGame(i)) {
                  continue;
             }
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    c01eman
    Junior Member
    Join Date: Dec 2008
    Old 09-13-2009 , 21:36   Re: Round Money
    Reply With Quote #6

    thanks berni ill give that a try on my server
    c01eman is offline
    LIONz
    SourceMod Donor
    Join Date: Jun 2006
    Location: Latvia
    Old 09-16-2009 , 09:49   Re: [CSS] Round Money v1.0.1 (16.06.2009)
    Reply With Quote #7

    berni thnx your fix is added to plugin
    __________________



    LIONz is offline
    Send a message via Skype™ to LIONz
    -epic-
    New Member
    Join Date: Sep 2009
    Old 09-18-2009 , 01:44   Re: [CSS] Round Money v1.0.1 (16.06.2009)
    Reply With Quote #8

    Hello,

    i've a problem with this plugin namely all not registered public players without admin flags doesn't get money. What can I do, that all players becomes money I mean public players and admins. I tried to change the following cvars to 0: sm_round_money_reserved "1"
    sm_round_money_root "1"
    but without occur

    Thanks and sorry for my bad english.
    -epic- is offline
    rautamiekka
    Veteran Member
    Join Date: Jan 2009
    Location: Finland
    Old 09-22-2009 , 09:00   Re: [CSS] Round Money v1.0.1 (16.06.2009)
    Reply With Quote #9

    Did I understand correctly that you get the money no matter what happens that ends the round ? Like, you die but your team wins = you get the money, you and your team dies = you get the money ?
    __________________
    Links to posts I received Karma from:
    Big thanks to all who gave Karma

    Last edited by rautamiekka; 09-22-2009 at 12:49.
    rautamiekka is offline
    Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
    LIONz
    SourceMod Donor
    Join Date: Jun 2006
    Location: Latvia
    Old 09-22-2009 , 21:35   Re: [CSS] Round Money v1.0.1 (16.06.2009)
    Reply With Quote #10

    -epic- this plugin is for registered players and admins I will implement cvar for normal players in next release

    rautamiekka yes you did understand it correctly all users with reservation flags will gen +3000 at round end no matter what happens.
    __________________



    LIONz is offline
    Send a message via Skype™ to LIONz
    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 01:42.


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