• Welcome to Vice City Multiplayer.
 

/c rob command

Started by Skirmant, August 09, 2009, 02:42:30 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Skirmant

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!
}
}

I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Tobi

Great,But this cmd is for GUS Or WSV or FBS?

thanks to Darky for the awesome Siggy xD
Ashley: HEY HOMOZ I POSTED THIS RATHER RELIVENT AND IMPORTANT THREAD LIKE ALMOST 4 DAYS AGO AN I SEE 18 VIEWS BUT ONLY ONE RESPONCE HOW MANY OF U ARE BRICK WALLS BC IT FEELS LIKE IM TALKING TO ONE

Skirmant

I think its pretty clear its for GUS  :P
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Tobi

i put it on my GUS0.9 but no result how i can active it ???

thanks to Darky for the awesome Siggy xD
Ashley: HEY HOMOZ I POSTED THIS RATHER RELIVENT AND IMPORTANT THREAD LIKE ALMOST 4 DAYS AGO AN I SEE 18 VIEWS BUT ONLY ONE RESPONCE HOW MANY OF U ARE BRICK WALLS BC IT FEELS LIKE IM TALKING TO ONE

Skirmant

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 know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Tobi

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

thanks to Darky for the awesome Siggy xD
Ashley: HEY HOMOZ I POSTED THIS RATHER RELIVENT AND IMPORTANT THREAD LIKE ALMOST 4 DAYS AGO AN I SEE 18 VIEWS BUT ONLY ONE RESPONCE HOW MANY OF U ARE BRICK WALLS BC IT FEELS LIKE IM TALKING TO ONE

Skirmant

I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Tobi

Oh Tank You good job now it work Thx,can you give me some commands of GUS0.9 ;D

thanks to Darky for the awesome Siggy xD
Ashley: HEY HOMOZ I POSTED THIS RATHER RELIVENT AND IMPORTANT THREAD LIKE ALMOST 4 DAYS AGO AN I SEE 18 VIEWS BUT ONLY ONE RESPONCE HOW MANY OF U ARE BRICK WALLS BC IT FEELS LIKE IM TALKING TO ONE