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

[FoF] Fistful of Frags Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Apologet
New Member
Join Date: Jun 2019
Old 06-24-2019 , 06:47   [FoF] Fistful of Frags Money
Reply With Quote #1

Hi there,
currently I'm planning to write a Plugin for FoF (Fistful of Frags) and I want to modify the money of the players.
My Problem is, that i can't find the Variable where this info is stored.


What I've did so far:
First i took a look how the Plugin "cssbank" is doing it.
I found
PHP Code:
g_iAccount FindSendPropOffs("CCSPlayer""m_iAccount"); 
Then I've dumped all object data and were looking into it.
"sm_dump_netprops_xml"
"sm_dump_netprops"
"sm_dump_classes"
"sm_dump_datamaps"
"sm_dump_teprops"

In Fistful of Frags the Player is called "CFoF_Player". But this Player has no "m_iAccount" or something like this.
Here is the CFoF_Player dump: https://pastebin.com/KwfC4PJA

Atm. I'm stuck and maybe somebody can point me into the right direction?
thanks in advance for any tip/hint you might have for me.

Cheers,
Apologet

Last edited by Apologet; 06-24-2019 at 07:37. Reason: Added CFoF_Player dump link
Apologet is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-24-2019 , 18:00   Re: [FoF] Fistful of Frags Money
Reply With Quote #2

Apologet... Not sure if it will help you or not, but this is what I use for money on my Team Fortress 2 server. It's part of the Set Cash plugin developed by Tylerst: https://forums.alliedmods.net/showthread.php?p=1772675

Here's the part of code you may be interested in...

Code:
stock SetCash(client, iAmount)
{
	if(iAmount < 0) iAmount = 0;
	SetEntProp(client, Prop_Send, "m_nCurrency", iAmount);
}

stock GetCash(client)
{
	return GetEntProp(client, Prop_Send, "m_nCurrency");
}
PC Gamer is offline
Apologet
New Member
Join Date: Jun 2019
Old 06-24-2019 , 19:46   Re: [FoF] Fistful of Frags Money
Reply With Quote #3

Howdy (as we FoF Player say),

thank you for your reply. But i was just too stupid. There were 4 files and I didn't expected the info in the netprops dump file because it was so small compared to the datamaps_dump, were i kept looking for XD


The variable is called: m_flFoFCash

Cheers

Last edited by Apologet; 06-24-2019 at 19:49.
Apologet 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 12:13.


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