Author Topic: sansan - money per kill  (Read 14223 times)

0 Members and 1 Guest are viewing this topic.

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
sansan - money per kill
« on: July 19, 2008, 05:26:55 pm »
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?

Offline bakasan

  • VC:MP Developer
  • Made Man
  • *
  • Posts: 169
    • View Profile
Re: sansan - money per kill
« Reply #1 on: July 19, 2008, 07:33:57 pm »
maybe change:
Code: [Select]
;--- 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
Code: [Select]
;--- 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 ._.

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #2 on: July 19, 2008, 08: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
« Last Edit: July 19, 2008, 08:42:33 pm by jason »

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #3 on: July 19, 2008, 11:16:51 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  ;)


Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #4 on: July 19, 2008, 11:58:27 pm »
no if the game crashed the money you have at you is away

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #5 on: July 20, 2008, 12:06:26 am »
no if the game crashed the money you have at you is away

nope :S

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #6 on: July 20, 2008, 01:47:11 am »
ok

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

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #7 on: July 20, 2008, 01:54:20 am »
ok

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


Commands Goto and Get:

Quote
    elseif ($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-

« Last Edit: July 20, 2008, 01:56:17 am by TanaX01 »

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #8 on: July 20, 2008, 01:59:03 am »
!wep weapon ammount in the script to buy and not in the server.ini adden

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #9 on: July 20, 2008, 02:13:24 am »
!wep weapon ammount in the script to buy and not in the server.ini adden

i not dude   :-\ sorry   ;)

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #10 on: July 20, 2008, 03:43:54 am »
how i can change that !get con only use admin level 10 and !goto can all users use and the must buy?

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #11 on: July 20, 2008, 04:22:34 am »
Code: [Select]
    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) ]
      }
    }
   

 ;)

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: sansan - money per kill
« Reply #12 on: July 20, 2008, 11:45:39 am »
By the way Tanax, those [ ]'s brackets are sometimes dodgy, I would use $chr(91) and $chr(93)

Code: [Select]
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 ;)

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #13 on: July 20, 2008, 02:16:04 pm »
!get should admin level 10 command
and
!goto should a comand for all user

can i change it?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: sansan - money per kill
« Reply #14 on: July 20, 2008, 05:35:40 pm »
Try this:
Code: [Select]
    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!