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

0 Members and 1 Guest are viewing this topic.

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #15 on: July 20, 2008, 05:49:15 pm »
cost goto anything when a user use it?

and how can i add the cammand !wep weapon ammo in my sansan script?
« Last Edit: July 20, 2008, 05:55:09 pm by jason »

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: sansan - money per kill
« Reply #16 on: July 20, 2008, 06:56:59 pm »
And dont know the command !wep, sorry.

The goto command i gave cost the user nothing, but you can make it like so:

Quote
    elseif ($2 == !goto) {
var %cost = Here the amount you want it to cost, ex.: 1000
     vcmp.setloc %id $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0
  vcmp.setmon $1 $calc($vcmp.hgetmoney($1) - %cost)
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #17 on: July 20, 2008, 08:13:05 pm »
ok thank you thijn

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #18 on: July 20, 2008, 09:16:08 pm »
can i change this when a player will use !goto he can typed in the name of the player?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: sansan - money per kill
« Reply #19 on: July 20, 2008, 09:30:40 pm »
yes u can:
Code: [Select]
  elseif ($2 == !goto) {
var %cost = 1000
var %to = $vcmp.nameid($vcmp.hgetname($3))
     vcmp.setloc %id $vcmp.hgetpos.x(%to) $vcmp.hgetpos.y(%to) $vcmp.hgetpos.z(%to) 0
  vcmp.setmon $1 $calc($vcmp.hgetmoney($1) - %cost)
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }
I think this will work, Note: untested

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #20 on: July 20, 2008, 09:34:11 pm »
this

    elseif ($2 == !goto) {
var %cost = Here the amount you want it to cost, ex.: 1000
     vcmp.setloc %id $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0
  vcmp.setmon $1 $calc($vcmp.hgetmoney($1) - %cost)
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }

dont cost anything
« Last Edit: July 20, 2008, 09:38:55 pm by jason »

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: sansan - money per kill
« Reply #21 on: July 20, 2008, 09:44:07 pm »
maby this:
Code: [Select]
  elseif ($2 == !goto) {
var %cost = 1000
     vcmp.setloc %id $vcmp.hgetpos.x($vcmp.nameid($vcmp.hgetname($3))) $vcmp.hgetpos.y($vcmp.nameid($vcmp.hgetname($3))) $vcmp.hgetpos.z($vcmp.nameid($vcmp.hgetname($3))) 0
  vcmp.setmon $1 $calc($vcmp.hgetmoney($1) - %cost)
        vcmp.adminchat **Taking:[ $vcmp.hgetname(%id) ] To:[ $vcmp.hgetname($3) ]
      }

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #22 on: July 20, 2008, 09:48:46 pm »
ok i test it yet

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: sansan - money per kill
« Reply #23 on: July 20, 2008, 09:49:11 pm »
It work?

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #24 on: July 20, 2008, 09:54:20 pm »
yes but it cost nothing

pls help
« Last Edit: July 23, 2008, 03:36:27 pm by jason »

Offline jason

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • http://wavemaster.net63.net
Re: sansan - money per kill
« Reply #25 on: July 25, 2008, 07:03:59 pm »
how i can make the goto command and it cost?

please help

Jkownz

  • Guest
Re: sansan - money per kill
« Reply #26 on: August 28, 2008, 07:01:43 am »
works good Bakasan Thanks

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: sansan - money per kill
« Reply #27 on: August 28, 2008, 07:03:28 am »
works good Bakasan Thanks

Hey You Use Script: Gus, Sasan, Windlord, Vrocker Omg!!  :-\