Raised This Month: $ Target: $400
 0% 

[CS:GO] Setting money ( the only way possible )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-03-2019 , 09:05   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #1

Stock is now better.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 04-03-2019 , 09:17   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #2

Quote:
Originally Posted by eyal282 View Post
Stock is now better.
That should be faster, because why use checking the FindEntityByClassname when it faster to create new and delete it
PHP Code:
stock SetClientMoney(clientmoney)
{
    
SetEntProp(clientProp_Send"m_iAccount"money);

    
int entity CreateEntityByName("game_money");
    if(
entity != INVALID_ENT_REFERENCE)
    {
        
DispatchKeyValue(entity"AwardText""");
    
        
DispatchSpawn(entity);

        
SetVariantInt(0);
        
AcceptEntityInput(entity"SetMoneyAmount");
        
        
SetVariantInt(client);
        
AcceptEntityInput(entity"AddMoneyPlayer");
        
        
AcceptEntityInput(entity"Kill");
        
        return 
true;
    }

    return 
false;

and i never had issue with giving money by the
Quote:
/**
* @brief Sets the money on a client.
*
* @param clientIndex The client index.
* @param iMoney The money amount.
**/
void AccountSetMoney(int clientIndex, int iMoney)
{
SetEntData(clientIndex, g_iOffset_PlayerAccount, iMoney, _, true);
}
__________________

Last edited by gubka; 04-03-2019 at 09:19.
gubka is offline
Send a message via ICQ to gubka
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-04-2019 , 07:29   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #3

Quote:
Originally Posted by gubka View Post
That should be faster, because why use checking the FindEntityByClassname when it faster to create new and delete it
PHP Code:
stock SetClientMoney(clientmoney)
{
    
SetEntProp(clientProp_Send"m_iAccount"money);

    
int entity CreateEntityByName("game_money");
    if(
entity != INVALID_ENT_REFERENCE)
    {
        
DispatchKeyValue(entity"AwardText""");
    
        
DispatchSpawn(entity);

        
SetVariantInt(0);
        
AcceptEntityInput(entity"SetMoneyAmount");
        
        
SetVariantInt(client);
        
AcceptEntityInput(entity"AddMoneyPlayer");
        
        
AcceptEntityInput(entity"Kill");
        
        return 
true;
    }

    return 
false;

and i never had issue with giving money by the
Argue with everything I said in the video. If you can do what it claims you can't sure whatever.

Forgot to say, you can also find the game data for the task. I don't know anything about gamedatas and I know they occasionally require updates and this isn't L4D2, every two weeks there's an update.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 04-04-2019 at 07:50.
eyal282 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 04-04-2019 , 08:13   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #4

PHP Code:

        SetVariantInt
(0);
        
AcceptEntityInput(entity"SetMoneyAmount");
        
        
SetVariantInt(client);
        
AcceptEntityInput(entity"AddMoneyPlayer"
So, these "SetVariantInt"s works for you?
__________________
Ilusion9 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-05-2019 , 14:09   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #5

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:

        SetVariantInt
(0);
        
AcceptEntityInput(entity"SetMoneyAmount");
        
        
SetVariantInt(client);
        
AcceptEntityInput(entity"AddMoneyPlayer"
So, these "SetVariantInt"s works for you?
I prefer not using variants, it looks less convenient.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
zinx
Junior Member
Join Date: Feb 2023
Old 02-11-2023 , 17:59   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #6

can someone re edit this plugin so the players on server will always have 0$ all the time
zinx is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-11-2023 , 18:41   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #7

Quote:
Originally Posted by zinx View Post
can someone re edit this plugin so the players on server will always have 0$ all the time
What about you try change cvars ?
Spoiler


*edit
Maybe these two is enough ?
mp_teamcashawards 0
mp_playercashawards 0
__________________
Do not Private Message @me

Last edited by Bacardi; 02-11-2023 at 18:55.
Bacardi is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 04-04-2019 , 12:23   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #8

Quote:
Originally Posted by eyal282 View Post
Argue with everything I said in the video. If you can do what it claims you can't sure whatever.

Forgot to say, you can also find the game data for the task. I don't know anything about gamedatas and I know they occasionally require updates and this isn't L4D2, every two weeks there's an update.
They dont really require updates, the offsets are constantly updated on map/plugin loading
TheDS1337 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-05-2019 , 13:22   Re: [CS:GO] Setting money ( the only way possible )
Reply With Quote #9

Quote:
Originally Posted by TheDS1337 View Post
They dont really require updates, the offsets are constantly updated on map/plugin loading
You're right *flashbacks begin of me updating every week the gamedata offset of setting a player's speed based on weapon*
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 22:35.


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