Vice City Multiplayer

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

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

Code: [Select]
  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, 05:38:09 am
You need to specify which player you want to set the location of.

If you want to drown the killer, change
Code: [Select]
vcmp.setlocation -485.562 -777.406 205.796to
Code: [Select]
vcmp.setlocation %killer -485.562 -777.406 205.796
Title: Re: Plz help my auto-drown!
Post by: Dudu on February 22, 2009, 12:20:14 pm
You need to specify which player you want to set the location of.

If you want to drown the killer, change
Code: [Select]
vcmp.setlocation -485.562 -777.406 205.796to
Code: [Select]
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, 10:35:57 am
what player do to auto drown?
Title: Re: Plz help my auto-drown!
Post by: [NoN]Toiletduck on March 20, 2009, 11:00:25 pm
The killer.