Author Topic: help my plz drown  (Read 3373 times)

0 Members and 1 Guest are viewing this topic.

Offline [CB]CsabaBad

  • Street Thug
  • *
  • Posts: 9
    • View Profile
help my plz drown
« on: December 29, 2008, 06:27:41 pm »
hy!
in wsv  like drown commandst
 pl:!dorwn <id> <reason> and drowned player

Thx

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: help my plz drown
« Reply #1 on: December 30, 2008, 07:00:05 am »
Here use this:
Code: [Select]
elseif ($3 == drown) {
  if ($WSV.pconnected($4)) {
    if ($5) {
      if $WSV.levels($2) >= $WSV.levels($4) {
      WSV.cmdlevelcheck3 $1-
      WSV.cmdlevelcheck $1-
      WSV.setlocation $WSV.id($4) -485.562 -777.406 205.796 0
      WSV.say Admin $WSV.name($2) drowned:[ $WSV.name($4) $chr(93) Reason $chr(93):$chr(91) $5- $+ $chr(93) .
    }
    else WSV.msg $2 You can't drown someone who has higher level than you.
    }
    else WSV.msg $2 Use: $3 <Nick/ ID> <Reason>
    }
    else WSV.msg $2 Sorry:[Player not found]
}

Regards
Amenine
« Last Edit: December 30, 2008, 07:05:32 am by Amenine »

Offline [NoN]Toiletduck

  • Wiseguy
  • **
  • Posts: 65
    • View Profile
Re: help my plz drown
« Reply #2 on: December 30, 2008, 11:15:52 am »
Can you please convert that to GUS?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: help my plz drown
« Reply #3 on: December 30, 2008, 12:09:31 pm »
here you go:
Code: [Select]
elseif ($2 == !drown) {
if(%a != -1) {
if ($3) {
if ($vcmp.level(%id) >= $vcmp.levels(%a) {
if ($vcmp.cmdcheck(!drown,%id) == fail) !halt
vcmp.setlocation %a -485.562 -777.406 205.796 0
vcmp.say Admin %name drowned:[ $vcmp.name(%id) $chr(93) Reason $chr(93):$chr(91) $iif($4,$4-,None) $+ $chr(93) .
}
else vcmp.msg %id You can't drown someone who has higher level than you.
}
else vcmp.msg %id Use: $3 <Nick/ ID> <Reason>
}
else vcmp.msg %id Sorry:[Player not found]
}
NOTE: Untested ;)

Offline [NoN]Toiletduck

  • Wiseguy
  • **
  • Posts: 65
    • View Profile
Re: help my plz drown
« Reply #4 on: December 30, 2008, 02:35:42 pm »
Thanks!

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: help my plz drown
« Reply #5 on: December 30, 2008, 04:12:43 pm »
sorry,
Code: [Select]
else vcmp.msg %id Use: $3 <Nick/ ID> <Reason>
has to be
Code: [Select]
else vcmp.msg %id Use: $2 <Nick/ ID> <Reason>

and
Code: [Select]
if ($vcmp.level(%id) >= $vcmp.levels(%a) {
has to be
Code: [Select]
if ($vcmp.level(%id) >= $vcmp.level(%a) {