Raised This Month: $ Target: $400
 0% 

get user money with fakemeta?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Specialist
BANNED
Join Date: Nov 2006
Old 11-13-2006 , 17:42   get user money with fakemeta?
Reply With Quote #1

is there a way to get and set users money with fakemta? I dont see a pev function for it ? thanks
The Specialist is offline
Send a message via AIM to The Specialist
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-13-2006 , 19:00   Re: get user money with fakemeta?
Reply With Quote #2

Code:
 #if cellbits == 32     #define OFFSET_CSMONEY  115  #else     #define OFFSET_CSMONEY  140  #endif  #define OFFSET_LINUX       5  stock fm_cs_set_user_money(id,money,flash=1)  {      set_pdata_int(id,OFFSET_CSMONEY,money,OFFSET_LINUX);      message_begin(MSG_ONE,get_user_msgid("Money"),{0,0,0},id);      write_long(money);      write_byte(flash);      message_end();  }  stock fm_cs_get_user_money(id)  {      return get_pdata_int(id,OFFSET_CSMONEY,OFFSET_LINUX);  }

This is how I would do it, except that you would want to store the Money message id somewhere instead of getting it every time.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 11-13-2006 at 20:56.
XxAvalanchexX is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-13-2006 , 20:20   Re: get user money with fakemeta?
Reply With Quote #3

now would that be more efficiant then using cs_get_user_money to get and set a users money ? if not then ill just keep the cstrike way thansk ++karma



EDIT : Ah i see now . It all makes sence. vEN should add that to fm_util pack thanks again AvALANCHE

Last edited by The Specialist; 11-13-2006 at 20:29.
The Specialist is offline
Send a message via AIM to The Specialist
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-13-2006 , 20:35   Re: get user money with fakemeta?
Reply With Quote #4

i think it's better using the cs function
k007 is offline
Send a message via MSN to k007
The Specialist
BANNED
Join Date: Nov 2006
Old 11-13-2006 , 20:51   Re: get user money with fakemeta?
Reply With Quote #5

me too . Id like to use the fakemeta way so i wont have to add any more modules to my "weapon Jam" plugin , but the version i tried with avalnches way crashed my server thanks any ways I gave you karma anyways
The Specialist is offline
Send a message via AIM to The Specialist
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-13-2006 , 20:57   Re: get user money with fakemeta?
Reply With Quote #6

Whoops. The first argument is a long, not a byte. Use the new code.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-14-2006 , 14:24   Re: get user money with fakemeta?
Reply With Quote #7

Quote:
vEN should add that to fm_util pack
I've thought about porting cstrike module to FM but i don't think it will worth it. Though, i've ported some natives like ones which control deaths/money/armor/vip/mapzones a while ago, it can be found in the source code of some of my official plugins.

I'd rather make some on requests, but maybe will port them.
VEN 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 14:55.


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