Monthly Target: $400 Donations: $348
 87% 

Players Drop Money v1.7 [UPDATED]


Post New Thread Reply   
 
Thread Tools Display Modes
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 03-24-2008 , 09:48   Re: Players Drop Money
Reply With Quote #11

Added ScreenShots too.
__________________
shine771 is offline
Havoc
Member
Join Date: Jul 2004
Old 03-24-2008 , 10:27   Re: Players Drop Money
Reply With Quote #12

Can you add more function to "Random money drop" ? Like, that I will be able to choose which RANDOM money will be drop, for example:
1. 300
2. 500
3. 700
and every time money will be dropped randomly by 1 or 2 or 3....
__________________
Havoc is offline
Send a message via ICQ to Havoc Send a message via MSN to Havoc
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 03-24-2008 , 10:32   Re: Players Drop Money
Reply With Quote #13

I will add it later.. I'm busy right now.
__________________
shine771 is offline
Arion
Senior Member
Join Date: Mar 2007
Old 03-24-2008 , 12:03   Re: Players Drop Money
Reply With Quote #14

Great job shine771!
Would you consider looking the changes I made in the code?

Basically I changed the get_cvar_ calls to their respective pcvars and used a switch instead of consecutives if-elses

I suggest you rename pdm.sma to players_drop_money.sma so admins could figure out what plugin does more easily
Attached Files
File Type: sma Get Plugin or Get Source (players_drop_money.sma - 412 views - 2.9 KB)
__________________
Arion is offline
Send a message via MSN to Arion
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 03-24-2008 , 12:10   Re: Players Drop Money
Reply With Quote #15

So basicly you just Indented my code and added Switch - you could say to use switch instead of if,else. But anyway thanks - going to edit my code and put switch instead, and of course Havoc suggestion .
__________________
shine771 is offline
Arion
Senior Member
Join Date: Mar 2007
Old 03-24-2008 , 12:12   Re: Players Drop Money
Reply With Quote #16

Don't forget that I add PCVARs, whose add performance..

I also would like to see the random money system as Havoc mentioned

(Y)
__________________
Arion is offline
Send a message via MSN to Arion
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 03-24-2008 , 12:47   Re: Players Drop Money
Reply With Quote #17

Another update.
btw: Airon - I didn't really understand what you meant with ADDED PCvars. Because they were there all the time...
__________________
shine771 is offline
Arion
Senior Member
Join Date: Mar 2007
Old 03-24-2008 , 12:55   Re: Players Drop Money
Reply With Quote #18

aRIon, not aIRon

Actually, you declared them, but didn't use them.



With the update, everything is ok (Y)

PS: I noticed a little bug: Sometimes you have to touch the money a few times to take it.
__________________
Arion is offline
Send a message via MSN to Arion
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 03-24-2008 , 13:01   Re: Players Drop Money
Reply With Quote #19

Sorry for spelling your name Wrong.
Just looked at it - and thought it was aIRon.
I have noticed that bug too... But i have no idea how to fix it. Was trying to use EngFunc_SetSize... but didn't work. Maybe someone has a suggestion how to fix that?

EDIT: LoL - i putted the size Before setting the model, and i had to change from MOVETYPE_FLY to MOVETYPE_TOSS(thanks to X-olent). Now everything is fully working. I'm thinking of adding a new drop method - random money between 2 numbers. I'll make that if this is is going to get approved(really hope so XD)
__________________

Last edited by shine771; 03-25-2008 at 12:47.
shine771 is offline
Old 03-24-2008, 18:13
fxfighter
This message has been deleted by fxfighter. Reason: nvm posted to fast he alredy tryed it
Havoc
Member
Join Date: Jul 2004
Old 03-25-2008 , 07:43   Re: Players Drop Money v1.2 [UPDATED]
Reply With Quote #20

Thanks! I love this plugin Great job, im sure it will be Approved .
__________________
Havoc is offline
Send a message via ICQ to Havoc Send a message via MSN to Havoc
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 20:20.


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