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

[CSS] RoundMoney


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pigophone
Junior Member
Join Date: Oct 2010
Plugin ID:
2002
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives a set amount of money at the start of round
    Old 10-11-2010 , 05:46   [CSS] RoundMoney
    Reply With Quote #1

    This is a plugin that gives players X amount of money every round. It is different from the one LIONz made , I could never get his working with all players.

    Features:
    Gives all players a set amount of money each round
    Optionally Shows a message in chat to all players about how much money been given
    Can be set to give money at the end of round, for invisible money giving

    ConVars:
    "sm_roundmoney_enabled" 1 : Enables or disables the RoundMoney
    "sm_roundmoney_amount" 16000 : Amount of money to give each round
    "sm_roundmoney_chat" 1 : Roundmoney prints '[SM] Gave everyone $****'
    "sm_roundmoney_endround 0 : Give RoundMoney at end of Round? So the player won't see the "+$****" or the value you have set appear above the money value.

    Changelog:

    1.0:
    Initial Development
    Attached Files
    File Type: sp Get Plugin or Get Source (RoundMoney.sp - 5169 views - 2.1 KB)

    Last edited by pigophone; 10-11-2010 at 05:48. Reason: Changelog
    pigophone is offline
    SirCole
    Member
    Join Date: Nov 2006
    Old 10-11-2010 , 21:11   Re: [CSS] RoundMoney
    Reply With Quote #2

    thankyou (:
    SirCole is offline
    T4rg3T
    Junior Member
    Join Date: Nov 2010
    Old 11-15-2010 , 23:03   Re: [CSS] RoundMoney
    Reply With Quote #3

    Where do you set the convars at?
    T4rg3T is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 11-15-2010 , 23:54   Re: [CSS] RoundMoney
    Reply With Quote #4

    At a guess I would say in your server.cfg or autoexec.cfg (if it doesnt generate a .cfg in cfg/sourcemod/

    Handy plug thanks
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 11-11-2011 , 17:17   Re: [CSS] RoundMoney
    Reply With Quote #5

    Approved as a note you declare a global variable when you don't need one.

    Code:
    public SetMoney(client, amount)
    {
    	if (g_iAccount != -1)
    	{
    		g_oldmoney = GetMoney(client);
    		g_newmoney = g_oldmoney + amount;
    		if(g_newmoney > 16000){
    			g_newmoney = 16000;
    		}
    		SetEntData(client, g_iAccount, g_newmoney);
    	}	
    }
    g_newmoney can just be declared within that scope and not globally.
    Dr!fter is offline
    wtfaatp
    Senior Member
    Join Date: Jul 2010
    Old 12-07-2011 , 14:58   Re: [CSS] RoundMoney
    Reply With Quote #6

    Anyway to make this give to only certain flags?
    __________________
    SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
    Server : NFOservers - Windows
    wtfaatp is offline
    MrGuvernment
    Junior Member
    Join Date: Jul 2012
    Location: Costa Frick'n Rica
    Old 07-25-2012 , 16:46   Re: [CSS] RoundMoney
    Reply With Quote #7

    installed and working

    i put the car in my autoexec.cfg

    //RoundMoney
    "sm_roundmoney_enabled" 1
    "sm_roundmoney_amount" 16000
    "sm_roundmoney_chat" 1
    "sm_roundmoney_endround" 0
    MrGuvernment is offline
    Send a message via ICQ to MrGuvernment
    kdawgmaster
    Member
    Join Date: Jul 2009
    Old 09-05-2012 , 02:04   Re: [CSS] RoundMoney
    Reply With Quote #8

    how do i enable flags for the plugin?
    kdawgmaster is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 09-05-2012 , 05:35   Re: [CSS] RoundMoney
    Reply With Quote #9

    Quote:
    Originally Posted by MrGuvernment View Post
    installed and working

    i put the car in my autoexec.cfg
    Don't add SM plugins cvars in autoexec.cfg, will not work.
    Bacardi is offline
    Bento
    SourceMod Donor
    Join Date: May 2005
    Location: The Netherlands
    Old 09-24-2012 , 14:41   Re: [CSS] RoundMoney
    Reply With Quote #10

    How can i make this work so it will only start giving out money after the pistol round? So from the 2nd round on...
    __________________
    Bento 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 09:31.


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