Vice City Multiplayer

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

Title: Auto Drown
Post by: Tamas on August 10, 2008, 02: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, 04: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, 10:14:34 AM
Also you are telling it to drown them if they ARE NOT in sunshine auto's.


if (Sunshine-Autos-Viceport-Vice-City-Mainland !isin $vcmp.playerarea(%id))


Needs to be:


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