Raised This Month: $32 Target: $400
 8% 

[CSGO] Set Cash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 01-14-2018 , 09:32   [CSGO] Set Cash
Reply With Quote #1

Can someone do it please?

EDIT : Btw Plugin should set money to 60k whoever use sm_para command


Here is all i can do ;
Spoiler
__________________

Last edited by spancer35; 01-14-2018 at 09:35.
spancer35 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-14-2018 , 09:53   Re: [CSGO] Set Cash
Reply With Quote #2

I'm just wandering and have 0 knowledge about CS:GO, try this perhaps:

SetEntProp(client, Prop_Send, "m_iAccount", 60000);

or this:

SetEntProp(client, Prop_Data, "m_iAccount", 60000);

Tell me if one of them works ( the other one throws an error )
eyal282 is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 01-15-2018 , 07:49   Re: [CSGO] Set Cash
Reply With Quote #3

unfortunately doesn't worked
__________________
spancer35 is offline
brunoronning
Senior Member
Join Date: Jan 2014
Location: Brazil
Old 01-15-2018 , 16:04   Re: [CSGO] Set Cash
Reply With Quote #4

Quote:
Originally Posted by spancer35 View Post
unfortunately doesn't worked
Untested:
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <csgocolors>

public Plugin myinfo 
{
    
name "Para ver",
    
author "Spancer",
    
version "1.0",
    
description "!para yazan kisinin parasini fuller",
    
url "http://blood-clan.net"
}

public 
void OnPluginStart()
{
    
RegConsoleCmd("sm_para"paraver);
}

public 
void OnConfigsExecuted()
{
    
// Set MaxMoney 60000.
    
ConVar cMaxMoney FindConVar("mp_maxmoney");

    if (
cMaxMoney != null)
        
cMaxMoney.SetInt(60000);
}

public 
Action paraver(int clientint args)
{
    
CPrintToChat(client"[BLOOD] Paran Fullendi. Iyi oyunlar!");
    
CPrintToChatAll("[BLOOD] %N !para yazarak parasini fulledi. Sende !para yazarak kendi parani fulleyebilirsin. Iyi oyunlar!"client);

    
SetEntProp(clientProp_Send"m_iAccount"60000);


Last edited by brunoronning; 01-19-2018 at 00:55.
brunoronning is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 01-16-2018 , 07:35   Re: [CSGO] Set Cash
Reply With Quote #5

PHP Code:
int g_iAccount;

public 
void OnPluginStart()
{
    
g_iAccount FindSendPropOffs("CCSPlayer""m_iAccount");
    if (
g_iAccount == -1)
    {
        
SetFailState("Failed to find offset for m_iAccount!");
    }
}

public 
void MyFunc(int clientint iCash)
{
    
SetEntData(clientg_iAccountiCash);

Snippet from: https://forums.alliedmods.net/showthread.php?p=1434455
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
brunoronning
Senior Member
Join Date: Jan 2014
Location: Brazil
Old 01-19-2018 , 00:56   Re: [CSGO] Set Cash
Reply With Quote #6

Quote:
Originally Posted by Papero View Post
PHP Code:
int g_iAccount;

public 
void OnPluginStart()
{
    
g_iAccount FindSendPropOffs("CCSPlayer""m_iAccount");
    if (
g_iAccount == -1)
    {
        
SetFailState("Failed to find offset for m_iAccount!");
    }
}

public 
void MyFunc(int clientint iCash)
{
    
SetEntData(clientg_iAccountiCash);

Snippet from: https://forums.alliedmods.net/showthread.php?p=1434455
In this case it will only be used for CS:GO, it is not necessary to filter. SetEntProp will work perfectly.
brunoronning 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:38.


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