• Welcome to Vice City Multiplayer.
 

sansan - money per kill

Started by jason, July 19, 2008, 03:26:55 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jason

hello

a player becomne 2500$ when he killed 5 in a row
i will change it to a player gets 500$ per kill
how can i chane it with the money per kill?

bakasan

maybe change:

;--- killingspree system
alias vcmp.killingspree.process {
  vcmp.killingspree.processended $vcmp.nameid($1) $vcmp.nameid($2)
  !hinc vcmp killingspree. $+ $vcmp.nameid($1)
  var %k = $hget(vcmp,killingspree. $+ $vcmp.nameid($1))
  vcmp.addkillingspree $vcmp.hgetname($vcmp.nameid($1)) %k
  if (5 // %k) vcmp.killingspree.announce $1 %k
}



to something like

;--- killingspree system
alias vcmp.killingspree.process {
  vcmp.killingspree.processended $vcmp.nameid($1) $vcmp.nameid($2)
  !hinc vcmp killingspree. $+ $vcmp.nameid($1)
  var %k = $hget(vcmp,killingspree. $+ $vcmp.nameid($1))
  vcmp.addkillingspree $vcmp.hgetname($vcmp.nameid($1)) %k
  vcmp.setmon $vcmp.nameid($1) $calc($vcmp.hgetmoney($vcmp.nameid($1)) + 500)
  vcmp.gametextpm $vcmp.nameid($1) ~x~ $500!
  if (5 // %k) vcmp.killingspree.announce $1 %k
}


hope that helps ._.

jason

#2
and how can i add the commands !goto and !wep <weapon> <ammount>?

   
how can I change the game when the game is crashed the players money is saved

TanaX01

Quote from: jason on July 19, 2008, 06:24:01 PM
and how can i add the commands !goto and !wep <weapon> <ammount>?

   
how can I change the game when the game is crashed the players money is saved

in crash money save in accoundate  ;)


jason

no if the game crashed the money you have at you is away

TanaX01

Quote from: jason on July 19, 2008, 09:58:27 PM
no if the game crashed the money you have at you is away

nope :S

jason

ok

and how can i add the commands !goto and !wep <weapon> <ammount>?

TanaX01

#7
Quote from: jason on July 19, 2008, 11:47:11 PM
ok

and how can i add the commands !goto and !wep <weapon> <ammount>?


Commands Goto and Get:

Quoteelseif ($2 == !get) {
      if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You must be Admin Level 4 or higher to attempt this command. }
      else { vcmp.setloc $3 $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
        vcmp.adminchat **Taking:[ $vcmp.hgetname($3) ] To:[ $vcmp.hgetname(%id) ]
      }
    }
    elseif ($2 == !goto) {
      if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You must be Admin Level 4 or higher to attempt this command. }
      else { vcmp.setloc %id $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }
    }

EDIT: Use !get <id> and !goto <id>  ;)

and add wep in config.ini  ;)

-TaNaX01-


jason

!wep weapon ammount in the script to buy and not in the server.ini adden

TanaX01

Quote from: jason on July 19, 2008, 11:59:03 PM
!wep weapon ammount in the script to buy and not in the server.ini adden

i not dude   :-\ sorry   ;)

jason

how i can change that !get con only use admin level 10 and !goto can all users use and the must buy?

TanaX01

    elseif ($2 == !get) {
      if ($hget(vcmp,loggedin. $+ %id) < 10) { vcmp.adminmsg %id You must be Admin Level 4 or higher to attempt this command. }
      else { vcmp.setloc $3 $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
        vcmp.adminchat **Taking:[ $vcmp.hgetname($3) ] To:[ $vcmp.hgetname(%id) ]
      }
    }
   

;)

Force

By the way Tanax, those [ ]'s brackets are sometimes dodgy, I would use $chr(91) and $chr(93)


vcmp.adminchat **Taking: $+ $chr(91) $vcmp.hgetname($3) $chr(93) To: $+ $chr(91) $vcmp.hgetname(%id) $chr(93)


Then they should work fine with no problem's ;)

jason

!get should admin level 10 command
and
!goto should a comand for all user

can i change it?

thijn

Try this:
    elseif ($2 == !get) {
      if ($hget(vcmp,loggedin. $+ %id) < 10) { vcmp.adminmsg %id You must be Admin Level 10 or higher to attempt this command. }
      else { vcmp.setloc $3 $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
        vcmp.adminchat **Taking:[ $vcmp.hgetname($3) ] To:[ $vcmp.hgetname(%id) ]
      }
    }
    elseif ($2 == !goto) {
     vcmp.setloc %id $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }

NOTE: UNTESTED!