AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hook cs_[s/g]et_user_money (https://forums.alliedmods.net/showthread.php?t=59766)

Ramono 08-20-2007 12:09

hook cs_[s/g]et_user_money
 
i'm trying to rebuild my old "More money than 16000" plugin and I want to add other plugins compatibility.

One of the things I need for that is to find out whenever a plugin is calling cs_get_user_money or cs_set_user_money.

Is this possible?

Thanks,
Ramon

Edit: Also blocking set_user_money would be nice

X-Script 08-22-2007 07:50

Re: hook cs_[s/g]et_user_money
 
You found nothing in the Wiki or functions?

Ramono 08-22-2007 09:51

Re: hook cs_[s/g]et_user_money
 
no?

sawce 08-22-2007 11:19

Re: hook cs_[s/g]et_user_money
 
Not possible.

If a player has less than 16000 and a plugin uses it, it'll send the message to update the money supply, so having an event check for that would work there.

But once the player is at 16000 it won't send money events any more since it doesn't change the value.

cs1.6 12-30-2007 16:27

Re: hook cs_[s/g]et_user_money
 
omg.. someone help him! :)

EDIT:

please
:P

This would make the unlimited money plugin finally compatible to other plugins.

M249-M4A1 12-30-2007 18:24

Re: hook cs_[s/g]et_user_money
 
Wow

Ramono 12-30-2007 19:25

Re: hook cs_[s/g]et_user_money
 
I have found somthing that makes it compatible with other plugins, gimme a few days.

cs1.6 12-30-2007 19:38

Re: hook cs_[s/g]et_user_money
 
Quote:

Originally Posted by Ramono (Post 568408)
I have found somthing that makes it compatible with other plugins, gimme a few days.

omg thanks so much! I love you!

Ramono 01-02-2008 08:54

Re: hook cs_[s/g]et_user_money
 
Updated it.

cs1.6 01-02-2008 09:30

Re: hook cs_[s/g]et_user_money
 
omg.. i can't balieve it! Finally! I'm gonna test it out right now! :P


All times are GMT -4. The time now is 07:51.

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