Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Jkownz on August 27, 2008, 11:59:30 am

Title: WSV Cmds
Post by: Jkownz on August 27, 2008, 11:59:30 am
hi I was wandering if someone could help me with a cmd to set a weapon like !setwep <wep id> <nickname> or !givewep <wep id> <nickname>
ok thanks bye :)
Title: Re: WSV Cmds
Post by: Windlord on August 27, 2008, 02:26:29 pm
There is already a command called;

!setwep <Nick/ID> <WepName/ID> <Ammo>

Cheers
Title: Re: WSV Cmds
Post by: Jkownz on August 28, 2008, 01:53:04 am
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
Title: Re: WSV Cmds
Post by: TanaX01 on August 28, 2008, 06:59:47 am
There is already a command called;

!setwep <Nick/ID> <WepName/ID> <Ammo>

Cheers

or you confing.ini use password admin join in game use: /setwep id weaon and id user  ;)
Title: Re: WSV Cmds
Post by: Jkownz on August 28, 2008, 10:30:47 am
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
Looking 4 answers still
Title: Re: WSV Cmds
Post by: Windlord on August 28, 2008, 01:30:33 pm
Code: [Select]
elseif ($3 == saveloc) {
  WSV.cmdlevelcheck $1-
  if ($4) {
    writeini -n " $+ $scriptdirSavedLocs.ini" SavedLocs $4 $WSV.location($2)
    WSV.say New Location saved by $WSV.name($2) at $4
  }
  else WSV.msg $2 Please type a name after !saveloc
}
elseif ($3 == gotoloc) {
  WSV.cmdlevelcheck $1-
  if ($readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)) {
    WSV.setlocation $2 $readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)
    WSV.msg $2 Taking you to $4
  }
  else WSV.msg $2 Invalid Location
}
Note: Untested but should work.
Title: Re: WSV Cmds
Post by: Punjabi on August 29, 2008, 10:07:59 am
Hey Windlord thanks i really want this saveloc and gotoloc ;D
Thanks vry much
Title: Re: WSV Cmds
Post by: evil_night13 on October 15, 2008, 09:09:56 pm
saveloc and gotoloc not working, says invalid command!

any tested and working one for wsv0.3 ???
Title: Re: WSV Cmds
Post by: Punjabi on October 20, 2008, 12:41:37 pm
It will work u just have to place then at right place...aah i prefer to paste it under ur !aspirine command.. 8) ;D
Title: Re: WSV Cmds
Post by: Tamas on October 24, 2008, 06:12:56 pm
That script working fine, anyway try this if "not":

Quote
elseif ($3 == saveloc) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($4) {
if (!$hget(WSV.Savedlocks,$4)) {
hadd WSV.Savedlocks $4 $calc($WSV.location($2).x) $calc($WSV.location($2).y) $calc($WSV.location($2).z)
WSV.msg $2 Location saved sucessfully! Name: $chr(91) $4 $chr(93)
WSV.msg $2 Coord: $calc($WSV.location($2).x) $calc($WSV.location($2).y) $calc($WSV.location($2).z)
}
else WSV.msg $2 Error: This location name is allready saved!
}
else WSV.msg $2 Syntax: /c saveloc <locname>
}
elseif ($3 == gotoloc) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($4) {
if ($hget(WSV.Savedlocks,$4)) {
WSV.setlocation $2 $WSV.savedloc($4)
WSV.say Teleporting: $WSV.name($2) To: $chr(91) $4 $chr(93)
WSV.msg $2 Location: $WSV.savedloc($4)
}
else WSV.msg $2 Error: This location name is not on the saved list.
}
else WSV.msg $2 Syntax: /c gotoloc <locname>
}

Hash indentifiers:

loadhash WSV.Savedlocks
whsave WSV.Savedlocks
!hfree WSV.Savedlocks