Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Daniel95 on March 10, 2009, 09:22:21 am
-
How i can add the commands:
!hunt !getall and !healall to the WSV scripts?
-
:-\ not so undrestood it but i will try..
-
Getall on FBS looks so:
elseif ($3 == getall) {
if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command.
else {
vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
var %a = 0
while (%a <= %limit) {
if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)
vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
}
!inc %a
}
}
}
I thought WSV is based on VRockers DLL, FBS is based on this too, so it should work noproblemo.
U need only to change this:
if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command.
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.
-
U need only to change this:
if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command.
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.
For what i need to change it? soory just i not undrestand in that nothing
-
U know: some commands are in only for admins. Search in the MRC file commands, that are only for admin [like kicking players]. At the start of the command will be a script like this from FBS.
Mmm, i downloaded WSV, huh....
This is the parameter:
if ($WSV.levels($4) > 1)
So it should be:
elseif ($3 == getall) {
if ($WSV.levels($4) > 1) vcmp.msg $1 $2 You need to be Admin level 2 or higher.
else {
vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
var %a = 0
while (%a <= %limit) {
if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)
vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
}
!inc %a
}
}
}
I dont know WSV very well. Maybe instead of f.e. vcmp.say u have wsv.say? U need them to rescript it ;).
-
I cant put it jsut in the scripter editor? :P ??? ::)