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 / Script problem arming bomb

Author
Message
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 1st Dec 2009 13:46 Edited at: 1st Dec 2009 14:09
Hello, i am having a little trouble with a script.
I am trying to create a script where you can plant a "bomb", the bomb planting itself is around 7.5 seconds where the player will be disabled to use any keys on keyboard. This is where the wierd thing happends!




The scancodekeypressed action dosent seem to be right, ive read that 33 is equal to "F" but when i press f nothing happends. So i thought to myself well maybe i read wrong? So i tried every key on the keyboard turns out it was the "I" Key that did somthing. Instead of disableing the player,

it gave the player "9999" in life and a massive lag happend wich i was quite suprised by! Anyone know if i wrote the code wrong or somthing? Still its kind of wierd, i dont have a "addhealth" command anywhere in the script....

Any help is apriceted.


EDIT: I HAVE FIXED MY SCRIPT, THERE WAS A MISSPELL WITHIN THE SCRIPT,ANYWAY WHEN I PRESS "I" KEY THE PLAYERS LIFE GETS MAXED OUT AGIAN!


-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
locomad
17
Years of Service
User Offline
Joined: 14th Feb 2007
Location: 2fort
Posted: 1st Dec 2009 18:51
his health maxies out for a reason, if you press tab, it brings up the debug controls.
and at the bottom it shows you some controls, and it says I gives you superhealth, so stay away from that letter and others mentioned.
I would recommend using P.

GET 2 DA CHOPPA!!!!!!!!!
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 1st Dec 2009 19:55
Thanks for answering....
Will it do the same in a real compiled exe game to?
So if i change to another like "e" or enter or somthing it will stop giving me health if i press "i"?





-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Dec 2009 05:16
The debug controls (such as "i" for 9999 health) are not enabled in a built game, they are only active in test game.


The one and only,


The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 5th Dec 2009 14:36
Thanks plystire for the answer





-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...

Login to post a reply

Server time is: 2024-11-25 05:32:30
Your offset time is: 2024-11-25 05:32:30