• Welcome to Vice City Multiplayer.
 

sansan - money per kill

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jason

#15
cost goto anything when a user use it?

and how can i add the cammand !wep weapon ammo in my sansan script?

thijn

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) ]
      }


jason


jason

can i change this when a player will use !goto he can typed in the name of the player?

thijn

yes u can:

  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


jason

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

thijn

maby this:

  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) ]
      }


jason


thijn



jason

#24
yes but it cost nothing

pls help

jason

how i can make the goto command and it cost?

please help

Jkownz


TanaX01

Quote from: Jkownz on August 28, 2008, 06:01:43 AM
works good Bakasan Thanks

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