Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Knucis on September 24, 2008, 06:49:10 PM

Title: WSV script... (help)
Post by: Knucis on September 24, 2008, 06:49:10 PM
Can somebody show me a Command for WSV like !addcmd <!cmd> <text> Please?

Im glad if you help :)
Title: Re: WSV script... (help)
Post by: Punjabi on September 26, 2008, 11:59:18 AM
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
Title: Re: WSV script... (help)
Post by: Windlord on September 26, 2008, 01:32:04 PM
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
}
Title: Re: WSV script... (help)
Post by: Knucis on September 26, 2008, 03:28:17 PM
Thanks :) You are the best scripter ever!
Title: Re: WSV script... (help)
Post by: Windlord on September 27, 2008, 06:10:29 AM
Oops I made a mistake >_<

I have editted my original post.

Sorry
Title: Re: WSV script... (help)
Post by: gamyster on September 28, 2008, 05:22:38 AM
:( 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 // 
  }
Title: Re: WSV script... (help)
Post by: gamyster on September 28, 2008, 05:28:30 AM
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%
Title: Re: WSV script... (help)
Post by: Windlord on September 28, 2008, 05:44:07 AM
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"
Title: Re: WSV script... (help)
Post by: gamyster on September 28, 2008, 07:57:01 AM
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 // 
  }
Title: Re: WSV script... (help)
Post by: Tamas on September 28, 2008, 11:18:24 AM
I tryed that prop respawning thing its work fine so..  :P
Title: Re: WSV script... (help)
Post by: Punjabi on October 02, 2008, 08:39:32 AM
Yes it works fine..... ;D
Title: Re: WSV script... (help)
Post by: evil_night13 on October 15, 2008, 05:39:52 PM
addcmd not working  :(

still says invalid command!

any other solution?  ::)