Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Tamas on August 10, 2008, 03:54:36 am

Title: Auto Drown
Post by: Tamas on August 10, 2008, 03:54:36 am
I writed a little script to auto drown a player who kill at Sunshine but its not work:

Code:
Quote
  }
      if (Sunshine-Autos-Viceport-Vice-City-Mainland !isin $vcmp.playerarea(%id)) {
      vcmp.adminchat Admin auto drowned player: $+ $chr(91) %id $chr(93) Reason: $+ $chr(91) Killing at Sunshine-Autos $chr(93)
        vcmp.setloc %id -761.1595 -340.6097 9.9061

I puted that under vcmp.event.kill but its didnt do anything when somebody kill there.
Any idea?
Title: Re: Auto Drown
Post by: ReVilo on August 10, 2008, 05:22:20 am
Replace %id with %idk.
I think that should work, i dont have a copy of sansan on this computer, but I think that should work.
Title: Re: Auto Drown
Post by: Force on August 10, 2008, 11:14:34 am
Also you are telling it to drown them if they ARE NOT in sunshine auto's.

Code: [Select]
if (Sunshine-Autos-Viceport-Vice-City-Mainland !isin $vcmp.playerarea(%id))

Needs to be:

Code: [Select]
if (Sunshine-Autos isin $vcmp.playerarea(%idk))
Title: Re: Auto Drown
Post by: ReVilo on August 10, 2008, 05:22:30 pm
Oh yea I didn't notice that XD ::)
Title: Re: Auto Drown
Post by: Tamas on August 10, 2008, 05:27:17 pm
Ohh thanks!
Its finally works fine  ;)