Author Topic: Bank Killing  (Read 9292 times)

0 Members and 2 Guests are viewing this topic.

Windlord

  • Guest
Re: Bank Killing
« Reply #15 on: September 14, 2008, 07:42:52 am »
Code: [Select]
31.=El Banco Corrupto Grande, Bank of Vice City
32=413.900360,111.847626,398.762024,100.878082,424.556763,69.132515,436.172058,78.987656

That's the full name
Therefore,
Code: [Select]
on *:SIGNAL:WSV.kill {
 ;WSV.say KillerID: $2 $+ , KilledID: $3 $+ , Killed/Died: $4 $+ , Wep: $5 $+ , KillerTeam: $6 $+ , Killed Team: $7
  WSV.autoremoveracer $1 $3
  hadd -m WSV.spawned $WSV.getname($3) No
  if (% [ $+ [ passenger $+ . $+ [ $WSV.name($3) ] ] ]) unset % [ $+ [ passenger $+ . $+ [ $WSV.name($3) ] ] ]
  var %killer = $WSV.getname($2),%killed = $WSV.getname($3),%spree = $hget(WSV.spree,%killer),%endspree = $hget(WSV.spree,%killed)
  echo.msg 3->  $+ $c.echoa(%killer,%killer) $+  3 $+ $4 $+   $+ $c.echoa(%killed,%killed) $+ 3 ( $+ $WSV.weaponname( $5 ) $+ ) 
  if ((Bank isin $WSV.loco($2)) && (Bank isin $WSV.loco($3))) WSV.say $WSV.warn( $2, Auto-Admin, Killing in the bank )
  elseif ($5 == 42) WSV.say $WSV.warn( $2 , Auto-Admin , Invalid Weapon )
  elseif ($5 == 39) { WSV.say $WSV.warn( $2 , Auto-Admin , Invalid Weapon ) }
  else {
    WSV.addspree $2
    WSV.endspree $2 $3
    if ($WSV.pass(%killer)) && ($WSV.loggedin(%killer)) {
      hinc WSV.kills %killer
      hinc WSV.money %killer 1000
      WSV.setcash $2 $WSV.money(%killer)
    }
    if ($WSV.pass(%killed)) && ($WSV.loggedin(%killed)) {
      hinc WSV.killed %killed
      if ($WSV.money($3) >= 250) hdec WSV.money %killed 250
      WSV.setcash $3 $WSV.money(%killed)
    }
  }
}

PS. Why don't you try searching the WSV folder next time.

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Bank Killing
« Reply #16 on: September 14, 2008, 02:30:12 pm »
Thanks again......
Now i am learning how to make script and i hope u will help me in modifying the WSV script :D
If u want or interested to help me plz PM me with your result  (Yes/No)
Now i will put efforts to modify WSV.. ;D ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline ilgabri

  • Street Thug
  • *
  • Posts: 2
    • View Profile
Re: Bank Killing
« Reply #17 on: September 15, 2008, 12:12:12 am »
I've wrote that for GUS

DOESN'T WORK (GUS 10.0)

Code: [Select]
if ((%victim != Unknown) && (%killer != Unknown)) {
vcmp.msg %killer Killed - Victim: $vcmp.name(%victim) $+ , Weapon: $vcmp.weapon.name(%weapon) $+ , Reward: $ $+ $bytes($vcmp.reward(%killer),b) $+ , Range: $vcmp.distince.rate($vcmp.distince(%killer,%victim)) $+ ( $+ $vcmp.distince(%killer,%victim) Meters) $+ , Location: $vcmp.area(%victim)
vcmp.add.kills %killer 1
if (( $vcmp.area($2) == Bank ) && ( $vcmp.area($3) == Bank ) ) {
vcmp.say $vcmp.warn( %killer, Auto-Admin, Killing in the bank )
vcmp.cash+ %victim $vcmp.reward(%victim)
} else {
vcmp.cash+ %killer $vcmp.reward(%killer)
}
}
« Last Edit: September 16, 2008, 12:52:33 am by ilgabri »

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Bank Killing
« Reply #18 on: September 15, 2008, 07:11:21 pm »
Thanks but i am not intersted in GUS i like scripting WSV... :-* :-*
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline ilgabri

  • Street Thug
  • *
  • Posts: 2
    • View Profile
Re: Bank Killing
« Reply #19 on: September 16, 2008, 12:53:58 am »
Doesn't matter... anyway the subject is generic.... were not a specific subject about WSV...