Author Topic: !mycars  (Read 2670 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis2500

  • Wiseguy
  • **
  • Posts: 63
  • The Joker
    • View Profile
    • Grand VCMP Server
!mycars
« on: June 20, 2008, 03:51:59 am »
hello  ;D
does this works on GUS

Quote
ALIAS COMMAND
-------------------------------------------


alias vcmp.carownerid {
  var %a = $ini(vcmp.cars.ini,0),%b
  while (%a > 0) {
    if ($readini(vcmp.cars.ini, $ini(vcmp.cars.ini,%a), owner) == $1) {
      if (%b == $null) %b =  $ini(vcmp.cars.ini,%a)
      else %b = %b - $ini(vcmp.cars.ini,%a)
    }
    !dec %a
  }
  !return %b
}




COMMAND ITSELF
-------------------------------------------

if ($2 == !mycars) {
  var %a = $vcmp.carownerid($1)
  if (%a == $null) vcmp.msg $vcmp.getid($1) You have no vehicle
  else {
    vcmp.msg $vcmp.getid($1) Your vehicle ID is %a
  }
}


of i need to change only this?
Quote
if ($2 == !mycars) {
to
Quote
elseif ($2 == !mycars) {


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: !mycars
« Reply #1 on: June 20, 2008, 04:17:47 am »
hey nemesis change To Sasan Is Pro  8)