• Welcome to Vice City Multiplayer.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - RPM_Ranger

#1
Quote from: Skirmant on January 16, 2010, 11:28:55 PM
The big letters are really annoying, and I think the topic is in the wrong section.
Whats the problem? It works the same way as 0.3z server does.

I tried to do it like that but i dont know what was the problem, i got to the mirc all setup FBS scripts connecting, then nothing! i had the vcmpsrv.exe thing running but still nothing
#2
I did it before with 0.3z but im having a problem doing it with r2, can someone make a step by step with links on how to, it would be a great help, please and thank you!
#3
Quote from: ricardo on January 16, 2010, 09:13:00 PM
Quote from: ricardo on January 15, 2010, 09:49:31 PM
sorry. can anyone help me with this?

i can add commands, how to remove using this way



alias test {
  ; Commands to add (separated by space)
  var %strCmds = !buycar=1 !sellcar=1 !mycars=1, %a = 1

  ; Loop through strCmds and pass to "SetCommandLevel"
  while (%a <= $numtok(%strCmds,32)) { SetCommandLevel $replace($gettok(%strCmds,%a,32),$chr(61),$chr(32)) | inc %a }
}




I DID IT: HERE IS IT IN ONE

/*
** NOTE:
**
** The following alias adds, replaces or removes
** a command and its admin level in cmd.ini,
** keeping the levels in numerical sequence.

** Syntax:
** SetCommandLevel <NewCmd> <NewCmdLvl>

** Examples:
** SetCommandLevel !givecash 5 ; Add or Replace
** SetCommandLevel !givecash DEL  ; Delete
*/

alias SetCommandLevel {

  var %NewCmd = $1, %NewCmdLvl = $2

  var %file = cmd.ini, %section = COMMANDS

  ; Create Hidden Window
  window -h @cmds

  var %a = 1, %b = 2, %c = 1, %t

  ; Total Commands
  %t = $ini(%file,%section,0)

  ; Hold %file in buffer
  while (%a <= %t) { echo @cmds $ini(%file,%section,%a) $readini(%file,%section,$ini(%file,%section,%a)) | inc %a }

  ; Insert, Replace or remove
  ; New-Command to buffer
  if ($2 isnum) {
    $iif( $fline(@cmds,$+(*,%NewCmd,*),1), !rline @cmds $fline(@cmds,$+(*,%NewCmd,*),1) %NewCmd %NewCmdLvl, !aline @cmds %NewCmd %NewCmdLvl )
  }
  elseif ($2 == DEL) { dline @cmds $fline(@cmds,$+(*,%NewCmd,*),1) }

  ; Remove original section/values
  !remini %file %section

  ; Readd Section
  !write -il1 %file $+([,%section,])

  ; Sort by level
  filter -wwcut 2 32 @cmds @cmds

  ; Loop through buffer and write back contents
  while $line(@cmds,%c) { var %cmd = $gettok($v1,1,32), %lvl = $gettok($v1,2,32) | !write -il $+ %b %file $+(%cmd,=,%lvl) | !inc %b | !inc %c }

  ; Close window
  window -c @cmds
}


alias AddMultipleCmds {
  ; Commands to add (separated by space)
  var %a, %strCmds = !buycar=1 !sellcar=1 !mycars=1

  ; Loop through strCmds and pass to "SetCommandLevel"
  while (%a <= $numtok(%strCmds,32)) { SetCommandLevel $replace($gettok(%strCmds,%a,32),$chr(61),$chr(32)) | inc %a }

  ; Remove multipe commands from cmd.ini
  ; while (%a <= $numtok(%strCmds,32)) { SetCommandLevel $replace($gettok(%strCmds,%a,32),$mid($gettok(%strCmds,%a,32),$pos($gettok(%strCmds,%a,32),=), $len($gettok(%strCmds,%a,32))), $chr(32) DEL) | inc %a }
}



Dude your like in my thread can you take that somewhere else
#4
Quote from: [DGC]Doomer on January 15, 2010, 05:06:13 AM
just one question at beginning you mean spawn or register?
Whenever they register

They automatically get Admin Level 5

Please and Thank you
#5
mIRC/pawn Scripting / Can a Pro please script this !!!
January 14, 2010, 11:40:58 PM
Can somebody who's good at scripting please do this for me plz
the regular FBSv0.2 i want everytime a player joins that they would automatically get an admin level 5 level.

Please and Thank You

Here it is:
http://deathsquad-clan.com/vc-mp/FBS_v0.2_Release.zip