• Welcome to Vice City Multiplayer.
 

help my plz drown

Started by [CB]CsabaBad, December 29, 2008, 04:27:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[CB]CsabaBad

hy!
in wsv  like drown commandst
pl:!dorwn <id> <reason> and drowned player

Thx

Amenine

#1
Here use this:
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

[NoN]Toiletduck

Can you please convert that to GUS?

thijn

here you go:

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



thijn

sorry,

else vcmp.msg %id Use: $3 <Nick/ ID> <Reason>

has to be

else vcmp.msg %id Use: $2 <Nick/ ID> <Reason>



and

if ($vcmp.level(%id) >= $vcmp.levels(%a) {

has to be

if ($vcmp.level(%id) >= $vcmp.level(%a) {