• Welcome to Vice City Multiplayer.
 

Auto Drown

Started by Tamas, August 10, 2008, 01:54:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tamas

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?

ReVilo

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.

Force

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))

ReVilo

Oh yea I didn't notice that XD ::)

Tamas

Ohh thanks!
Its finally works fine  ;)