Hello, Since this command was abused in my server i decided to remove it.
Anyways, here you go.
Command:
if ($2 == rob) {
if (Police Station (Washington-Beach) isin $vcmp.area(%b)) vcmp.msg %id It wouldn't be smart to rob in this area!
elseif (!$3) vcmp.msg %id /c rob <name>
elseif (%a == -1) vcmp.msg %id No such player online!
elseif ($vcmp.distance(%id,%a) > 5) vcmp.msg %id You need to be atleast 5 meters near the person to rob him.
elseif ($vcmp.vehicle(%a,id) != 0) vcmp.msg %id You can't rob a driver.
elseif ($vcmp.cash(%a) < 50) vcmp.msg %id That guy is broke! Don't bother robbing him...
else {
vcmp.msg %id Robbing $vcmp.name(%a) $+ , please wait...
vcmp.msg %a $vcmp.name(%b) is robbing you! Get away now!
vcmp.announce %a $chr(2) $chr(2) $chr(2) $chr(2) $chr(2) ~w~ *THIEF ALERT *
.timer 1 10 vcmp.rob %a %b
}
}
Alias:
alias vcmp.rob {
if ($vcmp.distance($1,$2) > 5) {
vcmp.msg $2 You failed to rob $vcmp.name($1)
vcmp.msg $1 You succesfuly avaded from getting robbed!
}
elseif ($vcmp.cash($1) < 50) {
vcmp.msg $2 You failed to rob $vcmp.name($1)
vcmp.msg $1 You succesfuly avaded from getting robbed!
}
else {
set %c $rand(1,50)
vcmp.cash- $1 %c
vcmp.cash+ $2 %c
vcmp.msg $2 You succsesfuly robbed $vcmp.name($1) and got $ $+ %c $+ !
vcmp.msg $1 Sorry man, but you just got robbed!
}
}
Great,But this cmd is for GUS Or WSV or FBS?
I think its pretty clear its for GUS :P
i put it on my GUS0.9 but no result how i can active it ???
Depends how you put it... The alias part has to be addend near other aliases. Just put the command after /c register. That should work :)
i put it and i can't load the script ??? man can you put it on GUS and send the file on rapidshare for i can download it cuz it didn't work dude
Okay... If I must...
http://www.filefactory.com/file/ah1a080/n/vcmp_mrc
Oh Tank You good job now it work Thx,can you give me some commands of GUS0.9 ;D