Vice City Multiplayer

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

Title: WSV script... (help)
Post 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 :)
Title: Re: WSV script... (help)
Post by: Punjabi on September 26, 2008, 12:59:18 pm
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, 02:32:04 pm
Under
Code: [Select]
;----------------------
;-- In-Game Commands --
;----------------------

on *:signal:WSV.commands: {
add
Code: [Select]
var %addedcmd = $readini(addedcmd.ini,cmd,$3)

Anywhere between all of the other commands,
add
Code: [Select]
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
Code: [Select]
  elseif ($2 < 100) WSV.msg $2 Invalid/Login-Only Command
}
add
Code: [Select]
  elseif (%addedcmd) WSV.say >> %addedcmd

so that it becomes,
Code: [Select]
    ...
    ...
    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, 04:28:17 pm
Thanks :) You are the best scripter ever!
Title: Re: WSV script... (help)
Post by: Windlord on September 27, 2008, 07: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, 06: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, 06: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, 06: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.

Code: [Select]
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
Code: [Select]
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
Code: [Select]
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
Code: [Select]
addedcmd.inito
Code: [Select]
" $+ $scriptdirAddedcmd.ini"
Title: Re: WSV script... (help)
Post by: gamyster on September 28, 2008, 08: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, 12:18:24 pm
I tryed that prop respawning thing its work fine so..  :P
Title: Re: WSV script... (help)
Post by: Punjabi on October 02, 2008, 09:39:32 am
Yes it works fine..... ;D
Title: Re: WSV script... (help)
Post by: evil_night13 on October 15, 2008, 06:39:52 pm
addcmd not working  :(

still says invalid command!

any other solution?  ::)