• Welcome to Vice City Multiplayer.
 

!mycars

Started by Nemesis2500, June 20, 2008, 01:51:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nemesis2500

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?
Quoteif ($2 == !mycars) {
to
Quoteelseif ($2 == !mycars) {


TanaX01

hey nemesis change To Sasan Is Pro  8)