Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Buying weapons via health

Author
Message
Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 3rd Jan 2011 18:47
Hi! Some of you saw my thread where I asked help for this but I solved it myself. Okay, so this script is set to a weapon's main script, and when player gets enough close, a text appears and says "Press ENTER to buy M9 for 20 health".

The name must be written invidually (making fpi files, every on their own).

To change the health cost, change the text's 20 and plrhealthgreater=20 and plraddhealth=-20 (at the fourth line).
To change the range where it can be bought change plrdistwithin=40 of 3, 4 and 5 lines but don't forget to change plrdistfurther=65 to health cost + 20.

This works on 1.17, I haven't tested other versions.
---
This can be changed to use any entity, not only weapon.
For doors, you can use this:


Thanks,
TP
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 12th Apr 2011 18:36
possible to get the weapon one by any chance?
Kravenwolf
15
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 12th Apr 2011 20:17
Quote: "possible to get the weapon one by any chance? "


Erm, and maybe a thank you why we're at it before asking for more?

Kravenwolf

Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 12th Apr 2011 20:48
Oh, sorry! I think that I have removed the script in accident, so here it is:


Thanks for noticing this.

Thanks,
TP
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 12th Apr 2011 21:35
Thank you so very much. Does it work with the beta of V1.18 by any chance?
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 12th Apr 2011 22:56
Quote: "Thank you so very much. Does it work with the beta of V1.18 by any chance? "


I don't see a reason why it wouldn't.
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 13th Apr 2011 09:46
jt doesn't work, ive been messing with the script and i just couldn't figure out why it doesn't display the text and why you can't even pick it up

Login to post a reply

Server time is: 2024-11-24 08:38:08
Your offset time is: 2024-11-24 08:38:08