Author Topic: Auto Drown  (Read 4324 times)

0 Members and 1 Guest are viewing this topic.

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Auto Drown
« 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?

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Auto Drown
« Reply #1 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.

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Auto Drown
« Reply #2 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))

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Auto Drown
« Reply #3 on: August 10, 2008, 05:22:30 pm »
Oh yea I didn't notice that XD ::)

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Auto Drown
« Reply #4 on: August 10, 2008, 05:27:17 pm »
Ohh thanks!
Its finally works fine  ;)