• Welcome to Vice City Multiplayer.
 

WSV Cmds

Started by Jkownz, August 27, 2008, 10:59:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jkownz

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 :)

Windlord

There is already a command called;

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

Cheers

Jkownz

thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)

TanaX01

Quote from: Windlord on August 27, 2008, 01:26:29 PM
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  ;)

Jkownz

Quote from: Jkownz on August 28, 2008, 12:53:04 AM
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
Looking 4 answers still

Windlord


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.

Punjabi

Hey Windlord thanks i really want this saveloc and gotoloc ;D
Thanks vry much
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

saveloc and gotoloc not working, says invalid command!

any tested and working one for wsv0.3 ???

Punjabi

It will work u just have to place then at right place...aah i prefer to paste it under ur !aspirine command.. 8) ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Tamas

That script working fine, anyway try this if "not":

Quoteelseif ($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