• Welcome to Vice City Multiplayer.
 

!lock and !unlock how do i start??

Started by thijn, June 23, 2008, 03:37:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thijn

how can i make the command !lock and !unlock??
i saw it at other servers, but i dont know how i can make this command, any examples(or whole scripts)?? ??? ???


Mattz

Heres one

alias vcmp.lockcar vcmp.command set 3 $1 4
alias vcmp.unlockcar vcmp.command set 3 $1 0


elseif ($2 == !lock) {
  vcmp.lockcar $3
}
elseif ($2 == !unlock) {
  vcmp.unlockcar $3
}




thijn

#2
it doesn't work :'( :'(
If i say !lock when im in a car/heli. it simply says my location..
Im using GUS, can someone help me??

EDIT:
screen:


Mattz

Use !lock <carid> and !unlock <carid>

thijn

it still doesn't work  :'(
when i say !lock 227 it says: Error - Absent ID/Name????
pleas can anyone help me?


szostol

Look at my command:

Quoteelseif ($2 == !lockcar) || {
    if ($vcmp.cmdcheck(!lockcar,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
    else {
      vcmp.lockdoors $3 4
      vcmp.msg %id You have just locked your vehicle

And my alias:

Quotealias vcmp.lockdoors dll rcondll.dll RconCommand set 3 $1-

TanaX01

Code Tommis Script Gus V10.0 Edit.  8)

Windlord

Erm you probably have
elseif (loc* iswm $3)
somewhere in the script.

And yes you need to add it onto the GUS script.