View Full Version : Big question.
5th Jul 2001, 04:24 AM
How can I write in UScript that IF the player(any player in the game) is standing in a certian radius for 10 minutes, something happens(nevermind what). Please help me.:(
5th Jul 2001, 04:37 AM
I once heard a story about a wise old man who had written a mutator called Anti-Camper which would fry the arse, to put it delicately, out of anyone who stood still for more than a minute, or 30 seconds if they had the sniper rifle equipped. I supposed you could look at the code for that mod.
5th Jul 2001, 04:54 AM
No, i'm trying to do something else.
I'm trying to do, that if a person holds a Sniper Rifle in a certian radius for 10 minutes, than take his Sniper Rifle and don't let him take it again.
6th Jul 2001, 02:44 AM
It may go something like this
Call this function every 30 sec (but check if they've got the sniper rifle first)
Check there location in the map
Store the location in a temporary variable
If the players location is the same as before add one to a counter
when the counter equals 20 (2 calls every minute, thus giving you 10 minutes) remove the sniper rifle from their inventory, and flag a variable such as 'bIsCamper'
Although everytime they pickup a sniper rifle you must validate whether or not they are a camper.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.