Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Knucis on September 24, 2008, 07:49:10 pm
-
Can somebody show me a Command for WSV like !addcmd <!cmd> <text> Please?
Im glad if you help :)
-
Which type of command u want to edit
If something like this
!help
Ply type !commands for more help..
Than i can help u...
Regards Punjabi_goli
-
Under
;----------------------
;-- In-Game Commands --
;----------------------
on *:signal:WSV.commands: {
add
var %addedcmd = $readini(addedcmd.ini,cmd,$3)
Anywhere between all of the other commands,
add
elseif ($3 == addcmd) {
WSV.cmdlevelcheck $1-
if ($5) {
writeini -n addedcmd.ini cmd $4 $5-
WSV.msg $2 Added Command, $4 with details, $5-
}
else WSV.msg $2 Format: !addcmd <cmdname> <details>
}
near to the end of the script...
above
elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}
add
elseif (%addedcmd) WSV.say >> %addedcmd
so that it becomes,
...
...
elseif (propspawn* iswm $3) WSV.propspawn $1-
elseif (gotoprop* iswm $3) WSV.gotoprop $1-
elseif ($2 < 100) WSV.msg $2 Invalid Command
}
elseif (%addedcmd) WSV.say >> %addedcmd
elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}
-
Thanks :) You are the best scripter ever!
-
Oops I made a mistake >_<
I have editted my original post.
Sorry
-
:( the addcmd works but there is no addcmd.ini file and when i type !addcmd !vc vice city and then i type !vc it says invalid Cmd
;----------------------
;-- In-Game Commands --
;----------------------
on *:signal:WSV.commands: {
var %addedcmd = $readini(addedcmd.ini,cmd,$3)
WSV.say $WSV.mutekick($2)
if (script* iswm $3) {
WSV.say // $WSV.version %scriptinfo //
WSV.say // Total: $lines(" $+ $scriptdir $+ WSV.mrc $+ ") lines //
}
-
in WSV there also no !IP script :( and Prop script in which it shows PROP PICKUPS only one time and after starting MIRC next time they wont come 100%
-
You're meant to do !addcmd vc Vice-City.
Without the !
And yes there is not !ip script in WSV.
You can easily add one though.
elseif ($3 == ip) {
WSV.cmdlevelcheck $1-
if ($4) WSV.msg $2 $+($4,',s) IP address: $iif($iif($readini(" $+ $scriptdirIPs.ini",IP-logs,$4),$v1,$readini(" $+ $scriptdirIPs.ini",IP-logs,$WSV.name($4))),$v1,Unknown)
else WSV.msg $2 Format: !ip <nick>
}
PS.
Prop pickups are respawned by the server.
So they take long to re-spawn. Just be patient.
If you want them to re-spawn automatically,
change
on *:SIGNAL:WSV.pickuphit: {
if ($4 == 406) || ($4 == 407) { WSV.propinfo $2 $3 }
elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}
to
on *:SIGNAL:WSV.pickuphit: {
if ($4 == 406) || ($4 == 407) { WSV.respawnpickup $3 | WSV.propinfo $2 $3 }
elseif ($4 == 382) { WSV.respawnpickup $3 | WSV.endrace $1- }
else { WSV.msg $2 Pickup ID: $3 $+ , Pickup Type: $4 }
}
PPS.
If you want the addedcmd.ini to appear in your WSV v0.3 folder,
change the
addedcmd.ini
to
" $+ $scriptdirAddedcmd.ini"
-
No Effect Of Prop :( and that !addcmd also
;----------------------
;-- In-Game Commands --
;----------------------
on *:signal:WSV.commands: {
var %addedcmd = $readini("$+ $scriptdirAddedcmd.ini",cmd,$3)
WSV.say $WSV.mutekick($2)
if (script* iswm $3) {
WSV.say // $WSV.version %scriptinfo //
WSV.say // Total: $lines(" $+ $scriptdir $+ WSV.mrc $+ ") lines //
}
-
I tryed that prop respawning thing its work fine so.. :P
-
Yes it works fine..... ;D
-
addcmd not working :(
still says invalid command!
any other solution? ::)