Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [DGC]Doomer on March 21, 2009, 02:14:57 pm

Title: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 21, 2009, 02:14:57 pm
How to make dead players drop money (with the money model!)?
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [AoD]NC 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
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 21, 2009, 08:29:24 pm
errm... ? script?  :-\
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [AoD]NC 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 ;)
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 21, 2009, 09:18:56 pm
mine script wont load up x.x
Title: Re: How to make dead players drop money (with the money model!)?
Post by: thijn on March 22, 2009, 01:29:57 am
What did u tried? Show us ur script, then we can help u with debugging it.
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 22, 2009, 12:37:04 pm
dont have it anymore (i deleted it :-X)
Title: Re: How to make dead players drop money (with the money model!)?
Post by: thijn on March 22, 2009, 02:28:44 pm
Make a new one then
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer 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)
Title: Re: How to make dead players drop money (with the money model!)?
Post by: thijn on March 22, 2009, 08:53:40 pm
1) If ur using GUS it's vcmp.cash+ <id> <amount>
2) the pickup signal
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 22, 2009, 09:22:28 pm
ah ok thanks ^^
but the money respawns .... what i must do?

i use FBS !
Title: Re: How to make dead players drop money (with the money model!)?
Post by: thijn on March 23, 2009, 12:27:05 am
U need to delete the pickup.
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 23, 2009, 09:52:52 am
i meant which command to delete pickup?
Title: Re: How to make dead players drop money (with the money model!)?
Post by: thijn on March 23, 2009, 10:04:47 am
Sorry, but just look in your script, You will find it
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer 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-
}
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [AoD]NC on March 23, 2009, 05:13:16 pm
At the end of 337 pickup signal add this:
Code: [Select]
    vcmp.delpickup $1 $3
Title: Re: How to make dead players drop money (with the money model!)?
Post by: [DGC]Doomer on March 23, 2009, 05:51:53 pm
[AoD]NC you are still a hero  ;D Thank to both of ya  :D