Raised This Month: $ Target: $400
 0% 

[REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)


Post New Thread Reply   
 
Thread Tools Display Modes
qwern
Member
Join Date: Jun 2010
Old 06-20-2010 , 16:10   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #21

Okay thanks.

but what I have tried is when you type "kill" in console, you will also get money.
So I was wondering if its possible that if you type "kill" in console, you cash amount will be set to "0" ?

And if you get killed be a player?

(Because the money is to buy weapons for to kill other players. So if a player gets killed by another player, he should not get money..)

Last edited by qwern; 06-20-2010 at 16:14.
qwern is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-20-2010 , 17:53   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #22

You'll have to test this one, I'm not sure it'll work as I don't think I wrote the enum correctly... If it doesn't work I'll setup a dedicated server and install rally so you don't keep getting broken things =D.
Attached Files
File Type: sp Get Plugin or Get Source (sm_rrcash.sp - 241 views - 3.5 KB)
__________________
thetwistedpanda is offline
qwern
Member
Join Date: Jun 2010
Old 06-21-2010 , 07:40   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #23

Okay, I have just tried the script out But its not working perfectly ..

Well this is whats happens:

When you race and type "kill" in console, the first time. You will loose -500 dollars.
And then you will have 300 left?

When i typed "kill" in console again, I didnt loose any money or got any money..
I just had the same amount of 300 dollars.

And when I have finished the race, i got 217 in cash, so i lost: 83 dollars
(The startmoney on 800 is back again)

- Hopefully you can fix this .. Else will i just block "kill" in console
Thank you so much for taking you time on this.

This is my error log:
L 06/21/2010 - 12:29:50: SourceMod error session started
L 06/21/2010 - 12:29:50: Info (map "race_derby_v1") (file "errors_20100621.log")
L 06/21/2010 - 12:29:50: [SM] Native "RemoveEdict" reported: Edict 80 (80) is not a valid edict
L 06/21/2010 - 12:29:50: [SM] Displaying call stack trace for plugin "rallyrace.smx":
L 06/21/2010 - 12:29:50: [SM] [0] Line 932, rallyrace.sp:isintegrate()
L 06/21/2010 - 12:29:50: [SM] [1] Line 275, rallyrace.sp::Ev_player_death()
qwern is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-21-2010 , 12:41   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #24

The error you provided me is directly related to Rally Racing unfortunately, that doesn't have anything to do with the plug-in I'm writing. And the only solution to your problem as far as money goes, as I was trying to do earlier, is the plug-in has to completely handle all money for the player. I'm hoping by setting it on player_spawn that it'll override any money you'll get from killing players, suiciding, mp_startmoney, so on so forth.
Attached Files
File Type: sp Get Plugin or Get Source (sm_rrcash.sp - 233 views - 3.9 KB)
__________________
thetwistedpanda is offline
qwern
Member
Join Date: Jun 2010
Old 06-21-2010 , 13:05   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #25

okay, thanks. I will try it out ;)
qwern is offline
qwern
Member
Join Date: Jun 2010
Old 06-21-2010 , 13:14   Re: [REQ - CS:S] Give 180 in cash to CT every round. (needed script -> PLEASE HELP)
Reply With Quote #26

Well..
You will loose your money if you type "kill" in console.

The only problem I can see is, that your money dont get saved..
If you have finished one race and get 150 dollars.
And then go to another race, your money will be reset

Last edited by qwern; 06-21-2010 at 13:19.
qwern 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 23:01.


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