Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - youlikethaaaat

Pages: [1]
1
mIRC/pawn Scripting / Re: [help]Can some1 give Spidometer code?
« on: February 06, 2009, 02:19:39 pm »
U mean like in NoN :o
lol.. =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

2
mIRC/pawn Scripting / Re: Gus (Markers)
« on: December 20, 2008, 04:16:31 am »
Code: [Select]
alias vcmp.destination.addall {
  var %a = 1, %b = 1
  %t = $vcmp.readini(vcmp.destinations.ini,TOTALL,TOTALL)
  while (%a <= %t) {
    if ($vcmp.readini(vcmp.destinations.ini,%a,STATUS) == 1) {
      var %loc =  $vcmp.readini(vcmp.destinations.ini,%a,x) $vcmp.readini(vcmp.destinations.ini,%a,y) $vcmp.readini(vcmp.destinations.ini,%a,z)
      if ($1 == pickups) .timer -m 1 %b vcmp.newpickup 56 %loc
      else .timer -m 1 %b vcmp.setdestination $vcmp.readini(vcmp.destinations.ini,%a,ID) %loc
      %b = %b + 50
    }
    !inc %a
  }
}
from old rm scripts... stored in vcmp.destinations.ini with same syntax as gus vcmp.pickups.ini...

if you call the alias with pickups after... (vcmp.destination.addall pickups) it creates invisable pickups with id 56... so you can detect using scripts....

heres the old detection identifier:
Code: [Select]
alias vcmp.getdestination {
  var %id = $1
  var %a = 1, %b = 1
  %t = $vcmp.readini(vcmp.destinations.ini,TOTALL,TOTALL)
  while (%a <= %t) {
    if ($vcmp.readini(vcmp.destinations.ini,%a,STATUS) == 1) {
      var %x =  $vcmp.readini(vcmp.destinations.ini,%a,x)
      var %y = $vcmp.readini(vcmp.destinations.ini,%a,y)
      var %z = $vcmp.readini(vcmp.destinations.ini,%a,z)
      if ($inellipse($vcmp.location(%id,x),$vcmp.location(%id,y),$calc(%x - 5),$calc(%y - 5) ,10,10)) return %a
      %b = %b + 50
    }
    !inc %a
  }
  return unknown
}


and you would need to make scripts create the markers when players join...

heres the ini file i used to use: http://grandkillers.uberaaz.com/filez/vcmp.destinations.ini

3
mIRC/pawn Scripting / Re: New SCRIPT By JoJo_boy
« on: December 17, 2008, 02:39:50 am »
ye.... is just a mod of gus 9.0...
all the visable messages to players saying tommis scripted it have been removed....
i've ran it through some file comparision software and heres a massive 1409px ? 3169px image of all the things he's changed: http://grandkillers.uberaaz.com/filez/kdiff.PNG

4
Vice City / Re: edit controls with a text editor?
« on: September 16, 2008, 06:24:19 pm »
you could use something to make hotkeys such as autohotkey http://autohotkey.com...

heres a quick autohotkey script to make the alt key behave same as Rctrl only while game is active:

Code: [Select]
#IfWinActive, GTA: Vice City
Alt::RCtrl

Pages: [1]