Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Dudu on February 21, 2009, 09:06:37 PM

Title: Plz help my auto-drown!
Post by: Dudu on February 21, 2009, 09:06:37 PM
This is not work: PLS help me!


  if ((%victim != Unknown) && (%killer != Unknown)) {
    vcmp.msg %killer Killed - Victim: $vcmp.name(%victim) $+ , Weapon: $vcmp.weapon.name(%weapon) $+ , Location: $vcmp.area(%victim)
    vcmp.add.kills %killer 1
    vcmp.setlocation -485.562 -777.406 205.796
    vcmp.say Auto Drowned Player
  }


Based on Gus9.0
Title: Re: Plz help my auto-drown!
Post by: Mex on February 22, 2009, 03:38:09 AM
You need to specify which player you want to set the location of.

If you want to drown the killer, change
vcmp.setlocation -485.562 -777.406 205.796
to
vcmp.setlocation %killer -485.562 -777.406 205.796
Title: Re: Plz help my auto-drown!
Post by: Dudu on February 22, 2009, 10:20:14 AM
Quote from: Mex on February 22, 2009, 03:38:09 AM
You need to specify which player you want to set the location of.

If you want to drown the killer, change
vcmp.setlocation -485.562 -777.406 205.796
to
vcmp.setlocation %killer -485.562 -777.406 205.796

Thx! This work!
Picture:
(http://www.dudu1994.extra.hu/vc-mp-185.jpg)
Luukang: Thx the test.
Title: Re: Plz help my auto-drown!
Post by: ZJY on March 03, 2009, 08:35:57 AM
what player do to auto drown?
Title: Re: Plz help my auto-drown!
Post by: [NoN]Toiletduck on March 20, 2009, 09:00:25 PM
The killer.