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 / Take Weapon after ente a Code

Author
Message
maxiqueen123
15
Years of Service
User Offline
Joined: 26th May 2009
Location:
Posted: 7th Oct 2010 20:11
can anyone make me a script will take a weapon but to take i must have a code and when i enter the code i have the weapon and can shoot my code is wrong





Your signature has been erased by a mod - Please reduce it to 600x120 maximum size.
anayar
15
Years of Service
User Offline
Joined: 19th Aug 2009
Location: Minneapolis, MN
Posted: 7th Oct 2010 20:16
Quote: "scancodekeypressed=4D"

4D?? Whats 4D? I think you mean 40.. that might be one of the problems... also do you have a time limit in which the player has to enter the code? Also Im sure you can shorten that script up a lot... Not sure how, im sure Ply or Conjured will stop in here though ;0

Cheers,
Anayar


For KeithC
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 7th Oct 2010 22:57
You obviously used one of my AGSP scripts as a base but unfortunately it's not that easy to edit it for your purposes.

My approach would be to see the weapon as a door and the code as a key. If the player has the right key, he may unlock (=take) the weapon, otherwise it stays locked (=in its rack)

In case you find my grammar and spelling weird ---> native German speaker ^^
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Oct 2010 23:47
For the most part, your script looks to be fine, just make the correction that anayar pointed out.


The one and only,


Login to post a reply

Server time is: 2024-11-24 19:38:05
Your offset time is: 2024-11-24 19:38:05