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

CashMod | V0.0.7


Post New Thread Reply   
 
Thread Tools Display Modes
TheCompany
BANNED
Join Date: Aug 2010
Old 09-06-2010 , 12:10   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #21

Ok, Thanks man ;) Can i just delete that so i get the normal cash like all others?
TheCompany is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-06-2010 , 12:13   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #22

Don't delete 636, goto line 830 and remove this:

PHP Code:
                    if( g_Admin[killer] && g_iCash[killer] < 99938 )
                    {
                        
g_iCash[killer] += 60;
                        
formatex(format_textsizeof(format_text) - 1"^x03You recieved 60 cash for killing^x04 %s"vic_name);
                    }
                    else
                    {
                        
g_iCash[killer] += 40;
                        
formatex(format_textsizeof(format_text) - 1"^x03You recieved 40 cash for killing^x04 %s"vic_name);
                    } 
And add this:
PHP Code:
                    g_iCash[killer] += 40;
                    
formatex(format_textsizeof(format_text) - 1"^x03You recieved 40 cash for killing^x04 %s"vic_name); 
That should work.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
TheCompany
BANNED
Join Date: Aug 2010
Old 09-06-2010 , 12:34   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #23

Thanks!
TheCompany is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-06-2010 , 12:36   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #24

No problems at all.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-07-2010 , 04:56   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #25

Updated the main thread, added frostnades plugin wich is required in order to run cashmod.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
prole
Member
Join Date: Jun 2010
Location: Sweden, Eskilstuna
Old 09-07-2010 , 12:37   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #26

This is awesome BUT. Can you add the code to cashblock
prole is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-07-2010 , 13:55   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #27

Sure thing, here's the action:

PHP Code:
ActionCash(ident)
{
    if ( 
cs_get_user_team(id) == CS_TEAM_T )
    {
        if ( !
g_cashblock_used[id] )
        {
            static 
property[5];
            
GetProperty(ent1property);
            
cm_set_user_cash(idcm_get_user_cash(id) + str_to_num(property));
            
g_cashblock_used[id] = true;
            
            Print(
id"You have been given %i Cash!"str_to_num(property));
        }
        else
        {
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"You can only take Cash Block once a round!");
        }
    }
    else
    {
            
set_hudmessage(025500.010.1800.01.00.250.252);
            
show_hudmessage(id"Only Terrorists can take Cash Block!");
    }

Just follow a tutorial on how to add a new block.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
TheCompany
BANNED
Join Date: Aug 2010
Old 09-07-2010 , 14:59   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #28

Thanks Man! But how do i do so i add the natives to the blockmaker?
TheCompany is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-07-2010 , 15:02   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #29

#include <cashmod> on your blockmaker and it is done.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
TheCompany
BANNED
Join Date: Aug 2010
Old 09-07-2010 , 15:11   Re: CashMod | V0.0.6 | OpenSource | Legit
Reply With Quote #30

Thanks, Check your PM.
TheCompany 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 15:59.


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