1
mIRC/pawn Scripting / Re: [help]Can some1 give Spidometer code?
« on: February 06, 2009, 02:19:39 pm »U mean like in NoNlol.. =RM= done it originally, justy we give the user the choice to have it on and what unit to use with the !speedo command
dont know why NoN copy my scripts -_-
heres how we've done it:
1) have a timer launching a while loop every second
2) the while loop calculates the distance between the current loc and the loc from previous loop
3) the loc is in mps, so we use a few basic formulas to convert to things such as mp/h and kmph
4) does an announcement to each player if they have it enabled, using the unit they have chose (mps/mph/kmph)
4) then stores the loc