Author Topic: How to make dead players drop money (with the money model!)?  (Read 7793 times)

0 Members and 1 Guest are viewing this topic.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
How to make dead players drop money (with the money model!)?
« on: March 21, 2009, 02:14:57 pm »
How to make dead players drop money (with the money model!)?

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: How to make dead players drop money (with the money model!)?
« Reply #1 on: March 21, 2009, 07:11:02 pm »
It's easy. I made it and i can say: it's really easy. Here some tips:
* if a player will be killed -> create money pickup
* if someone collect this pickup -> delete pickup & add X money

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #2 on: March 21, 2009, 08:29:24 pm »
errm... ? script?  :-\

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: How to make dead players drop money (with the money model!)?
« Reply #3 on: March 21, 2009, 09:00:38 pm »
It's easy. I made it and i can say: it's really easy.

I said u some tips, can u try it first do it by your own? Its really easy. If u will try but that wont be this what u want, then ask about ready script ;)

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #4 on: March 21, 2009, 09:18:56 pm »
mine script wont load up x.x

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make dead players drop money (with the money model!)?
« Reply #5 on: March 22, 2009, 01:29:57 am »
What did u tried? Show us ur script, then we can help u with debugging it.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #6 on: March 22, 2009, 12:37:04 pm »
dont have it anymore (i deleted it :-X)

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make dead players drop money (with the money model!)?
« Reply #7 on: March 22, 2009, 02:28:44 pm »
Make a new one then

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #8 on: March 22, 2009, 07:16:06 pm »
what is the commands to create money ?
also what is the command to execute a script when its picked up?
because when i died (in previous script nothing happens x.x)

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make dead players drop money (with the money model!)?
« Reply #9 on: March 22, 2009, 08:53:40 pm »
1) If ur using GUS it's vcmp.cash+ <id> <amount>
2) the pickup signal

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #10 on: March 22, 2009, 09:22:28 pm »
ah ok thanks ^^
but the money respawns .... what i must do?

i use FBS !
« Last Edit: March 22, 2009, 09:38:31 pm by [DGC]Doomer »

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make dead players drop money (with the money model!)?
« Reply #11 on: March 23, 2009, 12:27:05 am »
U need to delete the pickup.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #12 on: March 23, 2009, 09:52:52 am »
i meant which command to delete pickup?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: How to make dead players drop money (with the money model!)?
« Reply #13 on: March 23, 2009, 10:04:47 am »
Sorry, but just look in your script, You will find it

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: How to make dead players drop money (with the money model!)?
« Reply #14 on: March 23, 2009, 04:41:33 pm »
here is the pickup script with signals. is there some usable?
cuz i dont know how to delete pickups  :-\

Code: [Select]
on *:SIGNAL:vcmp.pickup.hit:{
  ; $1 = ServerID, $2 = PlayerID, $3 = PickupID, $4 = PickupType

  if ($4 == 407) {
    FBS.PropInfo $3 $2
    timer.spawnpickup 1 3 vcmp.respawnpickup $1 $3
  }
  if ($4 == 337)  {
    FBS.IncCash $1 $2 $rand(1,10000)
    vcmp.msg $1 $2 picked up some money fresh from fight
  }
  ;-------------------------------------/|\ Money pickup /|\------------------------------------------------------
  !.signal vcmp.pickuphit $1-
}

on *:SIGNAL:vcmp.pickup.new:{
  ; $1 = ServerID, $2 = PickupID, $3 = PickupType, $4 = X, $5 = Y, $6 = Z

  !.signal vcmp.pickupnew $1-
}

on *:SIGNAL:vcmp.pickup.delete:{
  ; $1 = ServerID, $2 = PickupID

  !.signal vcmp.pickupdelete $1-
}