Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Script Showroom => Topic started by: Skirmant on August 09, 2009, 03:42:30 PM

Title: /c rob command
Post by: Skirmant on August 09, 2009, 03:42:30 PM
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!
}
}

Title: Re: /c rob command
Post by: Tobi on August 10, 2009, 12:30:00 AM
Great,But this cmd is for GUS Or WSV or FBS?
Title: Re: /c rob command
Post by: Skirmant on August 10, 2009, 05:17:44 PM
I think its pretty clear its for GUS  :P
Title: Re: /c rob command
Post by: Tobi on August 10, 2009, 06:56:28 PM
i put it on my GUS0.9 but no result how i can active it ???
Title: Re: /c rob command
Post by: Skirmant on August 11, 2009, 08:29:46 AM
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 :)
Title: Re: /c rob command
Post by: Tobi on August 11, 2009, 10:53:33 PM
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
Title: Re: /c rob command
Post by: Skirmant on August 12, 2009, 10:27:51 AM
Okay... If I must...

http://www.filefactory.com/file/ah1a080/n/vcmp_mrc
Title: Re: /c rob command
Post by: Tobi on August 12, 2009, 06:02:56 PM
Oh Tank You good job now it work Thx,can you give me some commands of GUS0.9 ;D