
03-27-2001, 09:22 AM
|
|
Registered User
|
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
|
|
Here's a nice script for that purpose..
|
This should work, I read one of the new newfeatures.txts...
So here it goes!
Let's say it's a horse-racing script for NORMAL horses.
Make one NPC (Race Coordinator or something) like this:
if (playertouchsme && playeronhorse) {
set HorseTimerApproved;
}
Then:
if (HorseRaceApproved) {
toweapons -HorseTimer;
timereverywhere;
timeout=.1;
}
if (timeout) {
if (FxLapsRun < 3) {
this.FxTimer+=.1;
timeout=.1;
}
else {destroy;}
}
And a script to detect the laps and add to the Lap counter
if (playertouchsme) {
dontblock;
drawoverplayer;
FxLapsRun+=1;
if (FxLapsRun == 3) {
hide;
}
}
I've heard that the new server doesn't like timeouts, though... hopefully, the timeout loop will work.
There should be a way to set variables only locally. But that script should work for G2K1.
Behind the toweapons -HorseTimer info: I read the newfeatures, and it said that putting a - before the weapon name will hide it from the weapons list.
Should work. |
|
|
|