• Welcome to Vice City Multiplayer.
 

How to make dead players drop money (with the money model!)?

Started by [DGC]Doomer, March 21, 2009, 11:14:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[DGC]Doomer

How to make dead players drop money (with the money model!)?

[AoD]NC

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


[AoD]NC

Quote from: [AoD]NC on March 21, 2009, 04:11:02 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 ;)


thijn

What did u tried? Show us ur script, then we can help u with debugging it.


[DGC]Doomer


thijn



[DGC]Doomer

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)

thijn



[DGC]Doomer

#10
ah ok thanks ^^
but the money respawns .... what i must do?

i use FBS !

thijn



[DGC]Doomer


thijn

Sorry, but just look in your script, You will find it


[DGC]Doomer

here is the pickup script with signals. is there some usable?
cuz i dont know how to delete pickups  :-\

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