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

Players Drop Money v1.7 [UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 05-29-2018 , 05:42   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #81

Fallout on several models at once (that is, for example, one model 5 times immediately drops ). So they are duplicated several times

Please put one down

Last edited by MayroN; 05-29-2018 at 05:42.
MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
man_s_our
Senior Member
Join Date: Jul 2017
Location: aim_taliban
Old 08-10-2018 , 19:58   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #82

some plugins like RPG plugins, bullet time plugins and other plugins kill the player and then gives the killer 300$ so you can't fix that easielly. but if for example added a cvar that let other plugins know that the server is using this plugin any modder can edit his plugin so that he fix the issue.
__________________
man_s_our is offline
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 09-06-2018 , 04:31   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #83

If you are holding a knife, pressing the G key you can throw money( model) on the ground.But when you have 0 money, you still continue to throw them out.In the end, fly the model ,and when selecting them you have no money anyway ( empty ).

How to fix?
MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 09-06-2018 , 05:37   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #84

coins with 0 money device level model ( that is only after your death does NOT leave a single coin ( the model ) ,and a few)

Then what to do?


PHP Code:
public make_money (idmoneyFloatvelo[]) { 
new 
money bags money 1000 
new gone money money 
New floatorigin[3
new 
float:angles[3
new 
floatmin.[3] = {-2.79, -0.0, -6.14
New 
floatmaxs[3] = {2.421.996.35

if (((
moneybags 1000) < moneymoneybags++ 

for (
0tolstosumov; ++I) { 
new 
newent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString" info_target")) 
switch(
random_num(0,1)) 

case 
0engfunc(EngFunc_SetModelnewentmoney_wc1
case 
1engfunc(EngFunc_SetModelnewentmoney_wc2

if(!
is_user_alive (id)) { 
velo[0] = random_float (1.0150.0
velo[1] = random_float (1.0150.0
velo[2] = random_float (1.0150.0

still 
led
[2] += 100 

PEV 
(newentpev_anglescorners
corners[1] += random_num(1,360
PEV (IDpev_originorigin
set_pev (newentpev_sequence1
set_pev (newentpev_gaitsequence1
set_pev(newentpev_framerate1.0
set_pev(newentpev_frame0.0
set_pev(newentpev_animtimeget_gametime()) 
set_pev(newentpev_nextthinkget_gametime () + 0.01
set_pev(newentpev_originorigin
set_pev(newentpev_classname" pdm_money"
engfunc(EngFunc_SetSizenewentminmax
set_pev (newentpev_anglescorners
set_pev(newentpev_solidSOLID_TRIGGER
set_pev(newent,pev_movetype,MOVETYPE_TOSS
set_pev (newentpev_velocity,led
engfunc (EngFunc_DropToFloornewent

if(
moneyleft == 0) return FMRES_IGNORED 

if (money left 1000) { 
moneybox[newent]=money left 
gone money 

return FFRES_IGNORED 

gone money - = 1000 
moneybox
[newent]=1000 

return 
FFRES_IGNORED 

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
heroy66
New Member
Join Date: Sep 2018
Location: Russia
Old 09-07-2018 , 11:26   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #85

Thanks

add debug
heroy66 is offline
731
Member
Join Date: Aug 2006
Old 10-05-2023 , 07:48   Re: Players Drop Money v1.7 [UPDATED]
Reply With Quote #86

1. Parameter and command introduction
amx_maxmoney <n>
Set the maximum amount of money that can be reached, n≥16000(if less, automatically set to 16000), the default is 300000
It is best not to exceed 999999, because if it is 7 digits, the last digit will not be seen at all
amx_startmoney <n>
Starting money, ≥800(if less, automatically set to 800), default 800
amx_mindropmoney <n>
Players will lose money if their money is greater than or equal to this value, the default is 10,000
Minimum value 1000
amx_dropmoney <n>
If the player is killed by an enemy when the money is greater than or equal to the value, it will definitely lose the money, the default is 100,000
The minimum value must be no less than amx_mindropmoney
amx_savespecmoney <1|0>
If the player keeps his money after becoming an observer, default is 0 (CS default is also not saved)
amx_givemoneymenu
Hit the Development Money menu (already bound to the J key)
axm_setmoneynum <num1> [num2]... [num9]
Set the amount of money to be sent in the Send Money menu
amx_addmoney <#t|#ct|name|#userid> <money>
Add or subtract money from all bandits or police or designated players

2. Precautions
1. Do not change the value of mp_startmoney during the game.
2. To get or set the player's money in another plugin, use the following two functions:
cs_get_user_money2(id)
cs_set_user_money2(id, money, flash=1)
#include <unlimited_money> in front of your plugin source code

3. Features of this plugin
1. Solve the BUG that existed in many such plugins in the past that the initial money number may be incorrect in the following cases:
(1) Just enter the server to select the team
(2) When the server is refreshed
(3) When entering T or CT from the observer
(4) When you just enter the server after changing the map
2. Fixed the BUG that many of these plugins cannot get real money. In other plugins, as long as the cs_get_user_money2 function can get the player's real money
3. Solve the limit that many such plugins can increase/decrease money by no more than 8000
4. New money sending function (original)
Attached Files
File Type: sma Get Plugin or Get Source (giveoutmoney.sma - 48 views - 16.3 KB)
File Type: inc unlimited_money.inc (216 Bytes, 26 views)
File Type: zip models.zip (383.9 KB, 167 views)
731 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:19.


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