• Welcome to Vice City Multiplayer.
 

WSV script... (help)

Started by Knucis, September 24, 2008, 06:49:10 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Knucis

Can somebody show me a Command for WSV like !addcmd <!cmd> <text> Please?

Im glad if you help :)

Punjabi

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
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

#2
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
}

Knucis

Thanks :) You are the best scripter ever!

Windlord

Oops I made a mistake >_<

I have editted my original post.

Sorry

gamyster

:( 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 // 
  }
Founder of [SAF]Clan

gamyster

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%
Founder of [SAF]Clan

Windlord

#7
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"

gamyster

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 // 
  }
Founder of [SAF]Clan

Tamas

I tryed that prop respawning thing its work fine so..  :P

Punjabi

GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

addcmd not working  :(

still says invalid command!

any other solution?  ::)