Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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 :)
-
There is already a command called;
!setwep <Nick/ID> <WepName/ID> <Ammo>
Cheers
-
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
-
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 ;)
-
thanks Windlord and is t possible to get a saveloc??? or a gotoloc which works
cheers :)
Looking 4 answers still
-
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.
-
Hey Windlord thanks i really want this saveloc and gotoloc ;D
Thanks vry much
-
saveloc and gotoloc not working, says invalid command!
any tested and working one for wsv0.3 ???
-
It will work u just have to place then at right place...aah i prefer to paste it under ur !aspirine command.. 8) ;D
-
That script working fine, anyway try this if "not":
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